diff --git a/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.ReingestAllStores.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.ReingestAllStores.g.cs index a5f27a9..daa7851 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.ReingestAllStores.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.ReingestAllStores.g.cs @@ -216,8 +216,8 @@ partial void ProcessReingestAllStoresResponseContent( PrepareReingestAllStoresRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - organizationId: organizationId!, - storeIdentifier: storeIdentifier!, + organizationId: organizationId, + storeIdentifier: storeIdentifier, statuses: statuses, billable: billable); @@ -241,7 +241,7 @@ partial void ProcessReingestAllStoresResponseContent( pathTemplate: "$\"/v1/admin/stores/{organizationId}/{storeIdentifier}/reingest\"", httpMethod: "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, @@ -275,7 +275,7 @@ partial void ProcessReingestAllStoresResponseContent( pathTemplate: "$\"/v1/admin/stores/{organizationId}/{storeIdentifier}/reingest\"", httpMethod: "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, @@ -316,7 +316,7 @@ partial void ProcessReingestAllStoresResponseContent( pathTemplate: "$\"/v1/admin/stores/{organizationId}/{storeIdentifier}/reingest\"", httpMethod: "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, @@ -364,7 +364,7 @@ partial void ProcessReingestAllStoresResponseContent( pathTemplate: "$\"/v1/admin/stores/{organizationId}/{storeIdentifier}/reingest\"", httpMethod: "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, @@ -386,7 +386,7 @@ partial void ProcessReingestAllStoresResponseContent( pathTemplate: "$\"/v1/admin/stores/{organizationId}/{storeIdentifier}/reingest\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.AnyOf.2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.2.g.cs index 8c59184..b5228d3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.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/Mixedbread/Generated/Mixedbread.AnyOf.3.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.3.g.cs index 6df390e..eb09372 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.3.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.3.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// /// @@ -241,17 +241,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } return default(TResult); @@ -273,17 +273,17 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } @@ -301,17 +301,17 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.4.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.4.g.cs index 6c4bc36..b16fac1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.4.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.4.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// /// @@ -306,21 +306,21 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } return default(TResult); @@ -344,21 +344,21 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } } @@ -377,21 +377,21 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.g.cs index c05f1d1..d84ef48 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// /// @@ -436,29 +436,29 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } return default(TResult); @@ -486,29 +486,29 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } } @@ -529,29 +529,29 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.CreateApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.CreateApiKey.g.cs index 023ae65..46fdfeb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.CreateApiKey.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.CreateApiKey.g.cs @@ -213,7 +213,7 @@ partial void ProcessCreateApiKeyResponseContent( pathTemplate: "\"/v1/api-keys\"", httpMethod: "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, @@ -247,7 +247,7 @@ partial void ProcessCreateApiKeyResponseContent( pathTemplate: "\"/v1/api-keys\"", httpMethod: "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, @@ -288,7 +288,7 @@ partial void ProcessCreateApiKeyResponseContent( pathTemplate: "\"/v1/api-keys\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessCreateApiKeyResponseContent( pathTemplate: "\"/v1/api-keys\"", httpMethod: "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, @@ -358,7 +358,7 @@ partial void ProcessCreateApiKeyResponseContent( pathTemplate: "\"/v1/api-keys\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.ApiKeysClient.DeleteApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.DeleteApiKey.g.cs index 5eaf9a7..d886145 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.DeleteApiKey.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.DeleteApiKey.g.cs @@ -184,7 +184,7 @@ partial void ProcessDeleteApiKeyResponseContent( PrepareDeleteApiKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - apiKeyId: apiKeyId!); + apiKeyId: apiKeyId); return __httpRequest; } @@ -206,7 +206,7 @@ partial void ProcessDeleteApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", 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, @@ -240,7 +240,7 @@ partial void ProcessDeleteApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", 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, @@ -281,7 +281,7 @@ partial void ProcessDeleteApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", 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, @@ -329,7 +329,7 @@ partial void ProcessDeleteApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", 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, @@ -351,7 +351,7 @@ partial void ProcessDeleteApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", 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/Mixedbread/Generated/Mixedbread.ApiKeysClient.ListApiKeys.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.ListApiKeys.g.cs index 7a94bb0..da743fb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.ListApiKeys.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.ListApiKeys.g.cs @@ -227,7 +227,7 @@ partial void ProcessListApiKeysResponseContent( pathTemplate: "\"/v1/api-keys\"", httpMethod: "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, @@ -261,7 +261,7 @@ partial void ProcessListApiKeysResponseContent( pathTemplate: "\"/v1/api-keys\"", httpMethod: "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, @@ -302,7 +302,7 @@ partial void ProcessListApiKeysResponseContent( pathTemplate: "\"/v1/api-keys\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -350,7 +350,7 @@ partial void ProcessListApiKeysResponseContent( pathTemplate: "\"/v1/api-keys\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -372,7 +372,7 @@ partial void ProcessListApiKeysResponseContent( pathTemplate: "\"/v1/api-keys\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.ApiKeysClient.RerollApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RerollApiKey.g.cs index f742092..3295494 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RerollApiKey.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RerollApiKey.g.cs @@ -186,7 +186,7 @@ partial void ProcessRerollApiKeyResponseContent( PrepareRerollApiKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - apiKeyId: apiKeyId!); + apiKeyId: apiKeyId); return __httpRequest; } @@ -208,7 +208,7 @@ partial void ProcessRerollApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}/reroll\"", httpMethod: "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, @@ -242,7 +242,7 @@ partial void ProcessRerollApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}/reroll\"", httpMethod: "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, @@ -283,7 +283,7 @@ partial void ProcessRerollApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}/reroll\"", httpMethod: "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, @@ -331,7 +331,7 @@ partial void ProcessRerollApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}/reroll\"", httpMethod: "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, @@ -353,7 +353,7 @@ partial void ProcessRerollApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}/reroll\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.ApiKeysClient.RetrieveApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RetrieveApiKey.g.cs index 306b164..c8a58fb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RetrieveApiKey.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RetrieveApiKey.g.cs @@ -184,7 +184,7 @@ partial void ProcessRetrieveApiKeyResponseContent( PrepareRetrieveApiKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - apiKeyId: apiKeyId!); + apiKeyId: apiKeyId); return __httpRequest; } @@ -206,7 +206,7 @@ partial void ProcessRetrieveApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", httpMethod: "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, @@ -240,7 +240,7 @@ partial void ProcessRetrieveApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", httpMethod: "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, @@ -281,7 +281,7 @@ partial void ProcessRetrieveApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessRetrieveApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -351,7 +351,7 @@ partial void ProcessRetrieveApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.ApiKeysClient.RevokeApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RevokeApiKey.g.cs index a974477..a958462 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RevokeApiKey.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RevokeApiKey.g.cs @@ -184,7 +184,7 @@ partial void ProcessRevokeApiKeyResponseContent( PrepareRevokeApiKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - apiKeyId: apiKeyId!); + apiKeyId: apiKeyId); return __httpRequest; } @@ -206,7 +206,7 @@ partial void ProcessRevokeApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}/revoke\"", httpMethod: "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, @@ -240,7 +240,7 @@ partial void ProcessRevokeApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}/revoke\"", httpMethod: "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, @@ -281,7 +281,7 @@ partial void ProcessRevokeApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}/revoke\"", httpMethod: "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, @@ -329,7 +329,7 @@ partial void ProcessRevokeApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}/revoke\"", httpMethod: "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, @@ -351,7 +351,7 @@ partial void ProcessRevokeApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}/revoke\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.ApiKeysClient.UpdateApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.UpdateApiKey.g.cs index f68a222..9a94eb3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.UpdateApiKey.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.UpdateApiKey.g.cs @@ -205,7 +205,7 @@ partial void ProcessUpdateApiKeyResponseContent( PrepareUpdateApiKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - apiKeyId: apiKeyId!, + apiKeyId: apiKeyId, request: request); return __httpRequest; @@ -228,7 +228,7 @@ partial void ProcessUpdateApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", 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, @@ -262,7 +262,7 @@ partial void ProcessUpdateApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", 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, @@ -303,7 +303,7 @@ partial void ProcessUpdateApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", 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, @@ -351,7 +351,7 @@ partial void ProcessUpdateApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", 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, @@ -373,7 +373,7 @@ partial void ProcessUpdateApiKeyResponseContent( pathTemplate: "$\"/v1/api-keys/{apiKeyId}\"", 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/Mixedbread/Generated/Mixedbread.AutoSDKHttpResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AutoSDKHttpResponse.g.cs index f9c7155..e6f65e0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.AutoSDKHttpResponse.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.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/Mixedbread/Generated/Mixedbread.BillingClient.GetBillingSummary.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetBillingSummary.g.cs index 3a1f80a..24669e6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetBillingSummary.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetBillingSummary.g.cs @@ -183,7 +183,7 @@ partial void ProcessGetBillingSummaryResponseContent( pathTemplate: "\"/v1/billing/summary\"", httpMethod: "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, @@ -217,7 +217,7 @@ partial void ProcessGetBillingSummaryResponseContent( pathTemplate: "\"/v1/billing/summary\"", httpMethod: "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, @@ -258,7 +258,7 @@ partial void ProcessGetBillingSummaryResponseContent( pathTemplate: "\"/v1/billing/summary\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -306,7 +306,7 @@ partial void ProcessGetBillingSummaryResponseContent( pathTemplate: "\"/v1/billing/summary\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -328,7 +328,7 @@ partial void ProcessGetBillingSummaryResponseContent( pathTemplate: "\"/v1/billing/summary\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.BillingClient.GetParsingCostHistogram.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetParsingCostHistogram.g.cs index 986272b..08ae10e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetParsingCostHistogram.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetParsingCostHistogram.g.cs @@ -183,7 +183,7 @@ partial void ProcessGetParsingCostHistogramResponseContent( pathTemplate: "\"/v1/billing/parsing/costs/histogram\"", httpMethod: "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, @@ -217,7 +217,7 @@ partial void ProcessGetParsingCostHistogramResponseContent( pathTemplate: "\"/v1/billing/parsing/costs/histogram\"", httpMethod: "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, @@ -258,7 +258,7 @@ partial void ProcessGetParsingCostHistogramResponseContent( pathTemplate: "\"/v1/billing/parsing/costs/histogram\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -306,7 +306,7 @@ partial void ProcessGetParsingCostHistogramResponseContent( pathTemplate: "\"/v1/billing/parsing/costs/histogram\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -328,7 +328,7 @@ partial void ProcessGetParsingCostHistogramResponseContent( pathTemplate: "\"/v1/billing/parsing/costs/histogram\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.BillingClient.GetStoreCostHistogram.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetStoreCostHistogram.g.cs index 62cdc4b..bb47b68 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetStoreCostHistogram.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetStoreCostHistogram.g.cs @@ -174,7 +174,7 @@ partial void ProcessGetStoreCostHistogramResponseContent( PrepareGetStoreCostHistogramRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeId: storeId!); + storeId: storeId); return __httpRequest; } @@ -196,7 +196,7 @@ partial void ProcessGetStoreCostHistogramResponseContent( pathTemplate: "$\"/v1/billing/stores/{storeId}/costs/histogram\"", httpMethod: "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, @@ -230,7 +230,7 @@ partial void ProcessGetStoreCostHistogramResponseContent( pathTemplate: "$\"/v1/billing/stores/{storeId}/costs/histogram\"", httpMethod: "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, @@ -271,7 +271,7 @@ partial void ProcessGetStoreCostHistogramResponseContent( pathTemplate: "$\"/v1/billing/stores/{storeId}/costs/histogram\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -319,7 +319,7 @@ partial void ProcessGetStoreCostHistogramResponseContent( pathTemplate: "$\"/v1/billing/stores/{storeId}/costs/histogram\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -341,7 +341,7 @@ partial void ProcessGetStoreCostHistogramResponseContent( pathTemplate: "$\"/v1/billing/stores/{storeId}/costs/histogram\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.BillingClient.ListStoreCostInfo.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.ListStoreCostInfo.g.cs index 38b62fe..c2f241e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.ListStoreCostInfo.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.ListStoreCostInfo.g.cs @@ -183,7 +183,7 @@ partial void ProcessListStoreCostInfoResponseContent( pathTemplate: "\"/v1/billing/stores\"", httpMethod: "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, @@ -217,7 +217,7 @@ partial void ProcessListStoreCostInfoResponseContent( pathTemplate: "\"/v1/billing/stores\"", httpMethod: "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, @@ -258,7 +258,7 @@ partial void ProcessListStoreCostInfoResponseContent( pathTemplate: "\"/v1/billing/stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -306,7 +306,7 @@ partial void ProcessListStoreCostInfoResponseContent( pathTemplate: "\"/v1/billing/stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -328,7 +328,7 @@ partial void ProcessListStoreCostInfoResponseContent( pathTemplate: "\"/v1/billing/stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.BucketsClient.CreateBucket.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.CreateBucket.g.cs index 6f774a2..8ce2476 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.CreateBucket.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.CreateBucket.g.cs @@ -225,7 +225,7 @@ partial void ProcessCreateBucketResponseContent( pathTemplate: "\"/v1/buckets\"", httpMethod: "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, @@ -259,7 +259,7 @@ partial void ProcessCreateBucketResponseContent( pathTemplate: "\"/v1/buckets\"", httpMethod: "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, @@ -300,7 +300,7 @@ partial void ProcessCreateBucketResponseContent( pathTemplate: "\"/v1/buckets\"", httpMethod: "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, @@ -348,7 +348,7 @@ partial void ProcessCreateBucketResponseContent( pathTemplate: "\"/v1/buckets\"", httpMethod: "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, @@ -370,7 +370,7 @@ partial void ProcessCreateBucketResponseContent( pathTemplate: "\"/v1/buckets\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.BucketsClient.ListBuckets.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.ListBuckets.g.cs index 1f6c932..2c5b3a2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.ListBuckets.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.ListBuckets.g.cs @@ -259,7 +259,7 @@ partial void ProcessListBucketsResponseContent( pathTemplate: "\"/v1/buckets\"", httpMethod: "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, @@ -293,7 +293,7 @@ partial void ProcessListBucketsResponseContent( pathTemplate: "\"/v1/buckets\"", httpMethod: "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, @@ -334,7 +334,7 @@ partial void ProcessListBucketsResponseContent( pathTemplate: "\"/v1/buckets\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -382,7 +382,7 @@ partial void ProcessListBucketsResponseContent( pathTemplate: "\"/v1/buckets\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -404,7 +404,7 @@ partial void ProcessListBucketsResponseContent( pathTemplate: "\"/v1/buckets\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.BucketsClient.RotateBucketCredentials.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.RotateBucketCredentials.g.cs index 097a9cf..fa5dcd0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.RotateBucketCredentials.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.RotateBucketCredentials.g.cs @@ -213,7 +213,7 @@ partial void ProcessRotateBucketCredentialsResponseContent( PrepareRotateBucketCredentialsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - bucketId: bucketId!, + bucketId: bucketId, request: request); return __httpRequest; @@ -236,7 +236,7 @@ partial void ProcessRotateBucketCredentialsResponseContent( pathTemplate: "$\"/v1/buckets/{bucketId}/credentials\"", httpMethod: "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, @@ -270,7 +270,7 @@ partial void ProcessRotateBucketCredentialsResponseContent( pathTemplate: "$\"/v1/buckets/{bucketId}/credentials\"", httpMethod: "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, @@ -311,7 +311,7 @@ partial void ProcessRotateBucketCredentialsResponseContent( pathTemplate: "$\"/v1/buckets/{bucketId}/credentials\"", httpMethod: "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, @@ -359,7 +359,7 @@ partial void ProcessRotateBucketCredentialsResponseContent( pathTemplate: "$\"/v1/buckets/{bucketId}/credentials\"", httpMethod: "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, @@ -381,7 +381,7 @@ partial void ProcessRotateBucketCredentialsResponseContent( pathTemplate: "$\"/v1/buckets/{bucketId}/credentials\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.CompletionsClient.CreateChatCompletion.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.CreateChatCompletion.g.cs index 5618201..012a170 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.CreateChatCompletion.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.CreateChatCompletion.g.cs @@ -205,7 +205,7 @@ partial void ProcessCreateChatCompletionResponseContent( pathTemplate: "\"/v1/chat/completions\"", httpMethod: "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, @@ -239,7 +239,7 @@ partial void ProcessCreateChatCompletionResponseContent( pathTemplate: "\"/v1/chat/completions\"", httpMethod: "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, @@ -280,7 +280,7 @@ partial void ProcessCreateChatCompletionResponseContent( pathTemplate: "\"/v1/chat/completions\"", httpMethod: "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, @@ -328,7 +328,7 @@ partial void ProcessCreateChatCompletionResponseContent( pathTemplate: "\"/v1/chat/completions\"", httpMethod: "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, @@ -350,7 +350,7 @@ partial void ProcessCreateChatCompletionResponseContent( pathTemplate: "\"/v1/chat/completions\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.DataSourcesClient.AuthorizeDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.AuthorizeDataSource.g.cs index 67f5b0a..386fc85 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.AuthorizeDataSource.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.AuthorizeDataSource.g.cs @@ -196,7 +196,7 @@ partial void ProcessAuthorizeDataSourceResponseContent( PrepareAuthorizeDataSourceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - dataSourceId: dataSourceId!); + dataSourceId: dataSourceId); return __httpRequest; } @@ -218,7 +218,7 @@ partial void ProcessAuthorizeDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/oauth2/authorize\"", httpMethod: "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, @@ -252,7 +252,7 @@ partial void ProcessAuthorizeDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/oauth2/authorize\"", httpMethod: "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, @@ -293,7 +293,7 @@ partial void ProcessAuthorizeDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/oauth2/authorize\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -341,7 +341,7 @@ partial void ProcessAuthorizeDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/oauth2/authorize\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -363,7 +363,7 @@ partial void ProcessAuthorizeDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/oauth2/authorize\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateConnector.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateConnector.g.cs index b143819..e6c6730 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateConnector.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateConnector.g.cs @@ -205,7 +205,7 @@ partial void ProcessCreateConnectorResponseContent( PrepareCreateConnectorRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - dataSourceId: dataSourceId!, + dataSourceId: dataSourceId, request: request); return __httpRequest; @@ -228,7 +228,7 @@ partial void ProcessCreateConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors\"", httpMethod: "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, @@ -262,7 +262,7 @@ partial void ProcessCreateConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors\"", httpMethod: "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, @@ -303,7 +303,7 @@ partial void ProcessCreateConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors\"", httpMethod: "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, @@ -351,7 +351,7 @@ partial void ProcessCreateConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors\"", httpMethod: "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, @@ -373,7 +373,7 @@ partial void ProcessCreateConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateDataSource.g.cs index 0557492..7f4e2c3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateDataSource.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateDataSource.g.cs @@ -211,7 +211,7 @@ partial void ProcessCreateDataSourceResponseContent( pathTemplate: "\"/v1/data_sources/\"", httpMethod: "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, @@ -245,7 +245,7 @@ partial void ProcessCreateDataSourceResponseContent( pathTemplate: "\"/v1/data_sources/\"", httpMethod: "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, @@ -286,7 +286,7 @@ partial void ProcessCreateDataSourceResponseContent( pathTemplate: "\"/v1/data_sources/\"", httpMethod: "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, @@ -334,7 +334,7 @@ partial void ProcessCreateDataSourceResponseContent( pathTemplate: "\"/v1/data_sources/\"", httpMethod: "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, @@ -356,7 +356,7 @@ partial void ProcessCreateDataSourceResponseContent( pathTemplate: "\"/v1/data_sources/\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteConnector.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteConnector.g.cs index 3692f6a..63f7736 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteConnector.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteConnector.g.cs @@ -198,8 +198,8 @@ partial void ProcessDeleteConnectorResponseContent( PrepareDeleteConnectorRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - dataSourceId: dataSourceId!, - connectorId: connectorId!); + dataSourceId: dataSourceId, + connectorId: connectorId); return __httpRequest; } @@ -221,7 +221,7 @@ partial void ProcessDeleteConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", 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, @@ -255,7 +255,7 @@ partial void ProcessDeleteConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", 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, @@ -296,7 +296,7 @@ partial void ProcessDeleteConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", 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, @@ -344,7 +344,7 @@ partial void ProcessDeleteConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", 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, @@ -366,7 +366,7 @@ partial void ProcessDeleteConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", 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/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteDataSource.g.cs index f5d7433..de7aa68 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteDataSource.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteDataSource.g.cs @@ -180,7 +180,7 @@ partial void ProcessDeleteDataSourceResponseContent( PrepareDeleteDataSourceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - dataSourceId: dataSourceId!); + dataSourceId: dataSourceId); return __httpRequest; } @@ -202,7 +202,7 @@ partial void ProcessDeleteDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", 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, @@ -236,7 +236,7 @@ partial void ProcessDeleteDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", 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, @@ -277,7 +277,7 @@ partial void ProcessDeleteDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", 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, @@ -325,7 +325,7 @@ partial void ProcessDeleteDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", 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, @@ -347,7 +347,7 @@ partial void ProcessDeleteDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", 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/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetConnector.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetConnector.g.cs index b9f893a..5fad1cf 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetConnector.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetConnector.g.cs @@ -198,8 +198,8 @@ partial void ProcessGetConnectorResponseContent( PrepareGetConnectorRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - dataSourceId: dataSourceId!, - connectorId: connectorId!); + dataSourceId: dataSourceId, + connectorId: connectorId); return __httpRequest; } @@ -221,7 +221,7 @@ partial void ProcessGetConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", httpMethod: "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, @@ -255,7 +255,7 @@ partial void ProcessGetConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", httpMethod: "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, @@ -296,7 +296,7 @@ partial void ProcessGetConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -344,7 +344,7 @@ partial void ProcessGetConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -366,7 +366,7 @@ partial void ProcessGetConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetDataSource.g.cs index 781695a..4262bbc 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetDataSource.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetDataSource.g.cs @@ -184,7 +184,7 @@ partial void ProcessGetDataSourceResponseContent( PrepareGetDataSourceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - dataSourceId: dataSourceId!); + dataSourceId: dataSourceId); return __httpRequest; } @@ -206,7 +206,7 @@ partial void ProcessGetDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", httpMethod: "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, @@ -240,7 +240,7 @@ partial void ProcessGetDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", httpMethod: "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, @@ -281,7 +281,7 @@ partial void ProcessGetDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessGetDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -351,7 +351,7 @@ partial void ProcessGetDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListConnectors.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListConnectors.g.cs index 7ed489c..4920bff 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListConnectors.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListConnectors.g.cs @@ -244,7 +244,7 @@ partial void ProcessListConnectorsResponseContent( PrepareListConnectorsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - dataSourceId: dataSourceId!, + dataSourceId: dataSourceId, limit: limit, after: after, before: before, @@ -270,7 +270,7 @@ partial void ProcessListConnectorsResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors\"", httpMethod: "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, @@ -304,7 +304,7 @@ partial void ProcessListConnectorsResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors\"", httpMethod: "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, @@ -345,7 +345,7 @@ partial void ProcessListConnectorsResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -393,7 +393,7 @@ partial void ProcessListConnectorsResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -415,7 +415,7 @@ partial void ProcessListConnectorsResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListDataSources.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListDataSources.g.cs index 9bd3665..3e6a385 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListDataSources.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListDataSources.g.cs @@ -251,7 +251,7 @@ partial void ProcessListDataSourcesResponseContent( pathTemplate: "\"/v1/data_sources/\"", httpMethod: "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, @@ -285,7 +285,7 @@ partial void ProcessListDataSourcesResponseContent( pathTemplate: "\"/v1/data_sources/\"", httpMethod: "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, @@ -326,7 +326,7 @@ partial void ProcessListDataSourcesResponseContent( pathTemplate: "\"/v1/data_sources/\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -374,7 +374,7 @@ partial void ProcessListDataSourcesResponseContent( pathTemplate: "\"/v1/data_sources/\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -396,7 +396,7 @@ partial void ProcessListDataSourcesResponseContent( pathTemplate: "\"/v1/data_sources/\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.DataSourcesClient.Oauth2Callback.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.Oauth2Callback.g.cs index 8c16f57..986f6a4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.Oauth2Callback.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.Oauth2Callback.g.cs @@ -237,8 +237,8 @@ await Oauth2CallbackAsResponseAsync( PrepareOauth2CallbackRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - state: state!, - code: code!, + state: state, + code: code, error: error, errorDescription: errorDescription); @@ -262,7 +262,7 @@ await Oauth2CallbackAsResponseAsync( pathTemplate: "\"/v1/data_sources/oauth2/callback\"", httpMethod: "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, @@ -296,7 +296,7 @@ await Oauth2CallbackAsResponseAsync( pathTemplate: "\"/v1/data_sources/oauth2/callback\"", httpMethod: "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, @@ -337,7 +337,7 @@ await Oauth2CallbackAsResponseAsync( pathTemplate: "\"/v1/data_sources/oauth2/callback\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -385,7 +385,7 @@ await Oauth2CallbackAsResponseAsync( pathTemplate: "\"/v1/data_sources/oauth2/callback\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -407,7 +407,7 @@ await Oauth2CallbackAsResponseAsync( pathTemplate: "\"/v1/data_sources/oauth2/callback\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateConnector.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateConnector.g.cs index 349f756..9fa8bf3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateConnector.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateConnector.g.cs @@ -219,8 +219,8 @@ partial void ProcessUpdateConnectorResponseContent( PrepareUpdateConnectorRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - dataSourceId: dataSourceId!, - connectorId: connectorId!, + dataSourceId: dataSourceId, + connectorId: connectorId, request: request); return __httpRequest; @@ -243,7 +243,7 @@ partial void ProcessUpdateConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", httpMethod: "PUT", baseUri: 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, @@ -277,7 +277,7 @@ partial void ProcessUpdateConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", httpMethod: "PUT", baseUri: 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, @@ -318,7 +318,7 @@ partial void ProcessUpdateConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -366,7 +366,7 @@ partial void ProcessUpdateConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -388,7 +388,7 @@ partial void ProcessUpdateConnectorResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}/connectors/{connectorId}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateDataSource.g.cs index aa6755e..b49aa88 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateDataSource.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateDataSource.g.cs @@ -203,7 +203,7 @@ partial void ProcessUpdateDataSourceResponseContent( PrepareUpdateDataSourceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - dataSourceId: dataSourceId!, + dataSourceId: dataSourceId, request: request); return __httpRequest; @@ -226,7 +226,7 @@ partial void ProcessUpdateDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", httpMethod: "PUT", baseUri: 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, @@ -260,7 +260,7 @@ partial void ProcessUpdateDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", httpMethod: "PUT", baseUri: 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, @@ -301,7 +301,7 @@ partial void ProcessUpdateDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -349,7 +349,7 @@ partial void ProcessUpdateDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -371,7 +371,7 @@ partial void ProcessUpdateDataSourceResponseContent( pathTemplate: "$\"/v1/data_sources/{dataSourceId}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateExtractionJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateExtractionJob.g.cs index fad1bfe..ab6db14 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateExtractionJob.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateExtractionJob.g.cs @@ -213,7 +213,7 @@ partial void ProcessCreateExtractionJobResponseContent( pathTemplate: "\"/v1/extractions/jobs\"", httpMethod: "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, @@ -247,7 +247,7 @@ partial void ProcessCreateExtractionJobResponseContent( pathTemplate: "\"/v1/extractions/jobs\"", httpMethod: "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, @@ -288,7 +288,7 @@ partial void ProcessCreateExtractionJobResponseContent( pathTemplate: "\"/v1/extractions/jobs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessCreateExtractionJobResponseContent( pathTemplate: "\"/v1/extractions/jobs\"", httpMethod: "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, @@ -358,7 +358,7 @@ partial void ProcessCreateExtractionJobResponseContent( pathTemplate: "\"/v1/extractions/jobs\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateSchema.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateSchema.g.cs index e0f0cd0..a53ffbb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateSchema.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateSchema.g.cs @@ -213,7 +213,7 @@ partial void ProcessCreateSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema\"", httpMethod: "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, @@ -247,7 +247,7 @@ partial void ProcessCreateSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema\"", httpMethod: "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, @@ -288,7 +288,7 @@ partial void ProcessCreateSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessCreateSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema\"", httpMethod: "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, @@ -358,7 +358,7 @@ partial void ProcessCreateSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.ExtractionsClient.EnhanceSchema.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.EnhanceSchema.g.cs index 1e4aaf2..601e5b1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.EnhanceSchema.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.EnhanceSchema.g.cs @@ -213,7 +213,7 @@ partial void ProcessEnhanceSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema/enhance\"", httpMethod: "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, @@ -247,7 +247,7 @@ partial void ProcessEnhanceSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema/enhance\"", httpMethod: "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, @@ -288,7 +288,7 @@ partial void ProcessEnhanceSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema/enhance\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessEnhanceSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema/enhance\"", httpMethod: "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, @@ -358,7 +358,7 @@ partial void ProcessEnhanceSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema/enhance\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.ExtractionsClient.ExtractContent.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ExtractContent.g.cs index a513a3b..944967d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ExtractContent.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ExtractContent.g.cs @@ -213,7 +213,7 @@ partial void ProcessExtractContentResponseContent( pathTemplate: "\"/v1/extractions/content\"", httpMethod: "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, @@ -247,7 +247,7 @@ partial void ProcessExtractContentResponseContent( pathTemplate: "\"/v1/extractions/content\"", httpMethod: "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, @@ -288,7 +288,7 @@ partial void ProcessExtractContentResponseContent( pathTemplate: "\"/v1/extractions/content\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessExtractContentResponseContent( pathTemplate: "\"/v1/extractions/content\"", httpMethod: "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, @@ -358,7 +358,7 @@ partial void ProcessExtractContentResponseContent( pathTemplate: "\"/v1/extractions/content\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.ExtractionsClient.RetrieveExtractionJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.RetrieveExtractionJob.g.cs index 422f3dc..1097800 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.RetrieveExtractionJob.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.RetrieveExtractionJob.g.cs @@ -184,7 +184,7 @@ partial void ProcessRetrieveExtractionJobResponseContent( PrepareRetrieveExtractionJobRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - jobId: jobId!); + jobId: jobId); return __httpRequest; } @@ -206,7 +206,7 @@ partial void ProcessRetrieveExtractionJobResponseContent( pathTemplate: "$\"/v1/extractions/jobs/{jobId}\"", httpMethod: "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, @@ -240,7 +240,7 @@ partial void ProcessRetrieveExtractionJobResponseContent( pathTemplate: "$\"/v1/extractions/jobs/{jobId}\"", httpMethod: "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, @@ -281,7 +281,7 @@ partial void ProcessRetrieveExtractionJobResponseContent( pathTemplate: "$\"/v1/extractions/jobs/{jobId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessRetrieveExtractionJobResponseContent( pathTemplate: "$\"/v1/extractions/jobs/{jobId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -351,7 +351,7 @@ partial void ProcessRetrieveExtractionJobResponseContent( pathTemplate: "$\"/v1/extractions/jobs/{jobId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.ExtractionsClient.ValidateSchema.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ValidateSchema.g.cs index 159ebaf..3a0176d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ValidateSchema.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ValidateSchema.g.cs @@ -213,7 +213,7 @@ partial void ProcessValidateSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema/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, @@ -247,7 +247,7 @@ partial void ProcessValidateSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema/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, @@ -288,7 +288,7 @@ partial void ProcessValidateSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema/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, @@ -336,7 +336,7 @@ partial void ProcessValidateSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema/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, @@ -358,7 +358,7 @@ partial void ProcessValidateSchemaResponseContent( pathTemplate: "\"/v1/extractions/schema/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/Mixedbread/Generated/Mixedbread.FilesClient.AbortMultipartUpload.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.AbortMultipartUpload.g.cs index 7784540..7ac47b0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.AbortMultipartUpload.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.AbortMultipartUpload.g.cs @@ -176,7 +176,7 @@ partial void ProcessAbortMultipartUploadResponseContent( PrepareAbortMultipartUploadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - uploadId: uploadId!); + uploadId: uploadId); return __httpRequest; } @@ -198,7 +198,7 @@ partial void ProcessAbortMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}/abort\"", httpMethod: "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, @@ -232,7 +232,7 @@ partial void ProcessAbortMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}/abort\"", httpMethod: "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, @@ -273,7 +273,7 @@ partial void ProcessAbortMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}/abort\"", httpMethod: "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 ProcessAbortMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}/abort\"", httpMethod: "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, @@ -343,7 +343,7 @@ partial void ProcessAbortMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}/abort\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.FilesClient.CompleteMultipartUpload.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CompleteMultipartUpload.g.cs index 2abe6e0..da8833c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CompleteMultipartUpload.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CompleteMultipartUpload.g.cs @@ -197,7 +197,7 @@ partial void ProcessCompleteMultipartUploadResponseContent( PrepareCompleteMultipartUploadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - uploadId: uploadId!, + uploadId: uploadId, request: request); return __httpRequest; @@ -220,7 +220,7 @@ partial void ProcessCompleteMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}/complete\"", httpMethod: "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, @@ -254,7 +254,7 @@ partial void ProcessCompleteMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}/complete\"", httpMethod: "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, @@ -295,7 +295,7 @@ partial void ProcessCompleteMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}/complete\"", httpMethod: "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, @@ -343,7 +343,7 @@ partial void ProcessCompleteMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}/complete\"", httpMethod: "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, @@ -365,7 +365,7 @@ partial void ProcessCompleteMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}/complete\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.FilesClient.CreateFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateFile.g.cs index f8fd60b..bf208d3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateFile.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateFile.g.cs @@ -249,7 +249,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -283,7 +283,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -324,7 +324,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -372,7 +372,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -394,7 +394,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -742,7 +742,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -776,7 +776,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -817,7 +817,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -865,7 +865,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -887,7 +887,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -1192,7 +1192,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -1226,7 +1226,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -1267,7 +1267,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -1315,7 +1315,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -1337,7 +1337,7 @@ request.Filename is null pathTemplate: "\"/v1/files\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.FilesClient.CreateMultipartUpload.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateMultipartUpload.g.cs index c505535..21680c6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateMultipartUpload.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateMultipartUpload.g.cs @@ -205,7 +205,7 @@ partial void ProcessCreateMultipartUploadResponseContent( pathTemplate: "\"/v1/files/uploads\"", httpMethod: "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, @@ -239,7 +239,7 @@ partial void ProcessCreateMultipartUploadResponseContent( pathTemplate: "\"/v1/files/uploads\"", httpMethod: "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, @@ -280,7 +280,7 @@ partial void ProcessCreateMultipartUploadResponseContent( pathTemplate: "\"/v1/files/uploads\"", httpMethod: "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, @@ -328,7 +328,7 @@ partial void ProcessCreateMultipartUploadResponseContent( pathTemplate: "\"/v1/files/uploads\"", httpMethod: "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, @@ -350,7 +350,7 @@ partial void ProcessCreateMultipartUploadResponseContent( pathTemplate: "\"/v1/files/uploads\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.FilesClient.DeleteFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DeleteFile.g.cs index 0250f2e..d171f1f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DeleteFile.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DeleteFile.g.cs @@ -184,7 +184,7 @@ partial void ProcessDeleteFileResponseContent( PrepareDeleteFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fileId: fileId!); + fileId: fileId); return __httpRequest; } @@ -206,7 +206,7 @@ partial void ProcessDeleteFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -240,7 +240,7 @@ partial void ProcessDeleteFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -281,7 +281,7 @@ partial void ProcessDeleteFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessDeleteFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -351,7 +351,7 @@ partial void ProcessDeleteFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DownloadFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DownloadFile.g.cs index 6c24558..b4af233 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DownloadFile.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DownloadFile.g.cs @@ -184,7 +184,7 @@ partial void ProcessDownloadFileResponseContent( PrepareDownloadFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fileId: fileId!); + fileId: fileId); return __httpRequest; } @@ -206,7 +206,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}/content\"", httpMethod: "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, @@ -240,7 +240,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}/content\"", httpMethod: "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, @@ -281,7 +281,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -351,7 +351,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -544,7 +544,7 @@ partial void ProcessDownloadFileResponseContent( PrepareDownloadFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fileId: fileId!); + fileId: fileId); return __httpRequest; } @@ -566,7 +566,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}/content\"", httpMethod: "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, @@ -600,7 +600,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}/content\"", httpMethod: "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, @@ -641,7 +641,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -689,7 +689,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -711,7 +711,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.FilesClient.GetMultipartUpload.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.GetMultipartUpload.g.cs index d2ef452..0c2c9a5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.GetMultipartUpload.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.GetMultipartUpload.g.cs @@ -176,7 +176,7 @@ partial void ProcessGetMultipartUploadResponseContent( PrepareGetMultipartUploadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - uploadId: uploadId!); + uploadId: uploadId); return __httpRequest; } @@ -198,7 +198,7 @@ partial void ProcessGetMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}\"", httpMethod: "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, @@ -232,7 +232,7 @@ partial void ProcessGetMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}\"", httpMethod: "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, @@ -273,7 +273,7 @@ partial void ProcessGetMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessGetMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessGetMultipartUploadResponseContent( pathTemplate: "$\"/v1/files/uploads/{uploadId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.FilesClient.ListFiles.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListFiles.g.cs index d3099d3..eacd622 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListFiles.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListFiles.g.cs @@ -269,7 +269,7 @@ partial void ProcessListFilesResponseContent( pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -303,7 +303,7 @@ partial void ProcessListFilesResponseContent( pathTemplate: "\"/v1/files\"", httpMethod: "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, @@ -344,7 +344,7 @@ partial void ProcessListFilesResponseContent( pathTemplate: "\"/v1/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -392,7 +392,7 @@ partial void ProcessListFilesResponseContent( pathTemplate: "\"/v1/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -414,7 +414,7 @@ partial void ProcessListFilesResponseContent( pathTemplate: "\"/v1/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.FilesClient.ListMultipartUploads.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListMultipartUploads.g.cs index 6479c97..382fa4c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListMultipartUploads.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListMultipartUploads.g.cs @@ -185,7 +185,7 @@ partial void ProcessListMultipartUploadsResponseContent( pathTemplate: "\"/v1/files/uploads\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -219,7 +219,7 @@ partial void ProcessListMultipartUploadsResponseContent( pathTemplate: "\"/v1/files/uploads\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -260,7 +260,7 @@ partial void ProcessListMultipartUploadsResponseContent( pathTemplate: "\"/v1/files/uploads\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessListMultipartUploadsResponseContent( pathTemplate: "\"/v1/files/uploads\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessListMultipartUploadsResponseContent( pathTemplate: "\"/v1/files/uploads\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.FilesClient.RetrieveFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.RetrieveFile.g.cs index a84ca31..1170a69 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.RetrieveFile.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.RetrieveFile.g.cs @@ -184,7 +184,7 @@ partial void ProcessRetrieveFileResponseContent( PrepareRetrieveFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fileId: fileId!); + fileId: fileId); return __httpRequest; } @@ -206,7 +206,7 @@ partial void ProcessRetrieveFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -240,7 +240,7 @@ partial void ProcessRetrieveFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -281,7 +281,7 @@ partial void ProcessRetrieveFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessRetrieveFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -351,7 +351,7 @@ partial void ProcessRetrieveFileResponseContent( pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.FilesClient.UpdateFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.UpdateFile.g.cs index 210462a..b38aee3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.UpdateFile.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.UpdateFile.g.cs @@ -241,7 +241,7 @@ request.Filename is null PrepareUpdateFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fileId: fileId!, + fileId: fileId, request: request); return __httpRequest; @@ -264,7 +264,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -298,7 +298,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -339,7 +339,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -387,7 +387,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -409,7 +409,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -747,7 +747,7 @@ request.Filename is null PrepareUpdateFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fileId: fileId!, + fileId: fileId, request: request); return __httpRequest; @@ -770,7 +770,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -804,7 +804,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -845,7 +845,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -893,7 +893,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -915,7 +915,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -1204,7 +1204,7 @@ request.Filename is null PrepareUpdateFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fileId: fileId!, + fileId: fileId, request: request); return __httpRequest; @@ -1227,7 +1227,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -1261,7 +1261,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -1302,7 +1302,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -1350,7 +1350,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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, @@ -1372,7 +1372,7 @@ request.Filename is null pathTemplate: "$\"/v1/files/{fileId}\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeGoogleDriveIntegration.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeGoogleDriveIntegration.g.cs index c29f4a3..9a597ad 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeGoogleDriveIntegration.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeGoogleDriveIntegration.g.cs @@ -194,7 +194,7 @@ await AuthorizeGoogleDriveIntegrationAsResponseAsync( pathTemplate: "\"/v1/integrations/google_drive/oauth/authorize\"", httpMethod: "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, @@ -228,7 +228,7 @@ await AuthorizeGoogleDriveIntegrationAsResponseAsync( pathTemplate: "\"/v1/integrations/google_drive/oauth/authorize\"", httpMethod: "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, @@ -269,7 +269,7 @@ await AuthorizeGoogleDriveIntegrationAsResponseAsync( pathTemplate: "\"/v1/integrations/google_drive/oauth/authorize\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -317,7 +317,7 @@ await AuthorizeGoogleDriveIntegrationAsResponseAsync( pathTemplate: "\"/v1/integrations/google_drive/oauth/authorize\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -339,7 +339,7 @@ await AuthorizeGoogleDriveIntegrationAsResponseAsync( pathTemplate: "\"/v1/integrations/google_drive/oauth/authorize\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeSlackIntegration.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeSlackIntegration.g.cs index 69aab65..7365f38 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeSlackIntegration.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeSlackIntegration.g.cs @@ -210,7 +210,7 @@ await AuthorizeSlackIntegrationAsResponseAsync( pathTemplate: "\"/v1/integrations/slack/oauth/authorize\"", httpMethod: "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, @@ -244,7 +244,7 @@ await AuthorizeSlackIntegrationAsResponseAsync( pathTemplate: "\"/v1/integrations/slack/oauth/authorize\"", httpMethod: "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, @@ -285,7 +285,7 @@ await AuthorizeSlackIntegrationAsResponseAsync( pathTemplate: "\"/v1/integrations/slack/oauth/authorize\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -333,7 +333,7 @@ await AuthorizeSlackIntegrationAsResponseAsync( pathTemplate: "\"/v1/integrations/slack/oauth/authorize\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -355,7 +355,7 @@ await AuthorizeSlackIntegrationAsResponseAsync( pathTemplate: "\"/v1/integrations/slack/oauth/authorize\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.ConnectSlackManual.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ConnectSlackManual.g.cs index 0899a86..e786704 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ConnectSlackManual.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ConnectSlackManual.g.cs @@ -205,7 +205,7 @@ partial void ProcessConnectSlackManualResponseContent( pathTemplate: "\"/v1/integrations/slack/connect\"", httpMethod: "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, @@ -239,7 +239,7 @@ partial void ProcessConnectSlackManualResponseContent( pathTemplate: "\"/v1/integrations/slack/connect\"", httpMethod: "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, @@ -280,7 +280,7 @@ partial void ProcessConnectSlackManualResponseContent( pathTemplate: "\"/v1/integrations/slack/connect\"", httpMethod: "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, @@ -328,7 +328,7 @@ partial void ProcessConnectSlackManualResponseContent( pathTemplate: "\"/v1/integrations/slack/connect\"", httpMethod: "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, @@ -350,7 +350,7 @@ partial void ProcessConnectSlackManualResponseContent( pathTemplate: "\"/v1/integrations/slack/connect\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectGoogleDriveInstallation.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectGoogleDriveInstallation.g.cs index 70603c9..b5ce755 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectGoogleDriveInstallation.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectGoogleDriveInstallation.g.cs @@ -176,7 +176,7 @@ partial void ProcessDisconnectGoogleDriveInstallationResponseContent( PrepareDisconnectGoogleDriveInstallationRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - installationId: installationId!); + installationId: installationId); return __httpRequest; } @@ -198,7 +198,7 @@ partial void ProcessDisconnectGoogleDriveInstallationResponseContent( pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}\"", 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, @@ -232,7 +232,7 @@ partial void ProcessDisconnectGoogleDriveInstallationResponseContent( pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}\"", 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, @@ -273,7 +273,7 @@ partial void ProcessDisconnectGoogleDriveInstallationResponseContent( pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessDisconnectGoogleDriveInstallationResponseContent( pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}\"", 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, @@ -343,7 +343,7 @@ partial void ProcessDisconnectGoogleDriveInstallationResponseContent( pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}\"", 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectSlackInstallation.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectSlackInstallation.g.cs index f00a878..611de88 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectSlackInstallation.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectSlackInstallation.g.cs @@ -176,7 +176,7 @@ partial void ProcessDisconnectSlackInstallationResponseContent( PrepareDisconnectSlackInstallationRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - installationId: installationId!); + installationId: installationId); return __httpRequest; } @@ -198,7 +198,7 @@ partial void ProcessDisconnectSlackInstallationResponseContent( pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}\"", 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, @@ -232,7 +232,7 @@ partial void ProcessDisconnectSlackInstallationResponseContent( pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}\"", 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, @@ -273,7 +273,7 @@ partial void ProcessDisconnectSlackInstallationResponseContent( pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessDisconnectSlackInstallationResponseContent( pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}\"", 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, @@ -343,7 +343,7 @@ partial void ProcessDisconnectSlackInstallationResponseContent( pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}\"", 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetGoogleDriveFolderSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetGoogleDriveFolderSelection.g.cs index 11360d1..fce802d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetGoogleDriveFolderSelection.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetGoogleDriveFolderSelection.g.cs @@ -137,7 +137,7 @@ partial void ProcessGetGoogleDriveFolderSelectionResponseContent( servers: s_GetGoogleDriveFolderSelectionServers, defaultBaseUrl: "https://api.mixedbread.com/")); __pathBuilder - .AddRequiredParameter("installation_id", installationId.ToString()!) + .AddRequiredParameter("installation_id", installationId.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) ; var __path = __pathBuilder.ToString(); __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -179,7 +179,7 @@ partial void ProcessGetGoogleDriveFolderSelectionResponseContent( PrepareGetGoogleDriveFolderSelectionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - installationId: installationId!); + installationId: installationId); return __httpRequest; } @@ -201,7 +201,7 @@ partial void ProcessGetGoogleDriveFolderSelectionResponseContent( pathTemplate: "\"/v1/integrations/google_drive/folders\"", httpMethod: "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, @@ -235,7 +235,7 @@ partial void ProcessGetGoogleDriveFolderSelectionResponseContent( pathTemplate: "\"/v1/integrations/google_drive/folders\"", httpMethod: "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, @@ -276,7 +276,7 @@ partial void ProcessGetGoogleDriveFolderSelectionResponseContent( pathTemplate: "\"/v1/integrations/google_drive/folders\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessGetGoogleDriveFolderSelectionResponseContent( pathTemplate: "\"/v1/integrations/google_drive/folders\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -346,7 +346,7 @@ partial void ProcessGetGoogleDriveFolderSelectionResponseContent( pathTemplate: "\"/v1/integrations/google_drive/folders\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackChannelSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackChannelSelection.g.cs index da34997..06fd898 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackChannelSelection.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackChannelSelection.g.cs @@ -137,7 +137,7 @@ partial void ProcessGetSlackChannelSelectionResponseContent( servers: s_GetSlackChannelSelectionServers, defaultBaseUrl: "https://api.mixedbread.com/")); __pathBuilder - .AddRequiredParameter("installation_id", installationId.ToString()!) + .AddRequiredParameter("installation_id", installationId.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) ; var __path = __pathBuilder.ToString(); __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -179,7 +179,7 @@ partial void ProcessGetSlackChannelSelectionResponseContent( PrepareGetSlackChannelSelectionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - installationId: installationId!); + installationId: installationId); return __httpRequest; } @@ -201,7 +201,7 @@ partial void ProcessGetSlackChannelSelectionResponseContent( pathTemplate: "\"/v1/integrations/slack/channels\"", httpMethod: "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, @@ -235,7 +235,7 @@ partial void ProcessGetSlackChannelSelectionResponseContent( pathTemplate: "\"/v1/integrations/slack/channels\"", httpMethod: "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, @@ -276,7 +276,7 @@ partial void ProcessGetSlackChannelSelectionResponseContent( pathTemplate: "\"/v1/integrations/slack/channels\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessGetSlackChannelSelectionResponseContent( pathTemplate: "\"/v1/integrations/slack/channels\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -346,7 +346,7 @@ partial void ProcessGetSlackChannelSelectionResponseContent( pathTemplate: "\"/v1/integrations/slack/channels\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackManifest.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackManifest.g.cs index 0ef7a01..1b27d3c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackManifest.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackManifest.g.cs @@ -185,7 +185,7 @@ partial void ProcessGetSlackManifestResponseContent( pathTemplate: "\"/v1/integrations/slack/manifest\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -219,7 +219,7 @@ partial void ProcessGetSlackManifestResponseContent( pathTemplate: "\"/v1/integrations/slack/manifest\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -260,7 +260,7 @@ partial void ProcessGetSlackManifestResponseContent( pathTemplate: "\"/v1/integrations/slack/manifest\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessGetSlackManifestResponseContent( pathTemplate: "\"/v1/integrations/slack/manifest\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessGetSlackManifestResponseContent( pathTemplate: "\"/v1/integrations/slack/manifest\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveEvents.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveEvents.g.cs index f9595f4..ea23f34 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveEvents.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveEvents.g.cs @@ -185,7 +185,7 @@ partial void ProcessGoogleDriveEventsResponseContent( pathTemplate: "\"/v1/integrations/google_drive/events\"", httpMethod: "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, @@ -219,7 +219,7 @@ partial void ProcessGoogleDriveEventsResponseContent( pathTemplate: "\"/v1/integrations/google_drive/events\"", httpMethod: "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, @@ -260,7 +260,7 @@ partial void ProcessGoogleDriveEventsResponseContent( pathTemplate: "\"/v1/integrations/google_drive/events\"", httpMethod: "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, @@ -308,7 +308,7 @@ partial void ProcessGoogleDriveEventsResponseContent( pathTemplate: "\"/v1/integrations/google_drive/events\"", httpMethod: "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, @@ -330,7 +330,7 @@ partial void ProcessGoogleDriveEventsResponseContent( pathTemplate: "\"/v1/integrations/google_drive/events\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveOauthCallback.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveOauthCallback.g.cs index d3e7ab3..173a442 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveOauthCallback.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveOauthCallback.g.cs @@ -198,7 +198,7 @@ await GoogleDriveOauthCallbackAsResponseAsync( PrepareGoogleDriveOauthCallbackRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - state: state!, + state: state, code: code, error: error); @@ -222,7 +222,7 @@ await GoogleDriveOauthCallbackAsResponseAsync( pathTemplate: "\"/v1/integrations/google_drive/oauth/callback\"", httpMethod: "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, @@ -256,7 +256,7 @@ await GoogleDriveOauthCallbackAsResponseAsync( pathTemplate: "\"/v1/integrations/google_drive/oauth/callback\"", httpMethod: "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, @@ -297,7 +297,7 @@ await GoogleDriveOauthCallbackAsResponseAsync( pathTemplate: "\"/v1/integrations/google_drive/oauth/callback\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -345,7 +345,7 @@ await GoogleDriveOauthCallbackAsResponseAsync( pathTemplate: "\"/v1/integrations/google_drive/oauth/callback\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -367,7 +367,7 @@ await GoogleDriveOauthCallbackAsResponseAsync( pathTemplate: "\"/v1/integrations/google_drive/oauth/callback\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackCommand.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackCommand.g.cs index 249848d..0d388c8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackCommand.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackCommand.g.cs @@ -185,7 +185,7 @@ partial void ProcessHandleSlackCommandResponseContent( pathTemplate: "\"/v1/integrations/slack/commands\"", httpMethod: "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, @@ -219,7 +219,7 @@ partial void ProcessHandleSlackCommandResponseContent( pathTemplate: "\"/v1/integrations/slack/commands\"", httpMethod: "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, @@ -260,7 +260,7 @@ partial void ProcessHandleSlackCommandResponseContent( pathTemplate: "\"/v1/integrations/slack/commands\"", httpMethod: "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, @@ -308,7 +308,7 @@ partial void ProcessHandleSlackCommandResponseContent( pathTemplate: "\"/v1/integrations/slack/commands\"", httpMethod: "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, @@ -330,7 +330,7 @@ partial void ProcessHandleSlackCommandResponseContent( pathTemplate: "\"/v1/integrations/slack/commands\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackEvent.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackEvent.g.cs index b8aecb2..dfea8e6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackEvent.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackEvent.g.cs @@ -185,7 +185,7 @@ partial void ProcessHandleSlackEventResponseContent( pathTemplate: "\"/v1/integrations/slack/events\"", httpMethod: "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, @@ -219,7 +219,7 @@ partial void ProcessHandleSlackEventResponseContent( pathTemplate: "\"/v1/integrations/slack/events\"", httpMethod: "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, @@ -260,7 +260,7 @@ partial void ProcessHandleSlackEventResponseContent( pathTemplate: "\"/v1/integrations/slack/events\"", httpMethod: "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, @@ -308,7 +308,7 @@ partial void ProcessHandleSlackEventResponseContent( pathTemplate: "\"/v1/integrations/slack/events\"", httpMethod: "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, @@ -330,7 +330,7 @@ partial void ProcessHandleSlackEventResponseContent( pathTemplate: "\"/v1/integrations/slack/events\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListDataSourceInstallations.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListDataSourceInstallations.g.cs index 639ae73..0c285a7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListDataSourceInstallations.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListDataSourceInstallations.g.cs @@ -185,7 +185,7 @@ partial void ProcessListDataSourceInstallationsResponseContent( pathTemplate: "\"/v1/integrations/data-sources\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -219,7 +219,7 @@ partial void ProcessListDataSourceInstallationsResponseContent( pathTemplate: "\"/v1/integrations/data-sources\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -260,7 +260,7 @@ partial void ProcessListDataSourceInstallationsResponseContent( pathTemplate: "\"/v1/integrations/data-sources\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessListDataSourceInstallationsResponseContent( pathTemplate: "\"/v1/integrations/data-sources\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessListDataSourceInstallationsResponseContent( pathTemplate: "\"/v1/integrations/data-sources\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListGoogleDriveInstallations.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListGoogleDriveInstallations.g.cs index 0d063cf..024f412 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListGoogleDriveInstallations.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListGoogleDriveInstallations.g.cs @@ -185,7 +185,7 @@ partial void ProcessListGoogleDriveInstallationsResponseContent( pathTemplate: "\"/v1/integrations/google_drive/installations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -219,7 +219,7 @@ partial void ProcessListGoogleDriveInstallationsResponseContent( pathTemplate: "\"/v1/integrations/google_drive/installations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -260,7 +260,7 @@ partial void ProcessListGoogleDriveInstallationsResponseContent( pathTemplate: "\"/v1/integrations/google_drive/installations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessListGoogleDriveInstallationsResponseContent( pathTemplate: "\"/v1/integrations/google_drive/installations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessListGoogleDriveInstallationsResponseContent( pathTemplate: "\"/v1/integrations/google_drive/installations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationInstallations.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationInstallations.g.cs index 1753eaa..ab5e5a8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationInstallations.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationInstallations.g.cs @@ -247,7 +247,7 @@ partial void ProcessListIntegrationInstallationsResponseContent( pathTemplate: "\"/v1/integrations/installations\"", httpMethod: "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, @@ -281,7 +281,7 @@ partial void ProcessListIntegrationInstallationsResponseContent( pathTemplate: "\"/v1/integrations/installations\"", httpMethod: "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, @@ -322,7 +322,7 @@ partial void ProcessListIntegrationInstallationsResponseContent( pathTemplate: "\"/v1/integrations/installations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -370,7 +370,7 @@ partial void ProcessListIntegrationInstallationsResponseContent( pathTemplate: "\"/v1/integrations/installations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -392,7 +392,7 @@ partial void ProcessListIntegrationInstallationsResponseContent( pathTemplate: "\"/v1/integrations/installations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationProviders.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationProviders.g.cs index 23ced2b..ce2bcd6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationProviders.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationProviders.g.cs @@ -185,7 +185,7 @@ partial void ProcessListIntegrationProvidersResponseContent( pathTemplate: "\"/v1/integrations/providers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -219,7 +219,7 @@ partial void ProcessListIntegrationProvidersResponseContent( pathTemplate: "\"/v1/integrations/providers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -260,7 +260,7 @@ partial void ProcessListIntegrationProvidersResponseContent( pathTemplate: "\"/v1/integrations/providers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessListIntegrationProvidersResponseContent( pathTemplate: "\"/v1/integrations/providers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessListIntegrationProvidersResponseContent( pathTemplate: "\"/v1/integrations/providers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListSlackInstallations.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListSlackInstallations.g.cs index 288f3ab..4985b35 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListSlackInstallations.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListSlackInstallations.g.cs @@ -185,7 +185,7 @@ partial void ProcessListSlackInstallationsResponseContent( pathTemplate: "\"/v1/integrations/slack/installations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -219,7 +219,7 @@ partial void ProcessListSlackInstallationsResponseContent( pathTemplate: "\"/v1/integrations/slack/installations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -260,7 +260,7 @@ partial void ProcessListSlackInstallationsResponseContent( pathTemplate: "\"/v1/integrations/slack/installations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessListSlackInstallationsResponseContent( pathTemplate: "\"/v1/integrations/slack/installations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessListSlackInstallationsResponseContent( pathTemplate: "\"/v1/integrations/slack/installations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.SlackOauthCallback.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SlackOauthCallback.g.cs index ba3764d..9475521 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SlackOauthCallback.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SlackOauthCallback.g.cs @@ -198,7 +198,7 @@ await SlackOauthCallbackAsResponseAsync( PrepareSlackOauthCallbackRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - state: state!, + state: state, code: code, error: error); @@ -222,7 +222,7 @@ await SlackOauthCallbackAsResponseAsync( pathTemplate: "\"/v1/integrations/slack/oauth/callback\"", httpMethod: "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, @@ -256,7 +256,7 @@ await SlackOauthCallbackAsResponseAsync( pathTemplate: "\"/v1/integrations/slack/oauth/callback\"", httpMethod: "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, @@ -297,7 +297,7 @@ await SlackOauthCallbackAsResponseAsync( pathTemplate: "\"/v1/integrations/slack/oauth/callback\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -345,7 +345,7 @@ await SlackOauthCallbackAsResponseAsync( pathTemplate: "\"/v1/integrations/slack/oauth/callback\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -367,7 +367,7 @@ await SlackOauthCallbackAsResponseAsync( pathTemplate: "\"/v1/integrations/slack/oauth/callback\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncGoogleDrive.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncGoogleDrive.g.cs index dcb878c..b95c482 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncGoogleDrive.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncGoogleDrive.g.cs @@ -205,7 +205,7 @@ partial void ProcessSyncGoogleDriveResponseContent( pathTemplate: "\"/v1/integrations/google_drive/sync\"", httpMethod: "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, @@ -239,7 +239,7 @@ partial void ProcessSyncGoogleDriveResponseContent( pathTemplate: "\"/v1/integrations/google_drive/sync\"", httpMethod: "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, @@ -280,7 +280,7 @@ partial void ProcessSyncGoogleDriveResponseContent( pathTemplate: "\"/v1/integrations/google_drive/sync\"", httpMethod: "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, @@ -328,7 +328,7 @@ partial void ProcessSyncGoogleDriveResponseContent( pathTemplate: "\"/v1/integrations/google_drive/sync\"", httpMethod: "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, @@ -350,7 +350,7 @@ partial void ProcessSyncGoogleDriveResponseContent( pathTemplate: "\"/v1/integrations/google_drive/sync\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncSlackChannels.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncSlackChannels.g.cs index 62ed462..d421814 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncSlackChannels.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncSlackChannels.g.cs @@ -205,7 +205,7 @@ partial void ProcessSyncSlackChannelsResponseContent( pathTemplate: "\"/v1/integrations/slack/channels/sync\"", httpMethod: "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, @@ -239,7 +239,7 @@ partial void ProcessSyncSlackChannelsResponseContent( pathTemplate: "\"/v1/integrations/slack/channels/sync\"", httpMethod: "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, @@ -280,7 +280,7 @@ partial void ProcessSyncSlackChannelsResponseContent( pathTemplate: "\"/v1/integrations/slack/channels/sync\"", httpMethod: "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, @@ -328,7 +328,7 @@ partial void ProcessSyncSlackChannelsResponseContent( pathTemplate: "\"/v1/integrations/slack/channels/sync\"", httpMethod: "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, @@ -350,7 +350,7 @@ partial void ProcessSyncSlackChannelsResponseContent( pathTemplate: "\"/v1/integrations/slack/channels/sync\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveFolderSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveFolderSelection.g.cs index 277cd93..7bb630b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveFolderSelection.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveFolderSelection.g.cs @@ -205,7 +205,7 @@ partial void ProcessUpdateGoogleDriveFolderSelectionResponseContent( pathTemplate: "\"/v1/integrations/google_drive/folders\"", httpMethod: "PUT", baseUri: 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, @@ -239,7 +239,7 @@ partial void ProcessUpdateGoogleDriveFolderSelectionResponseContent( pathTemplate: "\"/v1/integrations/google_drive/folders\"", httpMethod: "PUT", baseUri: 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, @@ -280,7 +280,7 @@ partial void ProcessUpdateGoogleDriveFolderSelectionResponseContent( pathTemplate: "\"/v1/integrations/google_drive/folders\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -328,7 +328,7 @@ partial void ProcessUpdateGoogleDriveFolderSelectionResponseContent( pathTemplate: "\"/v1/integrations/google_drive/folders\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -350,7 +350,7 @@ partial void ProcessUpdateGoogleDriveFolderSelectionResponseContent( pathTemplate: "\"/v1/integrations/google_drive/folders\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveInstallationConfig.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveInstallationConfig.g.cs index 857d578..a9c0b00 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveInstallationConfig.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveInstallationConfig.g.cs @@ -195,7 +195,7 @@ partial void ProcessUpdateGoogleDriveInstallationConfigResponseContent( PrepareUpdateGoogleDriveInstallationConfigRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - installationId: installationId!, + installationId: installationId, request: request); return __httpRequest; @@ -218,7 +218,7 @@ partial void ProcessUpdateGoogleDriveInstallationConfigResponseContent( pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}/config\"", httpMethod: "PUT", baseUri: 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, @@ -252,7 +252,7 @@ partial void ProcessUpdateGoogleDriveInstallationConfigResponseContent( pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}/config\"", httpMethod: "PUT", baseUri: 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, @@ -293,7 +293,7 @@ partial void ProcessUpdateGoogleDriveInstallationConfigResponseContent( pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}/config\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -341,7 +341,7 @@ partial void ProcessUpdateGoogleDriveInstallationConfigResponseContent( pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}/config\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -363,7 +363,7 @@ partial void ProcessUpdateGoogleDriveInstallationConfigResponseContent( pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}/config\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackChannelSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackChannelSelection.g.cs index 5d69ba9..47575d8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackChannelSelection.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackChannelSelection.g.cs @@ -205,7 +205,7 @@ partial void ProcessUpdateSlackChannelSelectionResponseContent( pathTemplate: "\"/v1/integrations/slack/channels\"", httpMethod: "PUT", baseUri: 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, @@ -239,7 +239,7 @@ partial void ProcessUpdateSlackChannelSelectionResponseContent( pathTemplate: "\"/v1/integrations/slack/channels\"", httpMethod: "PUT", baseUri: 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, @@ -280,7 +280,7 @@ partial void ProcessUpdateSlackChannelSelectionResponseContent( pathTemplate: "\"/v1/integrations/slack/channels\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -328,7 +328,7 @@ partial void ProcessUpdateSlackChannelSelectionResponseContent( pathTemplate: "\"/v1/integrations/slack/channels\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -350,7 +350,7 @@ partial void ProcessUpdateSlackChannelSelectionResponseContent( pathTemplate: "\"/v1/integrations/slack/channels\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackInstallationConfig.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackInstallationConfig.g.cs index d87e8ea..77b082d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackInstallationConfig.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackInstallationConfig.g.cs @@ -195,7 +195,7 @@ partial void ProcessUpdateSlackInstallationConfigResponseContent( PrepareUpdateSlackInstallationConfigRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - installationId: installationId!, + installationId: installationId, request: request); return __httpRequest; @@ -218,7 +218,7 @@ partial void ProcessUpdateSlackInstallationConfigResponseContent( pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}/config\"", httpMethod: "PUT", baseUri: 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, @@ -252,7 +252,7 @@ partial void ProcessUpdateSlackInstallationConfigResponseContent( pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}/config\"", httpMethod: "PUT", baseUri: 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, @@ -293,7 +293,7 @@ partial void ProcessUpdateSlackInstallationConfigResponseContent( pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}/config\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -341,7 +341,7 @@ partial void ProcessUpdateSlackInstallationConfigResponseContent( pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}/config\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -363,7 +363,7 @@ partial void ProcessUpdateSlackInstallationConfigResponseContent( pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}/config\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf2.g.cs index 0fa09b0..005ee81 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.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/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf3.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf3.g.cs index ec89a59..8d09111 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf3.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf3.g.cs @@ -197,19 +197,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf4.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf4.g.cs index eba75ed..16f907a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf4.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf4.g.cs @@ -246,25 +246,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf6.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf6.g.cs index 244baf5..f79f54c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf6.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf6.g.cs @@ -344,37 +344,37 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant1.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant1.g.cs index 9fa5d63..072a410 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant1.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant1.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.DataSourceOAuth2Params), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.DataSourceOAuth2Params).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo); } else if (value.IsApiKey) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.DataSourceApiKeyParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.DataSourceApiKeyParams).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiKey!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApiKey(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant12.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant12.g.cs index adf526a..8d47d47 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant12.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant12.g.cs @@ -50,7 +50,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.OAuth2CreateOrUpdateParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.OAuth2CreateOrUpdateParams).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant13.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant13.g.cs index 59cd691..7d3dd3c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant13.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant13.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.OAuth2CreateOrUpdateParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.OAuth2CreateOrUpdateParams).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo); } else if (value.IsApiKey) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ApiKeyCreateOrUpdateParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ApiKeyCreateOrUpdateParams).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiKey!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApiKey(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item.g.cs index 359929d..bb3a31e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageUrl(), typeInfo); } else if (value.IsAudioUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudioUrl(), typeInfo); } else if (value.IsVideoUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideoUrl(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item2.g.cs index d46f6f6..7a5de40 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item2.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageUrl(), typeInfo); } else if (value.IsAudioUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudioUrl(), typeInfo); } else if (value.IsVideoUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideoUrl(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Credentials.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Credentials.g.cs index d98d3fb..4d2d90e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Credentials.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Credentials.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.BucketAssumeRoleCredentials), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.BucketAssumeRoleCredentials).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssumeRole!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssumeRole(), typeInfo); } else if (value.IsAccessKey) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.BucketAccessKeyCredentials), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.BucketAccessKeyCredentials).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AccessKey!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAccessKey(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem.g.cs index b46ee21..327dfee 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreIngestionEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.StoreIngestionEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Ingestion!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickIngestion(), typeInfo); } else if (value.IsSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreSearchEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.StoreSearchEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Search!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSearch(), typeInfo); } else if (value.IsAgenticSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreAgenticSearchEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.StoreAgenticSearchEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgenticSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgenticSearch(), typeInfo); } else if (value.IsGrep) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreGrepEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.StoreGrepEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Grep!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGrep(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem2.g.cs index 3ac9e7f..40efcba 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem2.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageUrl(), typeInfo); } else if (value.IsAudioUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudioUrl(), typeInfo); } else if (value.IsVideoUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideoUrl(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem3.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem3.g.cs index 3c5873b..320d011 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem3.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem3.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageUrl(), typeInfo); } else if (value.IsAudioUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudioUrl(), typeInfo); } else if (value.IsVideoUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideoUrl(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem4.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem4.g.cs index 77e2dad..02b6d14 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem4.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem4.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageUrl(), typeInfo); } else if (value.IsAudioUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudioUrl(), typeInfo); } else if (value.IsVideoUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideoUrl(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem5.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem5.g.cs index b1d2a14..12abfa8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem5.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem5.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageUrl(), typeInfo); } else if (value.IsAudioUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudioUrl(), typeInfo); } else if (value.IsVideoUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideoUrl(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule.g.cs index 4a6ce39..47f3bd2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryStringSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryString(), typeInfo); } else if (value.IsQueryRegex) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryRegexSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryRegex(), typeInfo); } else if (value.IsChunkSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ChunkSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChunkSearchResult(), typeInfo); } else if (value.IsFileSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.FileSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchResult(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule2.g.cs index ef1ce7a..0dd1283 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule2.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryStringSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryString(), typeInfo); } else if (value.IsQueryRegex) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryRegexSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryRegex(), typeInfo); } else if (value.IsChunkSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ChunkSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChunkSearchResult(), typeInfo); } else if (value.IsFileSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.FileSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchResult(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.EmbeddingItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.EmbeddingItem.g.cs index 882a2b4..6f7b028 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.EmbeddingItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.EmbeddingItem.g.cs @@ -198,19 +198,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EmbeddingItemVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmbeddingItemVariant1(), typeInfo); } else if (value.IsEmbeddingItemVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EmbeddingItemVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmbeddingItemVariant2(), typeInfo); } else if (value.IsEmbeddingItemVariant3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EmbeddingItemVariant3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmbeddingItemVariant3(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant1.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant1.g.cs index e62278b..d0c3a2a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant1.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant1.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Markdown!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMarkdown(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsPdf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.PDFChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.PDFChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pdf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPdf(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.CodeChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.CodeChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant110.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant110.g.cs index 01d267a..05a69c1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant110.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant110.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Markdown!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMarkdown(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsPdf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.PDFChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.PDFChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pdf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPdf(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.CodeChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.CodeChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant111.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant111.g.cs index eb4cbca..f5ea349 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant111.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant111.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Markdown!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMarkdown(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsPdf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.PDFChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.PDFChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pdf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPdf(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.CodeChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.CodeChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant112.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant112.g.cs index d67b249..dc03514 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant112.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant112.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Markdown!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMarkdown(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsPdf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.PDFChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.PDFChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pdf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPdf(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.CodeChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.CodeChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant12.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant12.g.cs index 7e03d14..47eee9b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant12.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant12.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Markdown!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMarkdown(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsPdf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.PDFChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.PDFChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pdf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPdf(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.CodeChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.CodeChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant13.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant13.g.cs index bd2f96f..ab61de6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant13.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant13.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Markdown!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMarkdown(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsPdf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.PDFChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.PDFChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pdf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPdf(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.CodeChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.CodeChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant14.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant14.g.cs index 63c0c24..739a372 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant14.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant14.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Markdown!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMarkdown(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsPdf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.PDFChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.PDFChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pdf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPdf(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.CodeChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.CodeChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant15.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant15.g.cs index c673148..a99065c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant15.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant15.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Markdown!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMarkdown(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsPdf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.PDFChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.PDFChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pdf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPdf(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.CodeChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.CodeChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant16.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant16.g.cs index 67ec230..f93e996 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant16.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant16.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Markdown!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMarkdown(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsPdf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.PDFChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.PDFChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pdf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPdf(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.CodeChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.CodeChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant17.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant17.g.cs index 4ba6d16..8003741 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant17.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant17.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Markdown!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMarkdown(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsPdf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.PDFChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.PDFChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pdf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPdf(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.CodeChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.CodeChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant18.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant18.g.cs index 205670d..96f6d60 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant18.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant18.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Markdown!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMarkdown(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsPdf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.PDFChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.PDFChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pdf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPdf(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.CodeChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.CodeChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant19.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant19.g.cs index fb2cd22..50bbd54 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant19.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant19.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MarkdownChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Markdown!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMarkdown(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsPdf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.PDFChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.PDFChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pdf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPdf(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.CodeChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.CodeChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageChunkGeneratedMetadata), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageChunkGeneratedMetadata).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ItemsItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ItemsItem.g.cs index 5f2e2f6..807ef0c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ItemsItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ItemsItem.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryEnhanceQueryItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryEnhanceQueryItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Query!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQuery(), typeInfo); } else if (value.IsSort) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryEnhanceSortItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryEnhanceSortItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sort!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSort(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.MultiModalQuery.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.MultiModalQuery.g.cs index 53273ef..653e043 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.MultiModalQuery.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.MultiModalQuery.g.cs @@ -149,13 +149,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MultiModalQueryVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMultiModalQueryVariant1(), typeInfo); } else if (value.IsMultiModalQueryVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MultiModalQueryVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MultiModalQueryVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MultiModalQueryVariant2!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMultiModalQueryVariant2(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.MultiModalQueryVariant2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.MultiModalQueryVariant2.g.cs index e979118..e444c57 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.MultiModalQueryVariant2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.MultiModalQueryVariant2.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageUrlInput2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageUrlInput2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageUrl(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextInput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextInput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Rule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Rule.g.cs index 2c9dbe8..afddff7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Rule.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Rule.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryStringSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryString(), typeInfo); } else if (value.IsQueryRegex) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryRegexSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryRegex(), typeInfo); } else if (value.IsChunkSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ChunkSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChunkSearchResult(), typeInfo); } else if (value.IsFileSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.FileSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchResult(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Rule2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Rule2.g.cs index d78e516..96835ab 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Rule2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Rule2.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryStringSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryString(), typeInfo); } else if (value.IsQueryRegex) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryRegexSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryRegex(), typeInfo); } else if (value.IsChunkSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ChunkSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChunkSearchResult(), typeInfo); } else if (value.IsFileSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.FileSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchResult(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem.g.cs index ee4873e..c78a11a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryStringSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryString(), typeInfo); } else if (value.IsQueryRegex) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryRegexSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryRegex(), typeInfo); } else if (value.IsChunkSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ChunkSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChunkSearchResult(), typeInfo); } else if (value.IsFileSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.FileSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchResult(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem2.g.cs index a95c041..36ab34a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem2.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryStringSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryString(), typeInfo); } else if (value.IsQueryRegex) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryRegexSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryRegex(), typeInfo); } else if (value.IsChunkSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ChunkSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChunkSearchResult(), typeInfo); } else if (value.IsFileSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.FileSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchResult(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem3.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem3.g.cs index fdf97b6..42dcd10 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem3.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem3.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryStringSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryString(), typeInfo); } else if (value.IsQueryRegex) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryRegexSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryRegex(), typeInfo); } else if (value.IsChunkSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ChunkSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChunkSearchResult(), typeInfo); } else if (value.IsFileSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.FileSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchResult(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem4.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem4.g.cs index 1313377..ad6fa2b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem4.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesItem4.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryStringSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryString(), typeInfo); } else if (value.IsQueryRegex) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryRegexSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryRegex(), typeInfo); } else if (value.IsChunkSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ChunkSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChunkSearchResult(), typeInfo); } else if (value.IsFileSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.FileSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchResult(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesVariant1Item.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesVariant1Item.g.cs index 413a2d0..2960fbb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesVariant1Item.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesVariant1Item.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryStringSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryString(), typeInfo); } else if (value.IsQueryRegex) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryRegexSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryRegex(), typeInfo); } else if (value.IsChunkSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ChunkSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChunkSearchResult(), typeInfo); } else if (value.IsFileSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.FileSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchResult(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesVariant1Item2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesVariant1Item2.g.cs index 06dc17e..08a9712 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesVariant1Item2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.RulesVariant1Item2.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryStringSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryString(), typeInfo); } else if (value.IsQueryRegex) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryRegexSubstitutionRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQueryRegex(), typeInfo); } else if (value.IsChunkSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ChunkSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChunkSearchResult(), typeInfo); } else if (value.IsFileSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.FileSearchResultRule).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchResult(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SourcesItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SourcesItem.g.cs index 9de6eb2..7cc3bea 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SourcesItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SourcesItem.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageUrl(), typeInfo); } else if (value.IsAudioUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudioUrl(), typeInfo); } else if (value.IsVideoUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideoUrl(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SourcesItem2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SourcesItem2.g.cs index 2bb999a..a2871d2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SourcesItem2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SourcesItem2.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsImageUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageUrl(), typeInfo); } else if (value.IsAudioUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudioUrl(), typeInfo); } else if (value.IsVideoUrl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideoUrl(), typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.CreateEmbeddings.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.CreateEmbeddings.g.cs index 1f7f140..49f96bd 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.CreateEmbeddings.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.CreateEmbeddings.g.cs @@ -213,7 +213,7 @@ partial void ProcessCreateEmbeddingsResponseContent( pathTemplate: "\"/v1/embeddings\"", httpMethod: "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, @@ -247,7 +247,7 @@ partial void ProcessCreateEmbeddingsResponseContent( pathTemplate: "\"/v1/embeddings\"", httpMethod: "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, @@ -288,7 +288,7 @@ partial void ProcessCreateEmbeddingsResponseContent( pathTemplate: "\"/v1/embeddings\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessCreateEmbeddingsResponseContent( pathTemplate: "\"/v1/embeddings\"", httpMethod: "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, @@ -358,7 +358,7 @@ partial void ProcessCreateEmbeddingsResponseContent( pathTemplate: "\"/v1/embeddings\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.MixedbreadClient.Info.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Info.g.cs index 107d00a..21e7ec9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Info.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Info.g.cs @@ -189,7 +189,7 @@ partial void ProcessInfoResponseContent( pathTemplate: "\"/\"", httpMethod: "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, @@ -223,7 +223,7 @@ partial void ProcessInfoResponseContent( pathTemplate: "\"/\"", httpMethod: "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, @@ -264,7 +264,7 @@ partial void ProcessInfoResponseContent( pathTemplate: "\"/\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessInfoResponseContent( pathTemplate: "\"/\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessInfoResponseContent( pathTemplate: "\"/\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.MixedbreadClient.Rerank.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Rerank.g.cs index d903206..35d8bd3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Rerank.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Rerank.g.cs @@ -213,7 +213,7 @@ partial void ProcessRerankResponseContent( pathTemplate: "\"/v1/reranking\"", httpMethod: "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, @@ -247,7 +247,7 @@ partial void ProcessRerankResponseContent( pathTemplate: "\"/v1/reranking\"", httpMethod: "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, @@ -288,7 +288,7 @@ partial void ProcessRerankResponseContent( pathTemplate: "\"/v1/reranking\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessRerankResponseContent( pathTemplate: "\"/v1/reranking\"", httpMethod: "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, @@ -358,7 +358,7 @@ partial void ProcessRerankResponseContent( pathTemplate: "\"/v1/reranking\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant1.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant1.g.cs index 71caff5..2daa833 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant1.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant1.g.cs @@ -47,8 +47,8 @@ public bool TryPickOauth2( /// /// /// - public global::Mixedbread.DataSourceOAuth2Params PickOauth2() => IsOauth2 - ? Oauth2! + public global::Mixedbread.DataSourceOAuth2Params PickOauth2() => Oauth2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Oauth2' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickApiKey( /// /// /// - public global::Mixedbread.DataSourceApiKeyParams PickApiKey() => IsApiKey - ? ApiKey! + public global::Mixedbread.DataSourceApiKeyParams PickApiKey() => ApiKey is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApiKey' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsOauth2 && oauth2 != null) + if (Oauth2 is { } __value0 && oauth2 != null) { - return oauth2(Oauth2!); + return oauth2(__value0); } - else if (IsApiKey && apiKey != null) + else if (ApiKey is { } __value1 && apiKey != null) { - return apiKey(ApiKey!); + return apiKey(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsApiKey) + else if (ApiKey is { } __value1) { - apiKey?.Invoke(ApiKey!); + apiKey?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsApiKey) + else if (ApiKey is { } __value1) { - apiKey?.Invoke(ApiKey!); + apiKey?.Invoke(__value1); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant12.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant12.g.cs index 1fac90e..91cd619 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant12.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant12.g.cs @@ -47,8 +47,8 @@ public bool TryPickOauth2( /// /// /// - public global::Mixedbread.OAuth2CreateOrUpdateParams PickOauth2() => IsOauth2 - ? Oauth2! + public global::Mixedbread.OAuth2CreateOrUpdateParams PickOauth2() => Oauth2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Oauth2' but the value was {ToString()}."); /// /// @@ -120,9 +120,9 @@ public bool Validate() Validate(); } - if (IsOauth2 && oauth2 != null) + if (Oauth2 is { } __value0 && oauth2 != null) { - return oauth2(Oauth2!); + return oauth2(__value0); } return default(TResult); @@ -140,9 +140,9 @@ public void Match( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } } @@ -158,9 +158,9 @@ public void Switch( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant13.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant13.g.cs index 5201df6..a8a9867 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant13.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant13.g.cs @@ -47,8 +47,8 @@ public bool TryPickOauth2( /// /// /// - public global::Mixedbread.OAuth2CreateOrUpdateParams PickOauth2() => IsOauth2 - ? Oauth2! + public global::Mixedbread.OAuth2CreateOrUpdateParams PickOauth2() => Oauth2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Oauth2' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickApiKey( /// /// /// - public global::Mixedbread.ApiKeyCreateOrUpdateParams PickApiKey() => IsApiKey - ? ApiKey! + public global::Mixedbread.ApiKeyCreateOrUpdateParams PickApiKey() => ApiKey is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApiKey' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsOauth2 && oauth2 != null) + if (Oauth2 is { } __value0 && oauth2 != null) { - return oauth2(Oauth2!); + return oauth2(__value0); } - else if (IsApiKey && apiKey != null) + else if (ApiKey is { } __value1 && apiKey != null) { - return apiKey(ApiKey!); + return apiKey(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsApiKey) + else if (ApiKey is { } __value1) { - apiKey?.Invoke(ApiKey!); + apiKey?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsApiKey) + else if (ApiKey is { } __value1) { - apiKey?.Invoke(ApiKey!); + apiKey?.Invoke(__value1); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item.g.cs index c25c18d..f7e5e6f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextInputChunk PickText() => IsText - ? Text! + public global::Mixedbread.TextInputChunk PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickImageUrl( /// /// /// - public global::Mixedbread.ImageUrlInputChunk PickImageUrl() => IsImageUrl - ? ImageUrl! + public global::Mixedbread.ImageUrlInputChunk PickImageUrl() => ImageUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageUrl' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAudioUrl( /// /// /// - public global::Mixedbread.AudioUrlInputChunk PickAudioUrl() => IsAudioUrl - ? AudioUrl! + public global::Mixedbread.AudioUrlInputChunk PickAudioUrl() => AudioUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AudioUrl' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVideoUrl( /// /// /// - public global::Mixedbread.VideoUrlInputChunk PickVideoUrl() => IsVideoUrl - ? VideoUrl! + public global::Mixedbread.VideoUrlInputChunk PickVideoUrl() => VideoUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VideoUrl' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsImageUrl && imageUrl != null) + else if (ImageUrl is { } __value1 && imageUrl != null) { - return imageUrl(ImageUrl!); + return imageUrl(__value1); } - else if (IsAudioUrl && audioUrl != null) + else if (AudioUrl is { } __value2 && audioUrl != null) { - return audioUrl(AudioUrl!); + return audioUrl(__value2); } - else if (IsVideoUrl && videoUrl != null) + else if (VideoUrl is { } __value3 && videoUrl != null) { - return videoUrl(VideoUrl!); + return videoUrl(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item2.g.cs index bcc60bb..e384a1a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item2.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextInputChunk PickText() => IsText - ? Text! + public global::Mixedbread.TextInputChunk PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickImageUrl( /// /// /// - public global::Mixedbread.ImageUrlInputChunk PickImageUrl() => IsImageUrl - ? ImageUrl! + public global::Mixedbread.ImageUrlInputChunk PickImageUrl() => ImageUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageUrl' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAudioUrl( /// /// /// - public global::Mixedbread.AudioUrlInputChunk PickAudioUrl() => IsAudioUrl - ? AudioUrl! + public global::Mixedbread.AudioUrlInputChunk PickAudioUrl() => AudioUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AudioUrl' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVideoUrl( /// /// /// - public global::Mixedbread.VideoUrlInputChunk PickVideoUrl() => IsVideoUrl - ? VideoUrl! + public global::Mixedbread.VideoUrlInputChunk PickVideoUrl() => VideoUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VideoUrl' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsImageUrl && imageUrl != null) + else if (ImageUrl is { } __value1 && imageUrl != null) { - return imageUrl(ImageUrl!); + return imageUrl(__value1); } - else if (IsAudioUrl && audioUrl != null) + else if (AudioUrl is { } __value2 && audioUrl != null) { - return audioUrl(AudioUrl!); + return audioUrl(__value2); } - else if (IsVideoUrl && videoUrl != null) + else if (VideoUrl is { } __value3 && videoUrl != null) { - return videoUrl(VideoUrl!); + return videoUrl(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Credentials.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Credentials.g.cs index 704c14f..19ad7b1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Credentials.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Credentials.g.cs @@ -50,8 +50,8 @@ public bool TryPickAssumeRole( /// /// /// - public global::Mixedbread.BucketAssumeRoleCredentials PickAssumeRole() => IsAssumeRole - ? AssumeRole! + public global::Mixedbread.BucketAssumeRoleCredentials PickAssumeRole() => AssumeRole is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssumeRole' but the value was {ToString()}."); /// @@ -87,8 +87,8 @@ public bool TryPickAccessKey( /// /// /// - public global::Mixedbread.BucketAccessKeyCredentials PickAccessKey() => IsAccessKey - ? AccessKey! + public global::Mixedbread.BucketAccessKeyCredentials PickAccessKey() => AccessKey is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AccessKey' but the value was {ToString()}."); /// /// @@ -188,13 +188,13 @@ public bool Validate() Validate(); } - if (IsAssumeRole && assumeRole != null) + if (AssumeRole is { } __value0 && assumeRole != null) { - return assumeRole(AssumeRole!); + return assumeRole(__value0); } - else if (IsAccessKey && accessKey != null) + else if (AccessKey is { } __value1 && accessKey != null) { - return accessKey(AccessKey!); + return accessKey(__value1); } return default(TResult); @@ -214,13 +214,13 @@ public void Match( Validate(); } - if (IsAssumeRole) + if (AssumeRole is { } __value0) { - assumeRole?.Invoke(AssumeRole!); + assumeRole?.Invoke(__value0); } - else if (IsAccessKey) + else if (AccessKey is { } __value1) { - accessKey?.Invoke(AccessKey!); + accessKey?.Invoke(__value1); } } @@ -237,13 +237,13 @@ public void Switch( Validate(); } - if (IsAssumeRole) + if (AssumeRole is { } __value0) { - assumeRole?.Invoke(AssumeRole!); + assumeRole?.Invoke(__value0); } - else if (IsAccessKey) + else if (AccessKey is { } __value1) { - accessKey?.Invoke(AccessKey!); + accessKey?.Invoke(__value1); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem.g.cs index f9a4fc9..1a32d70 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickIngestion( /// /// /// - public global::Mixedbread.StoreIngestionEvent PickIngestion() => IsIngestion - ? Ingestion! + public global::Mixedbread.StoreIngestionEvent PickIngestion() => Ingestion is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Ingestion' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickSearch( /// /// /// - public global::Mixedbread.StoreSearchEvent PickSearch() => IsSearch - ? Search! + public global::Mixedbread.StoreSearchEvent PickSearch() => Search is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Search' but the value was {ToString()}."); /// @@ -124,8 +124,8 @@ public bool TryPickAgenticSearch( /// /// /// - public global::Mixedbread.StoreAgenticSearchEvent PickAgenticSearch() => IsAgenticSearch - ? AgenticSearch! + public global::Mixedbread.StoreAgenticSearchEvent PickAgenticSearch() => AgenticSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgenticSearch' but the value was {ToString()}."); /// @@ -163,8 +163,8 @@ public bool TryPickGrep( /// /// /// - public global::Mixedbread.StoreGrepEvent PickGrep() => IsGrep - ? Grep! + public global::Mixedbread.StoreGrepEvent PickGrep() => Grep is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Grep' but the value was {ToString()}."); /// /// @@ -320,21 +320,21 @@ public bool Validate() Validate(); } - if (IsIngestion && ingestion != null) + if (Ingestion is { } __value0 && ingestion != null) { - return ingestion(Ingestion!); + return ingestion(__value0); } - else if (IsSearch && search != null) + else if (Search is { } __value1 && search != null) { - return search(Search!); + return search(__value1); } - else if (IsAgenticSearch && agenticSearch != null) + else if (AgenticSearch is { } __value2 && agenticSearch != null) { - return agenticSearch(AgenticSearch!); + return agenticSearch(__value2); } - else if (IsGrep && grep != null) + else if (Grep is { } __value3 && grep != null) { - return grep(Grep!); + return grep(__value3); } return default(TResult); @@ -358,21 +358,21 @@ public void Match( Validate(); } - if (IsIngestion) + if (Ingestion is { } __value0) { - ingestion?.Invoke(Ingestion!); + ingestion?.Invoke(__value0); } - else if (IsSearch) + else if (Search is { } __value1) { - search?.Invoke(Search!); + search?.Invoke(__value1); } - else if (IsAgenticSearch) + else if (AgenticSearch is { } __value2) { - agenticSearch?.Invoke(AgenticSearch!); + agenticSearch?.Invoke(__value2); } - else if (IsGrep) + else if (Grep is { } __value3) { - grep?.Invoke(Grep!); + grep?.Invoke(__value3); } } @@ -391,21 +391,21 @@ public void Switch( Validate(); } - if (IsIngestion) + if (Ingestion is { } __value0) { - ingestion?.Invoke(Ingestion!); + ingestion?.Invoke(__value0); } - else if (IsSearch) + else if (Search is { } __value1) { - search?.Invoke(Search!); + search?.Invoke(__value1); } - else if (IsAgenticSearch) + else if (AgenticSearch is { } __value2) { - agenticSearch?.Invoke(AgenticSearch!); + agenticSearch?.Invoke(__value2); } - else if (IsGrep) + else if (Grep is { } __value3) { - grep?.Invoke(Grep!); + grep?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem2.g.cs index d4b11ef..7dffde8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem2.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk PickText() => IsText - ? Text! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickImageUrl( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk PickImageUrl() => IsImageUrl - ? ImageUrl! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk PickImageUrl() => ImageUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageUrl' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAudioUrl( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk PickAudioUrl() => IsAudioUrl - ? AudioUrl! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk PickAudioUrl() => AudioUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AudioUrl' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVideoUrl( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk PickVideoUrl() => IsVideoUrl - ? VideoUrl! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk PickVideoUrl() => VideoUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VideoUrl' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsImageUrl && imageUrl != null) + else if (ImageUrl is { } __value1 && imageUrl != null) { - return imageUrl(ImageUrl!); + return imageUrl(__value1); } - else if (IsAudioUrl && audioUrl != null) + else if (AudioUrl is { } __value2 && audioUrl != null) { - return audioUrl(AudioUrl!); + return audioUrl(__value2); } - else if (IsVideoUrl && videoUrl != null) + else if (VideoUrl is { } __value3 && videoUrl != null) { - return videoUrl(VideoUrl!); + return videoUrl(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem3.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem3.g.cs index c8f7faf..628f75b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem3.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem3.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk PickText() => IsText - ? Text! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickImageUrl( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk PickImageUrl() => IsImageUrl - ? ImageUrl! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk PickImageUrl() => ImageUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageUrl' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAudioUrl( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk PickAudioUrl() => IsAudioUrl - ? AudioUrl! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk PickAudioUrl() => AudioUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AudioUrl' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVideoUrl( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk PickVideoUrl() => IsVideoUrl - ? VideoUrl! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk PickVideoUrl() => VideoUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VideoUrl' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsImageUrl && imageUrl != null) + else if (ImageUrl is { } __value1 && imageUrl != null) { - return imageUrl(ImageUrl!); + return imageUrl(__value1); } - else if (IsAudioUrl && audioUrl != null) + else if (AudioUrl is { } __value2 && audioUrl != null) { - return audioUrl(AudioUrl!); + return audioUrl(__value2); } - else if (IsVideoUrl && videoUrl != null) + else if (VideoUrl is { } __value3 && videoUrl != null) { - return videoUrl(VideoUrl!); + return videoUrl(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.g.cs index 7e1f1dc..b20a77e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk PickText() => IsText - ? Text! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickImageUrl( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk PickImageUrl() => IsImageUrl - ? ImageUrl! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk PickImageUrl() => ImageUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageUrl' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAudioUrl( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk PickAudioUrl() => IsAudioUrl - ? AudioUrl! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk PickAudioUrl() => AudioUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AudioUrl' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVideoUrl( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk PickVideoUrl() => IsVideoUrl - ? VideoUrl! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk PickVideoUrl() => VideoUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VideoUrl' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsImageUrl && imageUrl != null) + else if (ImageUrl is { } __value1 && imageUrl != null) { - return imageUrl(ImageUrl!); + return imageUrl(__value1); } - else if (IsAudioUrl && audioUrl != null) + else if (AudioUrl is { } __value2 && audioUrl != null) { - return audioUrl(AudioUrl!); + return audioUrl(__value2); } - else if (IsVideoUrl && videoUrl != null) + else if (VideoUrl is { } __value3 && videoUrl != null) { - return videoUrl(VideoUrl!); + return videoUrl(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem5.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem5.g.cs index e63e070..4a8caea 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem5.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem5.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk PickText() => IsText - ? Text! + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickImageUrl( /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk PickImageUrl() => IsImageUrl - ? ImageUrl! + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk PickImageUrl() => ImageUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageUrl' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAudioUrl( /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk PickAudioUrl() => IsAudioUrl - ? AudioUrl! + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk PickAudioUrl() => AudioUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AudioUrl' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVideoUrl( /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk PickVideoUrl() => IsVideoUrl - ? VideoUrl! + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk PickVideoUrl() => VideoUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VideoUrl' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsImageUrl && imageUrl != null) + else if (ImageUrl is { } __value1 && imageUrl != null) { - return imageUrl(ImageUrl!); + return imageUrl(__value1); } - else if (IsAudioUrl && audioUrl != null) + else if (AudioUrl is { } __value2 && audioUrl != null) { - return audioUrl(AudioUrl!); + return audioUrl(__value2); } - else if (IsVideoUrl && videoUrl != null) + else if (VideoUrl is { } __value3 && videoUrl != null) { - return videoUrl(VideoUrl!); + return videoUrl(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule.g.cs index 12c8606..9ea5ade 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule.g.cs @@ -47,8 +47,8 @@ public bool TryPickQueryString( /// /// /// - public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => IsQueryString - ? QueryString! + public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => QueryString is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryString' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickQueryRegex( /// /// /// - public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => IsQueryRegex - ? QueryRegex! + public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => QueryRegex is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryRegex' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickChunkSearchResult( /// /// /// - public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => IsChunkSearchResult - ? ChunkSearchResult! + public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => ChunkSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChunkSearchResult' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFileSearchResult( /// /// /// - public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => IsFileSearchResult - ? FileSearchResult! + public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => FileSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchResult' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsQueryString && queryString != null) + if (QueryString is { } __value0 && queryString != null) { - return queryString(QueryString!); + return queryString(__value0); } - else if (IsQueryRegex && queryRegex != null) + else if (QueryRegex is { } __value1 && queryRegex != null) { - return queryRegex(QueryRegex!); + return queryRegex(__value1); } - else if (IsChunkSearchResult && chunkSearchResult != null) + else if (ChunkSearchResult is { } __value2 && chunkSearchResult != null) { - return chunkSearchResult(ChunkSearchResult!); + return chunkSearchResult(__value2); } - else if (IsFileSearchResult && fileSearchResult != null) + else if (FileSearchResult is { } __value3 && fileSearchResult != null) { - return fileSearchResult(FileSearchResult!); + return fileSearchResult(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule2.g.cs index c626ff7..5175078 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule2.g.cs @@ -47,8 +47,8 @@ public bool TryPickQueryString( /// /// /// - public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => IsQueryString - ? QueryString! + public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => QueryString is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryString' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickQueryRegex( /// /// /// - public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => IsQueryRegex - ? QueryRegex! + public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => QueryRegex is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryRegex' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickChunkSearchResult( /// /// /// - public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => IsChunkSearchResult - ? ChunkSearchResult! + public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => ChunkSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChunkSearchResult' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFileSearchResult( /// /// /// - public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => IsFileSearchResult - ? FileSearchResult! + public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => FileSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchResult' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsQueryString && queryString != null) + if (QueryString is { } __value0 && queryString != null) { - return queryString(QueryString!); + return queryString(__value0); } - else if (IsQueryRegex && queryRegex != null) + else if (QueryRegex is { } __value1 && queryRegex != null) { - return queryRegex(QueryRegex!); + return queryRegex(__value1); } - else if (IsChunkSearchResult && chunkSearchResult != null) + else if (ChunkSearchResult is { } __value2 && chunkSearchResult != null) { - return chunkSearchResult(ChunkSearchResult!); + return chunkSearchResult(__value2); } - else if (IsFileSearchResult && fileSearchResult != null) + else if (FileSearchResult is { } __value3 && fileSearchResult != null) { - return fileSearchResult(FileSearchResult!); + return fileSearchResult(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingItem.g.cs index 142459e..64ad0fe 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingItem.g.cs @@ -42,8 +42,8 @@ public bool TryPickEmbeddingItemVariant1( /// /// /// - public global::System.Collections.Generic.IList PickEmbeddingItemVariant1() => IsEmbeddingItemVariant1 - ? EmbeddingItemVariant1! + public global::System.Collections.Generic.IList PickEmbeddingItemVariant1() => EmbeddingItemVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EmbeddingItemVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEmbeddingItemVariant2( /// /// /// - public global::System.Collections.Generic.IList PickEmbeddingItemVariant2() => IsEmbeddingItemVariant2 - ? EmbeddingItemVariant2! + public global::System.Collections.Generic.IList PickEmbeddingItemVariant2() => EmbeddingItemVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EmbeddingItemVariant2' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickEmbeddingItemVariant3( /// /// /// - public string PickEmbeddingItemVariant3() => IsEmbeddingItemVariant3 - ? EmbeddingItemVariant3! + public string PickEmbeddingItemVariant3() => EmbeddingItemVariant3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EmbeddingItemVariant3' but the value was {ToString()}."); /// /// @@ -196,17 +196,17 @@ public bool Validate() Validate(); } - if (IsEmbeddingItemVariant1 && embeddingItemVariant1 != null) + if (EmbeddingItemVariant1 is { } __value0 && embeddingItemVariant1 != null) { - return embeddingItemVariant1(EmbeddingItemVariant1!); + return embeddingItemVariant1(__value0); } - else if (IsEmbeddingItemVariant2 && embeddingItemVariant2 != null) + else if (EmbeddingItemVariant2 is { } __value1 && embeddingItemVariant2 != null) { - return embeddingItemVariant2(EmbeddingItemVariant2!); + return embeddingItemVariant2(__value1); } - else if (IsEmbeddingItemVariant3 && embeddingItemVariant3 != null) + else if (EmbeddingItemVariant3 is { } __value2 && embeddingItemVariant3 != null) { - return embeddingItemVariant3(EmbeddingItemVariant3!); + return embeddingItemVariant3(__value2); } return default(TResult); @@ -228,17 +228,17 @@ public void Match( Validate(); } - if (IsEmbeddingItemVariant1) + if (EmbeddingItemVariant1 is { } __value0) { - embeddingItemVariant1?.Invoke(EmbeddingItemVariant1!); + embeddingItemVariant1?.Invoke(__value0); } - else if (IsEmbeddingItemVariant2) + else if (EmbeddingItemVariant2 is { } __value1) { - embeddingItemVariant2?.Invoke(EmbeddingItemVariant2!); + embeddingItemVariant2?.Invoke(__value1); } - else if (IsEmbeddingItemVariant3) + else if (EmbeddingItemVariant3 is { } __value2) { - embeddingItemVariant3?.Invoke(EmbeddingItemVariant3!); + embeddingItemVariant3?.Invoke(__value2); } } @@ -256,17 +256,17 @@ public void Switch( Validate(); } - if (IsEmbeddingItemVariant1) + if (EmbeddingItemVariant1 is { } __value0) { - embeddingItemVariant1?.Invoke(EmbeddingItemVariant1!); + embeddingItemVariant1?.Invoke(__value0); } - else if (IsEmbeddingItemVariant2) + else if (EmbeddingItemVariant2 is { } __value1) { - embeddingItemVariant2?.Invoke(EmbeddingItemVariant2!); + embeddingItemVariant2?.Invoke(__value1); } - else if (IsEmbeddingItemVariant3) + else if (EmbeddingItemVariant3 is { } __value2) { - embeddingItemVariant3?.Invoke(EmbeddingItemVariant3!); + embeddingItemVariant3?.Invoke(__value2); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant1.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant1.g.cs index 1659e3a..52da1f5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant1.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant1.g.cs @@ -47,8 +47,8 @@ public bool TryPickMarkdown( /// /// /// - public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => IsMarkdown - ? Markdown! + public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => Markdown is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Markdown' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextChunkGeneratedMetadata PickText() => IsText - ? Text! + public global::Mixedbread.TextChunkGeneratedMetadata PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickPdf( /// /// /// - public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => IsPdf - ? Pdf! + public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => Pdf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pdf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickCode( /// /// /// - public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => IsCode - ? Code! + public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAudio( /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => IsAudio - ? Audio! + public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickVideo( /// /// /// - public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => IsVideo - ? Video! + public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickImage( /// /// /// - public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => IsImage - ? Image! + public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -510,33 +510,33 @@ public bool Validate() Validate(); } - if (IsMarkdown && markdown != null) + if (Markdown is { } __value0 && markdown != null) { - return markdown(Markdown!); + return markdown(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } - else if (IsPdf && pdf != null) + else if (Pdf is { } __value2 && pdf != null) { - return pdf(Pdf!); + return pdf(__value2); } - else if (IsCode && code != null) + else if (Code is { } __value3 && code != null) { - return code(Code!); + return code(__value3); } - else if (IsAudio && audio != null) + else if (Audio is { } __value4 && audio != null) { - return audio(Audio!); + return audio(__value4); } - else if (IsVideo && video != null) + else if (Video is { } __value5 && video != null) { - return video(Video!); + return video(__value5); } - else if (IsImage && image != null) + else if (Image is { } __value6 && image != null) { - return image(Image!); + return image(__value6); } return default(TResult); @@ -566,33 +566,33 @@ public void Match( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } @@ -614,33 +614,33 @@ public void Switch( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant110.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant110.g.cs index 63d5968..f2ab21c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant110.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant110.g.cs @@ -47,8 +47,8 @@ public bool TryPickMarkdown( /// /// /// - public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => IsMarkdown - ? Markdown! + public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => Markdown is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Markdown' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextChunkGeneratedMetadata PickText() => IsText - ? Text! + public global::Mixedbread.TextChunkGeneratedMetadata PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickPdf( /// /// /// - public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => IsPdf - ? Pdf! + public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => Pdf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pdf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickCode( /// /// /// - public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => IsCode - ? Code! + public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAudio( /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => IsAudio - ? Audio! + public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickVideo( /// /// /// - public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => IsVideo - ? Video! + public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickImage( /// /// /// - public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => IsImage - ? Image! + public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -510,33 +510,33 @@ public bool Validate() Validate(); } - if (IsMarkdown && markdown != null) + if (Markdown is { } __value0 && markdown != null) { - return markdown(Markdown!); + return markdown(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } - else if (IsPdf && pdf != null) + else if (Pdf is { } __value2 && pdf != null) { - return pdf(Pdf!); + return pdf(__value2); } - else if (IsCode && code != null) + else if (Code is { } __value3 && code != null) { - return code(Code!); + return code(__value3); } - else if (IsAudio && audio != null) + else if (Audio is { } __value4 && audio != null) { - return audio(Audio!); + return audio(__value4); } - else if (IsVideo && video != null) + else if (Video is { } __value5 && video != null) { - return video(Video!); + return video(__value5); } - else if (IsImage && image != null) + else if (Image is { } __value6 && image != null) { - return image(Image!); + return image(__value6); } return default(TResult); @@ -566,33 +566,33 @@ public void Match( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } @@ -614,33 +614,33 @@ public void Switch( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant111.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant111.g.cs index 365dc21..c638afb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant111.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant111.g.cs @@ -47,8 +47,8 @@ public bool TryPickMarkdown( /// /// /// - public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => IsMarkdown - ? Markdown! + public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => Markdown is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Markdown' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextChunkGeneratedMetadata PickText() => IsText - ? Text! + public global::Mixedbread.TextChunkGeneratedMetadata PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickPdf( /// /// /// - public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => IsPdf - ? Pdf! + public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => Pdf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pdf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickCode( /// /// /// - public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => IsCode - ? Code! + public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAudio( /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => IsAudio - ? Audio! + public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickVideo( /// /// /// - public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => IsVideo - ? Video! + public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickImage( /// /// /// - public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => IsImage - ? Image! + public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -510,33 +510,33 @@ public bool Validate() Validate(); } - if (IsMarkdown && markdown != null) + if (Markdown is { } __value0 && markdown != null) { - return markdown(Markdown!); + return markdown(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } - else if (IsPdf && pdf != null) + else if (Pdf is { } __value2 && pdf != null) { - return pdf(Pdf!); + return pdf(__value2); } - else if (IsCode && code != null) + else if (Code is { } __value3 && code != null) { - return code(Code!); + return code(__value3); } - else if (IsAudio && audio != null) + else if (Audio is { } __value4 && audio != null) { - return audio(Audio!); + return audio(__value4); } - else if (IsVideo && video != null) + else if (Video is { } __value5 && video != null) { - return video(Video!); + return video(__value5); } - else if (IsImage && image != null) + else if (Image is { } __value6 && image != null) { - return image(Image!); + return image(__value6); } return default(TResult); @@ -566,33 +566,33 @@ public void Match( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } @@ -614,33 +614,33 @@ public void Switch( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant112.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant112.g.cs index 109ff68..ba6be90 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant112.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant112.g.cs @@ -47,8 +47,8 @@ public bool TryPickMarkdown( /// /// /// - public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => IsMarkdown - ? Markdown! + public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => Markdown is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Markdown' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextChunkGeneratedMetadata PickText() => IsText - ? Text! + public global::Mixedbread.TextChunkGeneratedMetadata PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickPdf( /// /// /// - public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => IsPdf - ? Pdf! + public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => Pdf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pdf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickCode( /// /// /// - public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => IsCode - ? Code! + public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAudio( /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => IsAudio - ? Audio! + public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickVideo( /// /// /// - public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => IsVideo - ? Video! + public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickImage( /// /// /// - public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => IsImage - ? Image! + public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -510,33 +510,33 @@ public bool Validate() Validate(); } - if (IsMarkdown && markdown != null) + if (Markdown is { } __value0 && markdown != null) { - return markdown(Markdown!); + return markdown(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } - else if (IsPdf && pdf != null) + else if (Pdf is { } __value2 && pdf != null) { - return pdf(Pdf!); + return pdf(__value2); } - else if (IsCode && code != null) + else if (Code is { } __value3 && code != null) { - return code(Code!); + return code(__value3); } - else if (IsAudio && audio != null) + else if (Audio is { } __value4 && audio != null) { - return audio(Audio!); + return audio(__value4); } - else if (IsVideo && video != null) + else if (Video is { } __value5 && video != null) { - return video(Video!); + return video(__value5); } - else if (IsImage && image != null) + else if (Image is { } __value6 && image != null) { - return image(Image!); + return image(__value6); } return default(TResult); @@ -566,33 +566,33 @@ public void Match( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } @@ -614,33 +614,33 @@ public void Switch( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant12.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant12.g.cs index 57b6e46..69d01c6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant12.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant12.g.cs @@ -47,8 +47,8 @@ public bool TryPickMarkdown( /// /// /// - public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => IsMarkdown - ? Markdown! + public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => Markdown is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Markdown' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextChunkGeneratedMetadata PickText() => IsText - ? Text! + public global::Mixedbread.TextChunkGeneratedMetadata PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickPdf( /// /// /// - public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => IsPdf - ? Pdf! + public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => Pdf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pdf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickCode( /// /// /// - public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => IsCode - ? Code! + public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAudio( /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => IsAudio - ? Audio! + public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickVideo( /// /// /// - public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => IsVideo - ? Video! + public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickImage( /// /// /// - public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => IsImage - ? Image! + public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -510,33 +510,33 @@ public bool Validate() Validate(); } - if (IsMarkdown && markdown != null) + if (Markdown is { } __value0 && markdown != null) { - return markdown(Markdown!); + return markdown(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } - else if (IsPdf && pdf != null) + else if (Pdf is { } __value2 && pdf != null) { - return pdf(Pdf!); + return pdf(__value2); } - else if (IsCode && code != null) + else if (Code is { } __value3 && code != null) { - return code(Code!); + return code(__value3); } - else if (IsAudio && audio != null) + else if (Audio is { } __value4 && audio != null) { - return audio(Audio!); + return audio(__value4); } - else if (IsVideo && video != null) + else if (Video is { } __value5 && video != null) { - return video(Video!); + return video(__value5); } - else if (IsImage && image != null) + else if (Image is { } __value6 && image != null) { - return image(Image!); + return image(__value6); } return default(TResult); @@ -566,33 +566,33 @@ public void Match( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } @@ -614,33 +614,33 @@ public void Switch( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant13.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant13.g.cs index bb0f99b..8c77862 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant13.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant13.g.cs @@ -47,8 +47,8 @@ public bool TryPickMarkdown( /// /// /// - public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => IsMarkdown - ? Markdown! + public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => Markdown is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Markdown' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextChunkGeneratedMetadata PickText() => IsText - ? Text! + public global::Mixedbread.TextChunkGeneratedMetadata PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickPdf( /// /// /// - public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => IsPdf - ? Pdf! + public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => Pdf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pdf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickCode( /// /// /// - public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => IsCode - ? Code! + public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAudio( /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => IsAudio - ? Audio! + public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickVideo( /// /// /// - public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => IsVideo - ? Video! + public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickImage( /// /// /// - public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => IsImage - ? Image! + public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -510,33 +510,33 @@ public bool Validate() Validate(); } - if (IsMarkdown && markdown != null) + if (Markdown is { } __value0 && markdown != null) { - return markdown(Markdown!); + return markdown(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } - else if (IsPdf && pdf != null) + else if (Pdf is { } __value2 && pdf != null) { - return pdf(Pdf!); + return pdf(__value2); } - else if (IsCode && code != null) + else if (Code is { } __value3 && code != null) { - return code(Code!); + return code(__value3); } - else if (IsAudio && audio != null) + else if (Audio is { } __value4 && audio != null) { - return audio(Audio!); + return audio(__value4); } - else if (IsVideo && video != null) + else if (Video is { } __value5 && video != null) { - return video(Video!); + return video(__value5); } - else if (IsImage && image != null) + else if (Image is { } __value6 && image != null) { - return image(Image!); + return image(__value6); } return default(TResult); @@ -566,33 +566,33 @@ public void Match( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } @@ -614,33 +614,33 @@ public void Switch( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant14.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant14.g.cs index 053737d..569cedf 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant14.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant14.g.cs @@ -47,8 +47,8 @@ public bool TryPickMarkdown( /// /// /// - public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => IsMarkdown - ? Markdown! + public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => Markdown is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Markdown' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextChunkGeneratedMetadata PickText() => IsText - ? Text! + public global::Mixedbread.TextChunkGeneratedMetadata PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickPdf( /// /// /// - public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => IsPdf - ? Pdf! + public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => Pdf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pdf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickCode( /// /// /// - public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => IsCode - ? Code! + public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAudio( /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => IsAudio - ? Audio! + public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickVideo( /// /// /// - public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => IsVideo - ? Video! + public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickImage( /// /// /// - public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => IsImage - ? Image! + public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -510,33 +510,33 @@ public bool Validate() Validate(); } - if (IsMarkdown && markdown != null) + if (Markdown is { } __value0 && markdown != null) { - return markdown(Markdown!); + return markdown(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } - else if (IsPdf && pdf != null) + else if (Pdf is { } __value2 && pdf != null) { - return pdf(Pdf!); + return pdf(__value2); } - else if (IsCode && code != null) + else if (Code is { } __value3 && code != null) { - return code(Code!); + return code(__value3); } - else if (IsAudio && audio != null) + else if (Audio is { } __value4 && audio != null) { - return audio(Audio!); + return audio(__value4); } - else if (IsVideo && video != null) + else if (Video is { } __value5 && video != null) { - return video(Video!); + return video(__value5); } - else if (IsImage && image != null) + else if (Image is { } __value6 && image != null) { - return image(Image!); + return image(__value6); } return default(TResult); @@ -566,33 +566,33 @@ public void Match( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } @@ -614,33 +614,33 @@ public void Switch( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant15.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant15.g.cs index 02a8657..bb2a131 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant15.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant15.g.cs @@ -47,8 +47,8 @@ public bool TryPickMarkdown( /// /// /// - public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => IsMarkdown - ? Markdown! + public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => Markdown is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Markdown' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextChunkGeneratedMetadata PickText() => IsText - ? Text! + public global::Mixedbread.TextChunkGeneratedMetadata PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickPdf( /// /// /// - public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => IsPdf - ? Pdf! + public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => Pdf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pdf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickCode( /// /// /// - public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => IsCode - ? Code! + public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAudio( /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => IsAudio - ? Audio! + public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickVideo( /// /// /// - public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => IsVideo - ? Video! + public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickImage( /// /// /// - public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => IsImage - ? Image! + public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -510,33 +510,33 @@ public bool Validate() Validate(); } - if (IsMarkdown && markdown != null) + if (Markdown is { } __value0 && markdown != null) { - return markdown(Markdown!); + return markdown(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } - else if (IsPdf && pdf != null) + else if (Pdf is { } __value2 && pdf != null) { - return pdf(Pdf!); + return pdf(__value2); } - else if (IsCode && code != null) + else if (Code is { } __value3 && code != null) { - return code(Code!); + return code(__value3); } - else if (IsAudio && audio != null) + else if (Audio is { } __value4 && audio != null) { - return audio(Audio!); + return audio(__value4); } - else if (IsVideo && video != null) + else if (Video is { } __value5 && video != null) { - return video(Video!); + return video(__value5); } - else if (IsImage && image != null) + else if (Image is { } __value6 && image != null) { - return image(Image!); + return image(__value6); } return default(TResult); @@ -566,33 +566,33 @@ public void Match( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } @@ -614,33 +614,33 @@ public void Switch( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant16.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant16.g.cs index 038bafc..d7424c8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant16.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant16.g.cs @@ -47,8 +47,8 @@ public bool TryPickMarkdown( /// /// /// - public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => IsMarkdown - ? Markdown! + public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => Markdown is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Markdown' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextChunkGeneratedMetadata PickText() => IsText - ? Text! + public global::Mixedbread.TextChunkGeneratedMetadata PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickPdf( /// /// /// - public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => IsPdf - ? Pdf! + public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => Pdf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pdf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickCode( /// /// /// - public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => IsCode - ? Code! + public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAudio( /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => IsAudio - ? Audio! + public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickVideo( /// /// /// - public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => IsVideo - ? Video! + public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickImage( /// /// /// - public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => IsImage - ? Image! + public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -510,33 +510,33 @@ public bool Validate() Validate(); } - if (IsMarkdown && markdown != null) + if (Markdown is { } __value0 && markdown != null) { - return markdown(Markdown!); + return markdown(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } - else if (IsPdf && pdf != null) + else if (Pdf is { } __value2 && pdf != null) { - return pdf(Pdf!); + return pdf(__value2); } - else if (IsCode && code != null) + else if (Code is { } __value3 && code != null) { - return code(Code!); + return code(__value3); } - else if (IsAudio && audio != null) + else if (Audio is { } __value4 && audio != null) { - return audio(Audio!); + return audio(__value4); } - else if (IsVideo && video != null) + else if (Video is { } __value5 && video != null) { - return video(Video!); + return video(__value5); } - else if (IsImage && image != null) + else if (Image is { } __value6 && image != null) { - return image(Image!); + return image(__value6); } return default(TResult); @@ -566,33 +566,33 @@ public void Match( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } @@ -614,33 +614,33 @@ public void Switch( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant17.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant17.g.cs index eed0bbb..102d023 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant17.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant17.g.cs @@ -47,8 +47,8 @@ public bool TryPickMarkdown( /// /// /// - public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => IsMarkdown - ? Markdown! + public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => Markdown is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Markdown' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextChunkGeneratedMetadata PickText() => IsText - ? Text! + public global::Mixedbread.TextChunkGeneratedMetadata PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickPdf( /// /// /// - public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => IsPdf - ? Pdf! + public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => Pdf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pdf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickCode( /// /// /// - public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => IsCode - ? Code! + public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAudio( /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => IsAudio - ? Audio! + public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickVideo( /// /// /// - public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => IsVideo - ? Video! + public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickImage( /// /// /// - public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => IsImage - ? Image! + public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -510,33 +510,33 @@ public bool Validate() Validate(); } - if (IsMarkdown && markdown != null) + if (Markdown is { } __value0 && markdown != null) { - return markdown(Markdown!); + return markdown(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } - else if (IsPdf && pdf != null) + else if (Pdf is { } __value2 && pdf != null) { - return pdf(Pdf!); + return pdf(__value2); } - else if (IsCode && code != null) + else if (Code is { } __value3 && code != null) { - return code(Code!); + return code(__value3); } - else if (IsAudio && audio != null) + else if (Audio is { } __value4 && audio != null) { - return audio(Audio!); + return audio(__value4); } - else if (IsVideo && video != null) + else if (Video is { } __value5 && video != null) { - return video(Video!); + return video(__value5); } - else if (IsImage && image != null) + else if (Image is { } __value6 && image != null) { - return image(Image!); + return image(__value6); } return default(TResult); @@ -566,33 +566,33 @@ public void Match( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } @@ -614,33 +614,33 @@ public void Switch( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant18.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant18.g.cs index ddfedb5..610f05a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant18.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant18.g.cs @@ -47,8 +47,8 @@ public bool TryPickMarkdown( /// /// /// - public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => IsMarkdown - ? Markdown! + public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => Markdown is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Markdown' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextChunkGeneratedMetadata PickText() => IsText - ? Text! + public global::Mixedbread.TextChunkGeneratedMetadata PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickPdf( /// /// /// - public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => IsPdf - ? Pdf! + public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => Pdf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pdf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickCode( /// /// /// - public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => IsCode - ? Code! + public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAudio( /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => IsAudio - ? Audio! + public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickVideo( /// /// /// - public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => IsVideo - ? Video! + public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickImage( /// /// /// - public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => IsImage - ? Image! + public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -510,33 +510,33 @@ public bool Validate() Validate(); } - if (IsMarkdown && markdown != null) + if (Markdown is { } __value0 && markdown != null) { - return markdown(Markdown!); + return markdown(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } - else if (IsPdf && pdf != null) + else if (Pdf is { } __value2 && pdf != null) { - return pdf(Pdf!); + return pdf(__value2); } - else if (IsCode && code != null) + else if (Code is { } __value3 && code != null) { - return code(Code!); + return code(__value3); } - else if (IsAudio && audio != null) + else if (Audio is { } __value4 && audio != null) { - return audio(Audio!); + return audio(__value4); } - else if (IsVideo && video != null) + else if (Video is { } __value5 && video != null) { - return video(Video!); + return video(__value5); } - else if (IsImage && image != null) + else if (Image is { } __value6 && image != null) { - return image(Image!); + return image(__value6); } return default(TResult); @@ -566,33 +566,33 @@ public void Match( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } @@ -614,33 +614,33 @@ public void Switch( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant19.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant19.g.cs index 7e38e6e..aac4d5c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant19.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant19.g.cs @@ -47,8 +47,8 @@ public bool TryPickMarkdown( /// /// /// - public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => IsMarkdown - ? Markdown! + public global::Mixedbread.MarkdownChunkGeneratedMetadata PickMarkdown() => Markdown is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Markdown' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextChunkGeneratedMetadata PickText() => IsText - ? Text! + public global::Mixedbread.TextChunkGeneratedMetadata PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickPdf( /// /// /// - public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => IsPdf - ? Pdf! + public global::Mixedbread.PDFChunkGeneratedMetadata PickPdf() => Pdf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pdf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickCode( /// /// /// - public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => IsCode - ? Code! + public global::Mixedbread.CodeChunkGeneratedMetadata PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAudio( /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => IsAudio - ? Audio! + public global::Mixedbread.AudioChunkGeneratedMetadata PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickVideo( /// /// /// - public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => IsVideo - ? Video! + public global::Mixedbread.VideoChunkGeneratedMetadata PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickImage( /// /// /// - public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => IsImage - ? Image! + public global::Mixedbread.ImageChunkGeneratedMetadata PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -510,33 +510,33 @@ public bool Validate() Validate(); } - if (IsMarkdown && markdown != null) + if (Markdown is { } __value0 && markdown != null) { - return markdown(Markdown!); + return markdown(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } - else if (IsPdf && pdf != null) + else if (Pdf is { } __value2 && pdf != null) { - return pdf(Pdf!); + return pdf(__value2); } - else if (IsCode && code != null) + else if (Code is { } __value3 && code != null) { - return code(Code!); + return code(__value3); } - else if (IsAudio && audio != null) + else if (Audio is { } __value4 && audio != null) { - return audio(Audio!); + return audio(__value4); } - else if (IsVideo && video != null) + else if (Video is { } __value5 && video != null) { - return video(Video!); + return video(__value5); } - else if (IsImage && image != null) + else if (Image is { } __value6 && image != null) { - return image(Image!); + return image(__value6); } return default(TResult); @@ -566,33 +566,33 @@ public void Match( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } @@ -614,33 +614,33 @@ public void Switch( Validate(); } - if (IsMarkdown) + if (Markdown is { } __value0) { - markdown?.Invoke(Markdown!); + markdown?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsPdf) + else if (Pdf is { } __value2) { - pdf?.Invoke(Pdf!); + pdf?.Invoke(__value2); } - else if (IsCode) + else if (Code is { } __value3) { - code?.Invoke(Code!); + code?.Invoke(__value3); } - else if (IsAudio) + else if (Audio is { } __value4) { - audio?.Invoke(Audio!); + audio?.Invoke(__value4); } - else if (IsVideo) + else if (Video is { } __value5) { - video?.Invoke(Video!); + video?.Invoke(__value5); } - else if (IsImage) + else if (Image is { } __value6) { - image?.Invoke(Image!); + image?.Invoke(__value6); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.g.cs index a8e4a4a..aa64c36 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickQuery( /// /// /// - public global::Mixedbread.QueryEnhanceQueryItem PickQuery() => IsQuery - ? Query! + public global::Mixedbread.QueryEnhanceQueryItem PickQuery() => Query is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Query' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickSort( /// /// /// - public global::Mixedbread.QueryEnhanceSortItem PickSort() => IsSort - ? Sort! + public global::Mixedbread.QueryEnhanceSortItem PickSort() => Sort is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Sort' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsQuery && query != null) + if (Query is { } __value0 && query != null) { - return query(Query!); + return query(__value0); } - else if (IsSort && sort != null) + else if (Sort is { } __value1 && sort != null) { - return sort(Sort!); + return sort(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsQuery) + if (Query is { } __value0) { - query?.Invoke(Query!); + query?.Invoke(__value0); } - else if (IsSort) + else if (Sort is { } __value1) { - sort?.Invoke(Sort!); + sort?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsQuery) + if (Query is { } __value0) { - query?.Invoke(Query!); + query?.Invoke(__value0); } - else if (IsSort) + else if (Sort is { } __value1) { - sort?.Invoke(Sort!); + sort?.Invoke(__value1); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQuery.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQuery.g.cs index 69fa9e4..112f0a1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQuery.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQuery.g.cs @@ -42,8 +42,8 @@ public bool TryPickMultiModalQueryVariant1( /// /// /// - public string PickMultiModalQueryVariant1() => IsMultiModalQueryVariant1 - ? MultiModalQueryVariant1! + public string PickMultiModalQueryVariant1() => MultiModalQueryVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MultiModalQueryVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickMultiModalQueryVariant2( /// /// /// - public global::Mixedbread.MultiModalQueryVariant2 PickMultiModalQueryVariant2() => IsMultiModalQueryVariant2 - ? MultiModalQueryVariant2!.Value + public global::Mixedbread.MultiModalQueryVariant2 PickMultiModalQueryVariant2() => MultiModalQueryVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MultiModalQueryVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsMultiModalQueryVariant1 && multiModalQueryVariant1 != null) + if (MultiModalQueryVariant1 is { } __value0 && multiModalQueryVariant1 != null) { - return multiModalQueryVariant1(MultiModalQueryVariant1!); + return multiModalQueryVariant1(__value0); } - else if (IsMultiModalQueryVariant2 && multiModalQueryVariant2 != null) + else if (MultiModalQueryVariant2 is { } __value1 && multiModalQueryVariant2 != null) { - return multiModalQueryVariant2(MultiModalQueryVariant2!); + return multiModalQueryVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsMultiModalQueryVariant1) + if (MultiModalQueryVariant1 is { } __value0) { - multiModalQueryVariant1?.Invoke(MultiModalQueryVariant1!); + multiModalQueryVariant1?.Invoke(__value0); } - else if (IsMultiModalQueryVariant2) + else if (MultiModalQueryVariant2 is { } __value1) { - multiModalQueryVariant2?.Invoke(MultiModalQueryVariant2!); + multiModalQueryVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsMultiModalQueryVariant1) + if (MultiModalQueryVariant1 is { } __value0) { - multiModalQueryVariant1?.Invoke(MultiModalQueryVariant1!); + multiModalQueryVariant1?.Invoke(__value0); } - else if (IsMultiModalQueryVariant2) + else if (MultiModalQueryVariant2 is { } __value1) { - multiModalQueryVariant2?.Invoke(MultiModalQueryVariant2!); + multiModalQueryVariant2?.Invoke(__value1); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQueryVariant2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQueryVariant2.g.cs index 76c68c7..58e1770 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQueryVariant2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQueryVariant2.g.cs @@ -47,8 +47,8 @@ public bool TryPickImageUrl( /// /// /// - public global::Mixedbread.ImageUrlInput2 PickImageUrl() => IsImageUrl - ? ImageUrl! + public global::Mixedbread.ImageUrlInput2 PickImageUrl() => ImageUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageUrl' but the value was {ToString()}."); /// @@ -87,8 +87,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.TextInput PickText() => IsText - ? Text! + public global::Mixedbread.TextInput PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// /// @@ -188,13 +188,13 @@ public bool Validate() Validate(); } - if (IsImageUrl && imageUrl != null) + if (ImageUrl is { } __value0 && imageUrl != null) { - return imageUrl(ImageUrl!); + return imageUrl(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } return default(TResult); @@ -214,13 +214,13 @@ public void Match( Validate(); } - if (IsImageUrl) + if (ImageUrl is { } __value0) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } } @@ -237,13 +237,13 @@ public void Switch( Validate(); } - if (IsImageUrl) + if (ImageUrl is { } __value0) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule.g.cs index 0ca66c0..bc1ea92 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule.g.cs @@ -47,8 +47,8 @@ public bool TryPickQueryString( /// /// /// - public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => IsQueryString - ? QueryString! + public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => QueryString is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryString' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickQueryRegex( /// /// /// - public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => IsQueryRegex - ? QueryRegex! + public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => QueryRegex is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryRegex' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickChunkSearchResult( /// /// /// - public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => IsChunkSearchResult - ? ChunkSearchResult! + public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => ChunkSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChunkSearchResult' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFileSearchResult( /// /// /// - public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => IsFileSearchResult - ? FileSearchResult! + public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => FileSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchResult' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsQueryString && queryString != null) + if (QueryString is { } __value0 && queryString != null) { - return queryString(QueryString!); + return queryString(__value0); } - else if (IsQueryRegex && queryRegex != null) + else if (QueryRegex is { } __value1 && queryRegex != null) { - return queryRegex(QueryRegex!); + return queryRegex(__value1); } - else if (IsChunkSearchResult && chunkSearchResult != null) + else if (ChunkSearchResult is { } __value2 && chunkSearchResult != null) { - return chunkSearchResult(ChunkSearchResult!); + return chunkSearchResult(__value2); } - else if (IsFileSearchResult && fileSearchResult != null) + else if (FileSearchResult is { } __value3 && fileSearchResult != null) { - return fileSearchResult(FileSearchResult!); + return fileSearchResult(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule2.g.cs index 17f43fa..62a91f0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule2.g.cs @@ -47,8 +47,8 @@ public bool TryPickQueryString( /// /// /// - public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => IsQueryString - ? QueryString! + public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => QueryString is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryString' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickQueryRegex( /// /// /// - public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => IsQueryRegex - ? QueryRegex! + public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => QueryRegex is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryRegex' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickChunkSearchResult( /// /// /// - public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => IsChunkSearchResult - ? ChunkSearchResult! + public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => ChunkSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChunkSearchResult' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFileSearchResult( /// /// /// - public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => IsFileSearchResult - ? FileSearchResult! + public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => FileSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchResult' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsQueryString && queryString != null) + if (QueryString is { } __value0 && queryString != null) { - return queryString(QueryString!); + return queryString(__value0); } - else if (IsQueryRegex && queryRegex != null) + else if (QueryRegex is { } __value1 && queryRegex != null) { - return queryRegex(QueryRegex!); + return queryRegex(__value1); } - else if (IsChunkSearchResult && chunkSearchResult != null) + else if (ChunkSearchResult is { } __value2 && chunkSearchResult != null) { - return chunkSearchResult(ChunkSearchResult!); + return chunkSearchResult(__value2); } - else if (IsFileSearchResult && fileSearchResult != null) + else if (FileSearchResult is { } __value3 && fileSearchResult != null) { - return fileSearchResult(FileSearchResult!); + return fileSearchResult(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem.g.cs index 2cf8bfb..5400dd9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickQueryString( /// /// /// - public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => IsQueryString - ? QueryString! + public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => QueryString is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryString' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickQueryRegex( /// /// /// - public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => IsQueryRegex - ? QueryRegex! + public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => QueryRegex is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryRegex' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickChunkSearchResult( /// /// /// - public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => IsChunkSearchResult - ? ChunkSearchResult! + public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => ChunkSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChunkSearchResult' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFileSearchResult( /// /// /// - public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => IsFileSearchResult - ? FileSearchResult! + public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => FileSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchResult' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsQueryString && queryString != null) + if (QueryString is { } __value0 && queryString != null) { - return queryString(QueryString!); + return queryString(__value0); } - else if (IsQueryRegex && queryRegex != null) + else if (QueryRegex is { } __value1 && queryRegex != null) { - return queryRegex(QueryRegex!); + return queryRegex(__value1); } - else if (IsChunkSearchResult && chunkSearchResult != null) + else if (ChunkSearchResult is { } __value2 && chunkSearchResult != null) { - return chunkSearchResult(ChunkSearchResult!); + return chunkSearchResult(__value2); } - else if (IsFileSearchResult && fileSearchResult != null) + else if (FileSearchResult is { } __value3 && fileSearchResult != null) { - return fileSearchResult(FileSearchResult!); + return fileSearchResult(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem2.g.cs index 9657b1e..305ea8a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem2.g.cs @@ -47,8 +47,8 @@ public bool TryPickQueryString( /// /// /// - public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => IsQueryString - ? QueryString! + public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => QueryString is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryString' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickQueryRegex( /// /// /// - public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => IsQueryRegex - ? QueryRegex! + public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => QueryRegex is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryRegex' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickChunkSearchResult( /// /// /// - public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => IsChunkSearchResult - ? ChunkSearchResult! + public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => ChunkSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChunkSearchResult' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFileSearchResult( /// /// /// - public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => IsFileSearchResult - ? FileSearchResult! + public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => FileSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchResult' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsQueryString && queryString != null) + if (QueryString is { } __value0 && queryString != null) { - return queryString(QueryString!); + return queryString(__value0); } - else if (IsQueryRegex && queryRegex != null) + else if (QueryRegex is { } __value1 && queryRegex != null) { - return queryRegex(QueryRegex!); + return queryRegex(__value1); } - else if (IsChunkSearchResult && chunkSearchResult != null) + else if (ChunkSearchResult is { } __value2 && chunkSearchResult != null) { - return chunkSearchResult(ChunkSearchResult!); + return chunkSearchResult(__value2); } - else if (IsFileSearchResult && fileSearchResult != null) + else if (FileSearchResult is { } __value3 && fileSearchResult != null) { - return fileSearchResult(FileSearchResult!); + return fileSearchResult(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem3.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem3.g.cs index b010941..b595845 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem3.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem3.g.cs @@ -47,8 +47,8 @@ public bool TryPickQueryString( /// /// /// - public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => IsQueryString - ? QueryString! + public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => QueryString is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryString' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickQueryRegex( /// /// /// - public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => IsQueryRegex - ? QueryRegex! + public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => QueryRegex is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryRegex' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickChunkSearchResult( /// /// /// - public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => IsChunkSearchResult - ? ChunkSearchResult! + public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => ChunkSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChunkSearchResult' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFileSearchResult( /// /// /// - public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => IsFileSearchResult - ? FileSearchResult! + public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => FileSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchResult' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsQueryString && queryString != null) + if (QueryString is { } __value0 && queryString != null) { - return queryString(QueryString!); + return queryString(__value0); } - else if (IsQueryRegex && queryRegex != null) + else if (QueryRegex is { } __value1 && queryRegex != null) { - return queryRegex(QueryRegex!); + return queryRegex(__value1); } - else if (IsChunkSearchResult && chunkSearchResult != null) + else if (ChunkSearchResult is { } __value2 && chunkSearchResult != null) { - return chunkSearchResult(ChunkSearchResult!); + return chunkSearchResult(__value2); } - else if (IsFileSearchResult && fileSearchResult != null) + else if (FileSearchResult is { } __value3 && fileSearchResult != null) { - return fileSearchResult(FileSearchResult!); + return fileSearchResult(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem4.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem4.g.cs index 6be91c3..ba4a94d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem4.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem4.g.cs @@ -47,8 +47,8 @@ public bool TryPickQueryString( /// /// /// - public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => IsQueryString - ? QueryString! + public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => QueryString is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryString' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickQueryRegex( /// /// /// - public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => IsQueryRegex - ? QueryRegex! + public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => QueryRegex is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryRegex' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickChunkSearchResult( /// /// /// - public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => IsChunkSearchResult - ? ChunkSearchResult! + public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => ChunkSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChunkSearchResult' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFileSearchResult( /// /// /// - public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => IsFileSearchResult - ? FileSearchResult! + public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => FileSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchResult' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsQueryString && queryString != null) + if (QueryString is { } __value0 && queryString != null) { - return queryString(QueryString!); + return queryString(__value0); } - else if (IsQueryRegex && queryRegex != null) + else if (QueryRegex is { } __value1 && queryRegex != null) { - return queryRegex(QueryRegex!); + return queryRegex(__value1); } - else if (IsChunkSearchResult && chunkSearchResult != null) + else if (ChunkSearchResult is { } __value2 && chunkSearchResult != null) { - return chunkSearchResult(ChunkSearchResult!); + return chunkSearchResult(__value2); } - else if (IsFileSearchResult && fileSearchResult != null) + else if (FileSearchResult is { } __value3 && fileSearchResult != null) { - return fileSearchResult(FileSearchResult!); + return fileSearchResult(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item.g.cs index 2eab960..38a30c6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item.g.cs @@ -47,8 +47,8 @@ public bool TryPickQueryString( /// /// /// - public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => IsQueryString - ? QueryString! + public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => QueryString is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryString' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickQueryRegex( /// /// /// - public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => IsQueryRegex - ? QueryRegex! + public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => QueryRegex is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryRegex' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickChunkSearchResult( /// /// /// - public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => IsChunkSearchResult - ? ChunkSearchResult! + public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => ChunkSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChunkSearchResult' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFileSearchResult( /// /// /// - public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => IsFileSearchResult - ? FileSearchResult! + public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => FileSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchResult' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsQueryString && queryString != null) + if (QueryString is { } __value0 && queryString != null) { - return queryString(QueryString!); + return queryString(__value0); } - else if (IsQueryRegex && queryRegex != null) + else if (QueryRegex is { } __value1 && queryRegex != null) { - return queryRegex(QueryRegex!); + return queryRegex(__value1); } - else if (IsChunkSearchResult && chunkSearchResult != null) + else if (ChunkSearchResult is { } __value2 && chunkSearchResult != null) { - return chunkSearchResult(ChunkSearchResult!); + return chunkSearchResult(__value2); } - else if (IsFileSearchResult && fileSearchResult != null) + else if (FileSearchResult is { } __value3 && fileSearchResult != null) { - return fileSearchResult(FileSearchResult!); + return fileSearchResult(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item2.g.cs index d9d91cf..3157bb3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item2.g.cs @@ -47,8 +47,8 @@ public bool TryPickQueryString( /// /// /// - public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => IsQueryString - ? QueryString! + public global::Mixedbread.QueryStringSubstitutionRule PickQueryString() => QueryString is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryString' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickQueryRegex( /// /// /// - public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => IsQueryRegex - ? QueryRegex! + public global::Mixedbread.QueryRegexSubstitutionRule PickQueryRegex() => QueryRegex is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QueryRegex' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickChunkSearchResult( /// /// /// - public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => IsChunkSearchResult - ? ChunkSearchResult! + public global::Mixedbread.ChunkSearchResultRule PickChunkSearchResult() => ChunkSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChunkSearchResult' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFileSearchResult( /// /// /// - public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => IsFileSearchResult - ? FileSearchResult! + public global::Mixedbread.FileSearchResultRule PickFileSearchResult() => FileSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchResult' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsQueryString && queryString != null) + if (QueryString is { } __value0 && queryString != null) { - return queryString(QueryString!); + return queryString(__value0); } - else if (IsQueryRegex && queryRegex != null) + else if (QueryRegex is { } __value1 && queryRegex != null) { - return queryRegex(QueryRegex!); + return queryRegex(__value1); } - else if (IsChunkSearchResult && chunkSearchResult != null) + else if (ChunkSearchResult is { } __value2 && chunkSearchResult != null) { - return chunkSearchResult(ChunkSearchResult!); + return chunkSearchResult(__value2); } - else if (IsFileSearchResult && fileSearchResult != null) + else if (FileSearchResult is { } __value3 && fileSearchResult != null) { - return fileSearchResult(FileSearchResult!); + return fileSearchResult(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsQueryString) + if (QueryString is { } __value0) { - queryString?.Invoke(QueryString!); + queryString?.Invoke(__value0); } - else if (IsQueryRegex) + else if (QueryRegex is { } __value1) { - queryRegex?.Invoke(QueryRegex!); + queryRegex?.Invoke(__value1); } - else if (IsChunkSearchResult) + else if (ChunkSearchResult is { } __value2) { - chunkSearchResult?.Invoke(ChunkSearchResult!); + chunkSearchResult?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem.g.cs index b2d2e39..d5e326d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk PickText() => IsText - ? Text! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickImageUrl( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk PickImageUrl() => IsImageUrl - ? ImageUrl! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk PickImageUrl() => ImageUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageUrl' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAudioUrl( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk PickAudioUrl() => IsAudioUrl - ? AudioUrl! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk PickAudioUrl() => AudioUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AudioUrl' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVideoUrl( /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk PickVideoUrl() => IsVideoUrl - ? VideoUrl! + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk PickVideoUrl() => VideoUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VideoUrl' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsImageUrl && imageUrl != null) + else if (ImageUrl is { } __value1 && imageUrl != null) { - return imageUrl(ImageUrl!); + return imageUrl(__value1); } - else if (IsAudioUrl && audioUrl != null) + else if (AudioUrl is { } __value2 && audioUrl != null) { - return audioUrl(AudioUrl!); + return audioUrl(__value2); } - else if (IsVideoUrl && videoUrl != null) + else if (VideoUrl is { } __value3 && videoUrl != null) { - return videoUrl(VideoUrl!); + return videoUrl(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem2.g.cs index 462bfd8..076a3b3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem2.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem2.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk PickText() => IsText - ? Text! + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickImageUrl( /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk PickImageUrl() => IsImageUrl - ? ImageUrl! + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk PickImageUrl() => ImageUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageUrl' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAudioUrl( /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk PickAudioUrl() => IsAudioUrl - ? AudioUrl! + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk PickAudioUrl() => AudioUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AudioUrl' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVideoUrl( /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk PickVideoUrl() => IsVideoUrl - ? VideoUrl! + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk PickVideoUrl() => VideoUrl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VideoUrl' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsImageUrl && imageUrl != null) + else if (ImageUrl is { } __value1 && imageUrl != null) { - return imageUrl(ImageUrl!); + return imageUrl(__value1); } - else if (IsAudioUrl && audioUrl != null) + else if (AudioUrl is { } __value2 && audioUrl != null) { - return audioUrl(AudioUrl!); + return audioUrl(__value2); } - else if (IsVideoUrl && videoUrl != null) + else if (VideoUrl is { } __value3 && videoUrl != null) { - return videoUrl(VideoUrl!); + return videoUrl(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsImageUrl) + else if (ImageUrl is { } __value1) { - imageUrl?.Invoke(ImageUrl!); + imageUrl?.Invoke(__value1); } - else if (IsAudioUrl) + else if (AudioUrl is { } __value2) { - audioUrl?.Invoke(AudioUrl!); + audioUrl?.Invoke(__value2); } - else if (IsVideoUrl) + else if (VideoUrl is { } __value3) { - videoUrl?.Invoke(VideoUrl!); + videoUrl?.Invoke(__value3); } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CancelParsingJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CancelParsingJob.g.cs index 20bcc16..bc2c46b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CancelParsingJob.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CancelParsingJob.g.cs @@ -184,7 +184,7 @@ partial void ProcessCancelParsingJobResponseContent( PrepareCancelParsingJobRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - jobId: jobId!); + jobId: jobId); return __httpRequest; } @@ -206,7 +206,7 @@ partial void ProcessCancelParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", 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, @@ -240,7 +240,7 @@ partial void ProcessCancelParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", 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, @@ -281,7 +281,7 @@ partial void ProcessCancelParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", 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, @@ -329,7 +329,7 @@ partial void ProcessCancelParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", 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, @@ -351,7 +351,7 @@ partial void ProcessCancelParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", 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/Mixedbread/Generated/Mixedbread.ParsingClient.CreateParsingJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CreateParsingJob.g.cs index 7ba7d2a..35c752d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CreateParsingJob.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CreateParsingJob.g.cs @@ -213,7 +213,7 @@ partial void ProcessCreateParsingJobResponseContent( pathTemplate: "\"/v1/parsing/jobs\"", httpMethod: "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, @@ -247,7 +247,7 @@ partial void ProcessCreateParsingJobResponseContent( pathTemplate: "\"/v1/parsing/jobs\"", httpMethod: "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, @@ -288,7 +288,7 @@ partial void ProcessCreateParsingJobResponseContent( pathTemplate: "\"/v1/parsing/jobs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessCreateParsingJobResponseContent( pathTemplate: "\"/v1/parsing/jobs\"", httpMethod: "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, @@ -358,7 +358,7 @@ partial void ProcessCreateParsingJobResponseContent( pathTemplate: "\"/v1/parsing/jobs\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.ParsingClient.DeleteParsingJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.DeleteParsingJob.g.cs index 3fba78d..3434984 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.DeleteParsingJob.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.DeleteParsingJob.g.cs @@ -184,7 +184,7 @@ partial void ProcessDeleteParsingJobResponseContent( PrepareDeleteParsingJobRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - jobId: jobId!); + jobId: jobId); return __httpRequest; } @@ -206,7 +206,7 @@ partial void ProcessDeleteParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", 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, @@ -240,7 +240,7 @@ partial void ProcessDeleteParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", 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, @@ -281,7 +281,7 @@ partial void ProcessDeleteParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", 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, @@ -329,7 +329,7 @@ partial void ProcessDeleteParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", 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, @@ -351,7 +351,7 @@ partial void ProcessDeleteParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", 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/Mixedbread/Generated/Mixedbread.ParsingClient.ListParsingJobs.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.ListParsingJobs.g.cs index cac7690..eebabaa 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.ListParsingJobs.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.ListParsingJobs.g.cs @@ -285,7 +285,7 @@ partial void ProcessListParsingJobsResponseContent( pathTemplate: "\"/v1/parsing/jobs\"", httpMethod: "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, @@ -319,7 +319,7 @@ partial void ProcessListParsingJobsResponseContent( pathTemplate: "\"/v1/parsing/jobs\"", httpMethod: "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, @@ -360,7 +360,7 @@ partial void ProcessListParsingJobsResponseContent( pathTemplate: "\"/v1/parsing/jobs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -408,7 +408,7 @@ partial void ProcessListParsingJobsResponseContent( pathTemplate: "\"/v1/parsing/jobs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -430,7 +430,7 @@ partial void ProcessListParsingJobsResponseContent( pathTemplate: "\"/v1/parsing/jobs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.ParsingClient.RetrieveParsingJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.RetrieveParsingJob.g.cs index 24a2a36..833bdac 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.RetrieveParsingJob.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.RetrieveParsingJob.g.cs @@ -184,7 +184,7 @@ partial void ProcessRetrieveParsingJobResponseContent( PrepareRetrieveParsingJobRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - jobId: jobId!); + jobId: jobId); return __httpRequest; } @@ -206,7 +206,7 @@ partial void ProcessRetrieveParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", httpMethod: "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, @@ -240,7 +240,7 @@ partial void ProcessRetrieveParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", httpMethod: "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, @@ -281,7 +281,7 @@ partial void ProcessRetrieveParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessRetrieveParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -351,7 +351,7 @@ partial void ProcessRetrieveParsingJobResponseContent( pathTemplate: "$\"/v1/parsing/jobs/{jobId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.SchemasClient.GetMxbaiJsonSchema.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.SchemasClient.GetMxbaiJsonSchema.g.cs index 9c0bfb3..5ab0052 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.SchemasClient.GetMxbaiJsonSchema.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.SchemasClient.GetMxbaiJsonSchema.g.cs @@ -189,7 +189,7 @@ partial void ProcessGetMxbaiJsonSchemaResponseContent( pathTemplate: "\"/v1/schemas/mxjson\"", httpMethod: "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, @@ -223,7 +223,7 @@ partial void ProcessGetMxbaiJsonSchemaResponseContent( pathTemplate: "\"/v1/schemas/mxjson\"", httpMethod: "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, @@ -264,7 +264,7 @@ partial void ProcessGetMxbaiJsonSchemaResponseContent( pathTemplate: "\"/v1/schemas/mxjson\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessGetMxbaiJsonSchemaResponseContent( pathTemplate: "\"/v1/schemas/mxjson\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessGetMxbaiJsonSchemaResponseContent( pathTemplate: "\"/v1/schemas/mxjson\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.StoresClient.CreateQuestionAnswering.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateQuestionAnswering.g.cs index 8057f0e..dcb3eca 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateQuestionAnswering.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateQuestionAnswering.g.cs @@ -203,7 +203,7 @@ partial void ProcessCreateQuestionAnsweringResponseContent( pathTemplate: "\"/v1/stores/question-answering\"", httpMethod: "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, @@ -237,7 +237,7 @@ partial void ProcessCreateQuestionAnsweringResponseContent( pathTemplate: "\"/v1/stores/question-answering\"", httpMethod: "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, @@ -278,7 +278,7 @@ partial void ProcessCreateQuestionAnsweringResponseContent( pathTemplate: "\"/v1/stores/question-answering\"", httpMethod: "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, @@ -326,7 +326,7 @@ partial void ProcessCreateQuestionAnsweringResponseContent( pathTemplate: "\"/v1/stores/question-answering\"", httpMethod: "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, @@ -348,7 +348,7 @@ partial void ProcessCreateQuestionAnsweringResponseContent( pathTemplate: "\"/v1/stores/question-answering\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.StoresClient.CreateSearchRule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateSearchRule.g.cs index c6c321c..c91095c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateSearchRule.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateSearchRule.g.cs @@ -205,7 +205,7 @@ partial void ProcessCreateSearchRuleResponseContent( PrepareCreateSearchRuleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, + storeIdentifier: storeIdentifier, request: request); return __httpRequest; @@ -228,7 +228,7 @@ partial void ProcessCreateSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules\"", httpMethod: "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, @@ -262,7 +262,7 @@ partial void ProcessCreateSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules\"", httpMethod: "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, @@ -303,7 +303,7 @@ partial void ProcessCreateSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules\"", httpMethod: "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, @@ -351,7 +351,7 @@ partial void ProcessCreateSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules\"", httpMethod: "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, @@ -373,7 +373,7 @@ partial void ProcessCreateSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.StoresClient.CreateStore.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStore.g.cs index b01eae1..3673617 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStore.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStore.g.cs @@ -213,7 +213,7 @@ partial void ProcessCreateStoreResponseContent( pathTemplate: "\"/v1/stores\"", httpMethod: "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, @@ -247,7 +247,7 @@ partial void ProcessCreateStoreResponseContent( pathTemplate: "\"/v1/stores\"", httpMethod: "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, @@ -288,7 +288,7 @@ partial void ProcessCreateStoreResponseContent( pathTemplate: "\"/v1/stores\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessCreateStoreResponseContent( pathTemplate: "\"/v1/stores\"", httpMethod: "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, @@ -358,7 +358,7 @@ partial void ProcessCreateStoreResponseContent( pathTemplate: "\"/v1/stores\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.StoresClient.CreateStoreFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStoreFile.g.cs index 663d6cf..b7a4bd3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStoreFile.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStoreFile.g.cs @@ -207,7 +207,7 @@ partial void ProcessCreateStoreFileResponseContent( PrepareCreateStoreFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, + storeIdentifier: storeIdentifier, request: request); return __httpRequest; @@ -230,7 +230,7 @@ partial void ProcessCreateStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files\"", httpMethod: "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, @@ -264,7 +264,7 @@ partial void ProcessCreateStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files\"", httpMethod: "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, @@ -305,7 +305,7 @@ partial void ProcessCreateStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files\"", httpMethod: "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, @@ -353,7 +353,7 @@ partial void ProcessCreateStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files\"", httpMethod: "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, @@ -375,7 +375,7 @@ partial void ProcessCreateStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSearchRule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSearchRule.g.cs index 0cbabf2..f06e963 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSearchRule.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSearchRule.g.cs @@ -198,8 +198,8 @@ partial void ProcessDeleteSearchRuleResponseContent( PrepareDeleteSearchRuleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, - ruleId: ruleId!); + storeIdentifier: storeIdentifier, + ruleId: ruleId); return __httpRequest; } @@ -221,7 +221,7 @@ partial void ProcessDeleteSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", 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, @@ -255,7 +255,7 @@ partial void ProcessDeleteSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", 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, @@ -296,7 +296,7 @@ partial void ProcessDeleteSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", 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, @@ -344,7 +344,7 @@ partial void ProcessDeleteSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", 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, @@ -366,7 +366,7 @@ partial void ProcessDeleteSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", 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/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSpecificSearchRule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSpecificSearchRule.g.cs index 2edc763..56b4520 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSpecificSearchRule.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSpecificSearchRule.g.cs @@ -219,8 +219,8 @@ partial void ProcessDeleteSpecificSearchRuleResponseContent( PrepareDeleteSpecificSearchRuleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, - ruleId: ruleId!, + storeIdentifier: storeIdentifier, + ruleId: ruleId, request: request); return __httpRequest; @@ -243,7 +243,7 @@ partial void ProcessDeleteSpecificSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}/specific\"", 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, @@ -277,7 +277,7 @@ partial void ProcessDeleteSpecificSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}/specific\"", 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, @@ -318,7 +318,7 @@ partial void ProcessDeleteSpecificSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}/specific\"", 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, @@ -366,7 +366,7 @@ partial void ProcessDeleteSpecificSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}/specific\"", 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, @@ -388,7 +388,7 @@ partial void ProcessDeleteSpecificSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}/specific\"", 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/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStore.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStore.g.cs index c609070..7a76dee 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStore.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStore.g.cs @@ -184,7 +184,7 @@ partial void ProcessDeleteStoreResponseContent( PrepareDeleteStoreRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!); + storeIdentifier: storeIdentifier); return __httpRequest; } @@ -206,7 +206,7 @@ partial void ProcessDeleteStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", 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, @@ -240,7 +240,7 @@ partial void ProcessDeleteStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", 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, @@ -281,7 +281,7 @@ partial void ProcessDeleteStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", 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, @@ -329,7 +329,7 @@ partial void ProcessDeleteStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", 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, @@ -351,7 +351,7 @@ partial void ProcessDeleteStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", 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/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStoreFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStoreFile.g.cs index f0068c5..278b3f2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStoreFile.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStoreFile.g.cs @@ -198,8 +198,8 @@ partial void ProcessDeleteStoreFileResponseContent( PrepareDeleteStoreFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, - fileIdentifier: fileIdentifier!); + storeIdentifier: storeIdentifier, + fileIdentifier: fileIdentifier); return __httpRequest; } @@ -221,7 +221,7 @@ partial void ProcessDeleteStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", 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, @@ -255,7 +255,7 @@ partial void ProcessDeleteStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", 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, @@ -296,7 +296,7 @@ partial void ProcessDeleteStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", 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, @@ -344,7 +344,7 @@ partial void ProcessDeleteStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", 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, @@ -366,7 +366,7 @@ partial void ProcessDeleteStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", 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/Mixedbread/Generated/Mixedbread.StoresClient.EnhanceQuery.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.EnhanceQuery.g.cs index 64fc1d9..64d413e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.EnhanceQuery.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.EnhanceQuery.g.cs @@ -205,7 +205,7 @@ partial void ProcessEnhanceQueryResponseContent( pathTemplate: "\"/v1/stores/queries/enhance\"", httpMethod: "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, @@ -239,7 +239,7 @@ partial void ProcessEnhanceQueryResponseContent( pathTemplate: "\"/v1/stores/queries/enhance\"", httpMethod: "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, @@ -280,7 +280,7 @@ partial void ProcessEnhanceQueryResponseContent( pathTemplate: "\"/v1/stores/queries/enhance\"", httpMethod: "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, @@ -328,7 +328,7 @@ partial void ProcessEnhanceQueryResponseContent( pathTemplate: "\"/v1/stores/queries/enhance\"", httpMethod: "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, @@ -350,7 +350,7 @@ partial void ProcessEnhanceQueryResponseContent( pathTemplate: "\"/v1/stores/queries/enhance\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.StoresClient.GetMetadataFacets.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetMetadataFacets.g.cs index fa820dd..3bf46a2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetMetadataFacets.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetMetadataFacets.g.cs @@ -203,7 +203,7 @@ partial void ProcessGetMetadataFacetsResponseContent( pathTemplate: "\"/v1/stores/metadata-facets\"", httpMethod: "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, @@ -237,7 +237,7 @@ partial void ProcessGetMetadataFacetsResponseContent( pathTemplate: "\"/v1/stores/metadata-facets\"", httpMethod: "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, @@ -278,7 +278,7 @@ partial void ProcessGetMetadataFacetsResponseContent( pathTemplate: "\"/v1/stores/metadata-facets\"", httpMethod: "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, @@ -326,7 +326,7 @@ partial void ProcessGetMetadataFacetsResponseContent( pathTemplate: "\"/v1/stores/metadata-facets\"", httpMethod: "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, @@ -348,7 +348,7 @@ partial void ProcessGetMetadataFacetsResponseContent( pathTemplate: "\"/v1/stores/metadata-facets\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs index 449910b..85e1a40 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs @@ -205,7 +205,7 @@ partial void ProcessGetStoreEventHistogramResponseContent( PrepareGetStoreEventHistogramRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, + storeIdentifier: storeIdentifier, request: request); return __httpRequest; @@ -228,7 +228,7 @@ partial void ProcessGetStoreEventHistogramResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/events/histogram\"", httpMethod: "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, @@ -262,7 +262,7 @@ partial void ProcessGetStoreEventHistogramResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/events/histogram\"", httpMethod: "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, @@ -303,7 +303,7 @@ partial void ProcessGetStoreEventHistogramResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/events/histogram\"", httpMethod: "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, @@ -351,7 +351,7 @@ partial void ProcessGetStoreEventHistogramResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/events/histogram\"", httpMethod: "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, @@ -373,7 +373,7 @@ partial void ProcessGetStoreEventHistogramResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/events/histogram\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.StoresClient.GrepStoreChunks.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GrepStoreChunks.g.cs index 7a0ea46..c11c25f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GrepStoreChunks.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GrepStoreChunks.g.cs @@ -243,7 +243,7 @@ partial void ProcessGrepStoreChunksResponseContent( pathTemplate: "\"/v1/stores/grep\"", httpMethod: "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, @@ -277,7 +277,7 @@ partial void ProcessGrepStoreChunksResponseContent( pathTemplate: "\"/v1/stores/grep\"", httpMethod: "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, @@ -318,7 +318,7 @@ partial void ProcessGrepStoreChunksResponseContent( pathTemplate: "\"/v1/stores/grep\"", httpMethod: "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, @@ -366,7 +366,7 @@ partial void ProcessGrepStoreChunksResponseContent( pathTemplate: "\"/v1/stores/grep\"", httpMethod: "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, @@ -388,7 +388,7 @@ partial void ProcessGrepStoreChunksResponseContent( pathTemplate: "\"/v1/stores/grep\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreChunks.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreChunks.g.cs index 46e9402..46b1f4f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreChunks.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreChunks.g.cs @@ -241,7 +241,7 @@ partial void ProcessListStoreChunksResponseContent( pathTemplate: "\"/v1/stores/list-chunks\"", httpMethod: "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, @@ -275,7 +275,7 @@ partial void ProcessListStoreChunksResponseContent( pathTemplate: "\"/v1/stores/list-chunks\"", httpMethod: "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, @@ -316,7 +316,7 @@ partial void ProcessListStoreChunksResponseContent( pathTemplate: "\"/v1/stores/list-chunks\"", httpMethod: "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, @@ -364,7 +364,7 @@ partial void ProcessListStoreChunksResponseContent( pathTemplate: "\"/v1/stores/list-chunks\"", httpMethod: "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, @@ -386,7 +386,7 @@ partial void ProcessListStoreChunksResponseContent( pathTemplate: "\"/v1/stores/list-chunks\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreEvents.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreEvents.g.cs index 605e284..0479581 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreEvents.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreEvents.g.cs @@ -283,14 +283,14 @@ partial void ProcessListStoreEventsResponseContent( PrepareListStoreEventsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, + storeIdentifier: storeIdentifier, limit: limit, after: after, before: before, includeTotal: includeTotal, filterBefore: filterBefore, filterAfter: filterAfter, - eventType: eventType!); + eventType: eventType); return __httpRequest; } @@ -312,7 +312,7 @@ partial void ProcessListStoreEventsResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/events\"", httpMethod: "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, @@ -346,7 +346,7 @@ partial void ProcessListStoreEventsResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/events\"", httpMethod: "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, @@ -387,7 +387,7 @@ partial void ProcessListStoreEventsResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/events\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessListStoreEventsResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/events\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -457,7 +457,7 @@ partial void ProcessListStoreEventsResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/events\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreFilesWithMetadataFilter.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreFilesWithMetadataFilter.g.cs index 0edbd3a..89d220e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreFilesWithMetadataFilter.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreFilesWithMetadataFilter.g.cs @@ -205,7 +205,7 @@ partial void ProcessListStoreFilesWithMetadataFilterResponseContent( PrepareListStoreFilesWithMetadataFilterRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, + storeIdentifier: storeIdentifier, request: request); return __httpRequest; @@ -228,7 +228,7 @@ partial void ProcessListStoreFilesWithMetadataFilterResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/list\"", httpMethod: "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, @@ -262,7 +262,7 @@ partial void ProcessListStoreFilesWithMetadataFilterResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/list\"", httpMethod: "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, @@ -303,7 +303,7 @@ partial void ProcessListStoreFilesWithMetadataFilterResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/list\"", httpMethod: "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, @@ -351,7 +351,7 @@ partial void ProcessListStoreFilesWithMetadataFilterResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/list\"", httpMethod: "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, @@ -373,7 +373,7 @@ partial void ProcessListStoreFilesWithMetadataFilterResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/list\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.StoresClient.ListStores.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStores.g.cs index 96c08f1..c02d30b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStores.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStores.g.cs @@ -271,7 +271,7 @@ partial void ProcessListStoresResponseContent( pathTemplate: "\"/v1/stores\"", httpMethod: "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, @@ -305,7 +305,7 @@ partial void ProcessListStoresResponseContent( pathTemplate: "\"/v1/stores\"", httpMethod: "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, @@ -346,7 +346,7 @@ partial void ProcessListStoresResponseContent( pathTemplate: "\"/v1/stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -394,7 +394,7 @@ partial void ProcessListStoresResponseContent( pathTemplate: "\"/v1/stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -416,7 +416,7 @@ partial void ProcessListStoresResponseContent( pathTemplate: "\"/v1/stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveSearchRule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveSearchRule.g.cs index eabbb89..9af5a44 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveSearchRule.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveSearchRule.g.cs @@ -198,8 +198,8 @@ partial void ProcessRetrieveSearchRuleResponseContent( PrepareRetrieveSearchRuleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, - ruleId: ruleId!); + storeIdentifier: storeIdentifier, + ruleId: ruleId); return __httpRequest; } @@ -221,7 +221,7 @@ partial void ProcessRetrieveSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", httpMethod: "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, @@ -255,7 +255,7 @@ partial void ProcessRetrieveSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", httpMethod: "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, @@ -296,7 +296,7 @@ partial void ProcessRetrieveSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -344,7 +344,7 @@ partial void ProcessRetrieveSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -366,7 +366,7 @@ partial void ProcessRetrieveSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStore.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStore.g.cs index a50b5c6..7ad6bb4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStore.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStore.g.cs @@ -184,7 +184,7 @@ partial void ProcessRetrieveStoreResponseContent( PrepareRetrieveStoreRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!); + storeIdentifier: storeIdentifier); return __httpRequest; } @@ -206,7 +206,7 @@ partial void ProcessRetrieveStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", httpMethod: "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, @@ -240,7 +240,7 @@ partial void ProcessRetrieveStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", httpMethod: "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, @@ -281,7 +281,7 @@ partial void ProcessRetrieveStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessRetrieveStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -351,7 +351,7 @@ partial void ProcessRetrieveStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStoreFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStoreFile.g.cs index 6485727..1f7ad0d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStoreFile.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStoreFile.g.cs @@ -177,7 +177,7 @@ partial void ProcessRetrieveStoreFileResponseContent( __pathBuilder .AddOptionalParameter("return_chunks", returnChunks?.Match( static x => (global::System.Collections.Generic.IEnumerable)new string?[] { x?.ToString().ToLowerInvariant() }, - static x => (global::System.Collections.Generic.IEnumerable)global::System.Linq.Enumerable.Select(x, static item => item.ToString()!), + static x => (global::System.Collections.Generic.IEnumerable)global::System.Linq.Enumerable.Select(x, static item => item.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")), validate: false), delimiter: ",", explode: true) ; var __path = __pathBuilder.ToString(); @@ -220,8 +220,8 @@ partial void ProcessRetrieveStoreFileResponseContent( PrepareRetrieveStoreFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, - fileIdentifier: fileIdentifier!, + storeIdentifier: storeIdentifier, + fileIdentifier: fileIdentifier, returnChunks: returnChunks); return __httpRequest; @@ -244,7 +244,7 @@ partial void ProcessRetrieveStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", httpMethod: "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, @@ -278,7 +278,7 @@ partial void ProcessRetrieveStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", httpMethod: "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, @@ -319,7 +319,7 @@ partial void ProcessRetrieveStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -367,7 +367,7 @@ partial void ProcessRetrieveStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -389,7 +389,7 @@ partial void ProcessRetrieveStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreChunks.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreChunks.g.cs index f2217f3..a0e6c09 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreChunks.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreChunks.g.cs @@ -249,7 +249,7 @@ partial void ProcessSearchStoreChunksResponseContent( pathTemplate: "\"/v1/stores/search\"", httpMethod: "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, @@ -283,7 +283,7 @@ partial void ProcessSearchStoreChunksResponseContent( pathTemplate: "\"/v1/stores/search\"", httpMethod: "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, @@ -324,7 +324,7 @@ partial void ProcessSearchStoreChunksResponseContent( pathTemplate: "\"/v1/stores/search\"", httpMethod: "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, @@ -372,7 +372,7 @@ partial void ProcessSearchStoreChunksResponseContent( pathTemplate: "\"/v1/stores/search\"", httpMethod: "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, @@ -394,7 +394,7 @@ partial void ProcessSearchStoreChunksResponseContent( pathTemplate: "\"/v1/stores/search\"", httpMethod: "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/Mixedbread/Generated/Mixedbread.StoresClient.UpdateSearchRule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateSearchRule.g.cs index f9e881f..5890a9f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateSearchRule.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateSearchRule.g.cs @@ -219,8 +219,8 @@ partial void ProcessUpdateSearchRuleResponseContent( PrepareUpdateSearchRuleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, - ruleId: ruleId!, + storeIdentifier: storeIdentifier, + ruleId: ruleId, request: request); return __httpRequest; @@ -243,7 +243,7 @@ partial void ProcessUpdateSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", httpMethod: "PUT", baseUri: 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, @@ -277,7 +277,7 @@ partial void ProcessUpdateSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", httpMethod: "PUT", baseUri: 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, @@ -318,7 +318,7 @@ partial void ProcessUpdateSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -366,7 +366,7 @@ partial void ProcessUpdateSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -388,7 +388,7 @@ partial void ProcessUpdateSearchRuleResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/rules/{ruleId}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStore.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStore.g.cs index d0b31c2..61e2e8c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStore.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStore.g.cs @@ -205,7 +205,7 @@ partial void ProcessUpdateStoreResponseContent( PrepareUpdateStoreRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, + storeIdentifier: storeIdentifier, request: request); return __httpRequest; @@ -228,7 +228,7 @@ partial void ProcessUpdateStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", httpMethod: "PUT", baseUri: 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, @@ -262,7 +262,7 @@ partial void ProcessUpdateStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", httpMethod: "PUT", baseUri: 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, @@ -303,7 +303,7 @@ partial void ProcessUpdateStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -351,7 +351,7 @@ partial void ProcessUpdateStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + 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 ProcessUpdateStoreResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + 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/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStoreFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStoreFile.g.cs index 8804938..c057b5e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStoreFile.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStoreFile.g.cs @@ -219,8 +219,8 @@ partial void ProcessUpdateStoreFileResponseContent( PrepareUpdateStoreFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, - fileIdentifier: fileIdentifier!, + storeIdentifier: storeIdentifier, + fileIdentifier: fileIdentifier, request: request); return __httpRequest; @@ -243,7 +243,7 @@ partial void ProcessUpdateStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", 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, @@ -277,7 +277,7 @@ partial void ProcessUpdateStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", 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, @@ -318,7 +318,7 @@ partial void ProcessUpdateStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", 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, @@ -366,7 +366,7 @@ partial void ProcessUpdateStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", 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, @@ -388,7 +388,7 @@ partial void ProcessUpdateStoreFileResponseContent( pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/{fileIdentifier}\"", 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/Mixedbread/Generated/Mixedbread.StoresClient.UploadStoreFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UploadStoreFile.g.cs index 15608c0..9f004e7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UploadStoreFile.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UploadStoreFile.g.cs @@ -254,7 +254,7 @@ request.Filename is null PrepareUploadStoreFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, + storeIdentifier: storeIdentifier, request: request); return __httpRequest; @@ -277,7 +277,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -311,7 +311,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -352,7 +352,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -400,7 +400,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -422,7 +422,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -779,7 +779,7 @@ request.Filename is null PrepareUploadStoreFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, + storeIdentifier: storeIdentifier, request: request); return __httpRequest; @@ -802,7 +802,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -836,7 +836,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -877,7 +877,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -925,7 +925,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -947,7 +947,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -1250,7 +1250,7 @@ request.Filename is null PrepareUploadStoreFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - storeIdentifier: storeIdentifier!, + storeIdentifier: storeIdentifier, request: request); return __httpRequest; @@ -1273,7 +1273,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -1307,7 +1307,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -1348,7 +1348,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -1396,7 +1396,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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, @@ -1418,7 +1418,7 @@ request.Filename is null pathTemplate: "$\"/v1/stores/{storeIdentifier}/files/upload\"", httpMethod: "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,