diff --git a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.2.Json.g.cs index 7022658..18975c9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AnyOf?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AnyOf? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize>( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AnyOf?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.3.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.3.Json.g.cs index d24e7d4..18bc6f3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.3.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.3.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AnyOf?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AnyOf? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize>( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AnyOf?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.4.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.4.Json.g.cs index eff53c6..66e32ef 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.4.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.4.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AnyOf?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AnyOf? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize>( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AnyOf?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.Json.g.cs index cfdac0c..7a0c330 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.AnyOf.6.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AnyOf?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AnyOf? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize>( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AnyOf?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.CreateBucket.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.CreateBucket.g.cs new file mode 100644 index 0000000..ad3f6c0 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.CreateBucket.g.cs @@ -0,0 +1,590 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class BucketsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_CreateBucketServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateBucketSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_CreateBucketSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_CreateBucketSecurityRequirement0, + }; + partial void PrepareCreateBucketArguments( + global::System.Net.Http.HttpClient httpClient, + global::Mixedbread.BucketCreateParams request); + partial void PrepareCreateBucketRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Mixedbread.BucketCreateParams request); + partial void ProcessCreateBucketResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateBucketResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Add a bucket
+ /// Attach a customer-owned storage bucket to the organization.
+ /// Access is validated against the bucket (reachability + write/delete probe) before
+ /// anything is stored, so an unreachable or unwritable bucket is rejected here.
+ /// With `assume_role` credentials (recommended for AWS) the probe performs the actual
+ /// STS AssumeRole and nothing secret is persisted — only the role ARN and the
+ /// organization's external ID. With `access_key` credentials (S3-compatible
+ /// endpoints) the keys are encrypted before they are stored.
+ /// Args:
+ /// params: The bucket connection details and credentials.
+ /// Returns:
+ /// Bucket: The attached bucket. Credentials are never returned. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateBucketAsync( + + global::Mixedbread.BucketCreateParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateBucketAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Add a bucket
+ /// Attach a customer-owned storage bucket to the organization.
+ /// Access is validated against the bucket (reachability + write/delete probe) before
+ /// anything is stored, so an unreachable or unwritable bucket is rejected here.
+ /// With `assume_role` credentials (recommended for AWS) the probe performs the actual
+ /// STS AssumeRole and nothing secret is persisted — only the role ARN and the
+ /// organization's external ID. With `access_key` credentials (S3-compatible
+ /// endpoints) the keys are encrypted before they are stored.
+ /// Args:
+ /// params: The bucket connection details and credentials.
+ /// Returns:
+ /// Bucket: The attached bucket. Credentials are never returned. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> CreateBucketAsResponseAsync( + + global::Mixedbread.BucketCreateParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateBucketArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateBucketSecurityRequirements, + operationName: "CreateBucketAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/buckets", + baseUri: ResolveBaseUri( + servers: s_CreateBucketServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateBucketRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateBucket", + methodName: "CreateBucketAsync", + pathTemplate: "\"/v1/buckets\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateBucket", + methodName: "CreateBucketAsync", + pathTemplate: "\"/v1/buckets\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateBucket", + methodName: "CreateBucketAsync", + pathTemplate: "\"/v1/buckets\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateBucketResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateBucket", + methodName: "CreateBucketAsync", + pathTemplate: "\"/v1/buckets\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateBucket", + methodName: "CreateBucketAsync", + pathTemplate: "\"/v1/buckets\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateBucketResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.Bucket.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.Bucket.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Add a bucket
+ /// Attach a customer-owned storage bucket to the organization.
+ /// Access is validated against the bucket (reachability + write/delete probe) before
+ /// anything is stored, so an unreachable or unwritable bucket is rejected here.
+ /// With `assume_role` credentials (recommended for AWS) the probe performs the actual
+ /// STS AssumeRole and nothing secret is persisted — only the role ARN and the
+ /// organization's external ID. With `access_key` credentials (S3-compatible
+ /// endpoints) the keys are encrypted before they are stored.
+ /// Args:
+ /// params: The bucket connection details and credentials.
+ /// Returns:
+ /// Bucket: The attached bucket. Credentials are never returned. + ///
+ /// + /// Display name for the bucket + /// + /// + /// Object storage provider
+ /// Default Value: aws_s3 + /// + /// + /// The bucket name + /// + /// + /// The bucket region + /// + /// + /// Custom S3-compatible endpoint (omit for AWS) + /// + /// + /// Key prefix within the bucket + /// + /// + /// KMS key id/ARN to encrypt writes with (SSE-KMS); omit for the bucket's default encryption + /// + /// + /// How Mixedbread authenticates against the bucket. `assume_role` is the recommended default for AWS; `access_key` is for S3-compatible providers with a custom endpoint. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateBucketAsync( + string name, + string bucket, + global::Mixedbread.Credentials credentials, + string? provider = default, + string? region = default, + string? endpointUrl = default, + string? prefix = default, + string? sseKmsKeyId = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Mixedbread.BucketCreateParams + { + Name = name, + Provider = provider, + Bucket = bucket, + Region = region, + EndpointUrl = endpointUrl, + Prefix = prefix, + SseKmsKeyId = sseKmsKeyId, + Credentials = credentials, + }; + + return await CreateBucketAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.ListBuckets.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.ListBuckets.g.cs new file mode 100644 index 0000000..1394189 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.ListBuckets.g.cs @@ -0,0 +1,553 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class BucketsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_ListBucketsServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListBucketsSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_ListBucketsSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_ListBucketsSecurityRequirement0, + }; + partial void PrepareListBucketsArguments( + global::System.Net.Http.HttpClient httpClient, + ref int? limit, + ref string? after, + ref string? before, + ref bool? includeTotal); + partial void PrepareListBucketsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int? limit, + string? after, + string? before, + bool? includeTotal); + partial void ProcessListBucketsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListBucketsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List buckets
+ /// List the organization's connected buckets.
+ /// Non-secret auth metadata (auth type, role ARN, external ID) is included;
+ /// access-key credentials are never returned.
+ /// Args:
+ /// options: The pagination options.
+ /// Returns:
+ /// BucketListResponse: The list of buckets. + ///
+ /// + /// Maximum number of items to return per page (1-100)
+ /// Default Value: 20 + /// + /// + /// Cursor for forward pagination - get items after this position. Use last_cursor from previous response. + /// + /// + /// Cursor for backward pagination - get items before this position. Use first_cursor from previous response. + /// + /// + /// Whether to include total count in response (expensive operation)
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListBucketsAsync( + int? limit = default, + string? after = default, + string? before = default, + bool? includeTotal = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListBucketsAsResponseAsync( + limit: limit, + after: after, + before: before, + includeTotal: includeTotal, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List buckets
+ /// List the organization's connected buckets.
+ /// Non-secret auth metadata (auth type, role ARN, external ID) is included;
+ /// access-key credentials are never returned.
+ /// Args:
+ /// options: The pagination options.
+ /// Returns:
+ /// BucketListResponse: The list of buckets. + ///
+ /// + /// Maximum number of items to return per page (1-100)
+ /// Default Value: 20 + /// + /// + /// Cursor for forward pagination - get items after this position. Use last_cursor from previous response. + /// + /// + /// Cursor for backward pagination - get items before this position. Use first_cursor from previous response. + /// + /// + /// Whether to include total count in response (expensive operation)
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListBucketsAsResponseAsync( + int? limit = default, + string? after = default, + string? before = default, + bool? includeTotal = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListBucketsArguments( + httpClient: HttpClient, + limit: ref limit, + after: ref after, + before: ref before, + includeTotal: ref includeTotal); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListBucketsSecurityRequirements, + operationName: "ListBucketsAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/buckets", + baseUri: ResolveBaseUri( + servers: s_ListBucketsServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + __pathBuilder + .AddOptionalParameter("limit", limit?.ToString()) + .AddOptionalParameter("after", after) + .AddOptionalParameter("before", before) + .AddOptionalParameter("include_total", includeTotal?.ToString().ToLowerInvariant()) + ; + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListBucketsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + limit: limit, + after: after, + before: before, + includeTotal: includeTotal); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListBuckets", + methodName: "ListBucketsAsync", + pathTemplate: "\"/v1/buckets\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListBuckets", + methodName: "ListBucketsAsync", + pathTemplate: "\"/v1/buckets\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListBuckets", + methodName: "ListBucketsAsync", + pathTemplate: "\"/v1/buckets\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListBucketsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListBuckets", + methodName: "ListBucketsAsync", + pathTemplate: "\"/v1/buckets\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListBuckets", + methodName: "ListBucketsAsync", + pathTemplate: "\"/v1/buckets\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListBucketsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.BucketListResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.BucketListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.RotateBucketCredentials.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.RotateBucketCredentials.g.cs new file mode 100644 index 0000000..43e8372 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.RotateBucketCredentials.g.cs @@ -0,0 +1,569 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class BucketsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_RotateBucketCredentialsServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_RotateBucketCredentialsSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_RotateBucketCredentialsSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_RotateBucketCredentialsSecurityRequirement0, + }; + partial void PrepareRotateBucketCredentialsArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid bucketId, + global::Mixedbread.BucketRotateCredentialsParams request); + partial void PrepareRotateBucketCredentialsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid bucketId, + global::Mixedbread.BucketRotateCredentialsParams request); + partial void ProcessRotateBucketCredentialsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessRotateBucketCredentialsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Rotate bucket credentials
+ /// Replace a bucket's stored credentials.
+ /// Only available for `access_key` buckets — `assume_role` buckets store no
+ /// credentials (manage access via the role's trust policy instead). The new
+ /// credentials are re-validated against the bucket's existing (immutable) identity
+ /// before they are persisted. The credentials version is bumped so cached storage clients rebuild.
+ /// Args:
+ /// bucket_id: The ID of the bucket to rotate credentials for.
+ /// params: The new bucket access credentials.
+ /// Returns:
+ /// Bucket: The updated bucket. Credentials are never returned. + ///
+ /// + /// The ID of the bucket to rotate credentials for + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task RotateBucketCredentialsAsync( + global::System.Guid bucketId, + + global::Mixedbread.BucketRotateCredentialsParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await RotateBucketCredentialsAsResponseAsync( + bucketId: bucketId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Rotate bucket credentials
+ /// Replace a bucket's stored credentials.
+ /// Only available for `access_key` buckets — `assume_role` buckets store no
+ /// credentials (manage access via the role's trust policy instead). The new
+ /// credentials are re-validated against the bucket's existing (immutable) identity
+ /// before they are persisted. The credentials version is bumped so cached storage clients rebuild.
+ /// Args:
+ /// bucket_id: The ID of the bucket to rotate credentials for.
+ /// params: The new bucket access credentials.
+ /// Returns:
+ /// Bucket: The updated bucket. Credentials are never returned. + ///
+ /// + /// The ID of the bucket to rotate credentials for + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> RotateBucketCredentialsAsResponseAsync( + global::System.Guid bucketId, + + global::Mixedbread.BucketRotateCredentialsParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareRotateBucketCredentialsArguments( + httpClient: HttpClient, + bucketId: ref bucketId, + request: request); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RotateBucketCredentialsSecurityRequirements, + operationName: "RotateBucketCredentialsAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: $"/v1/buckets/{bucketId}/credentials", + baseUri: ResolveBaseUri( + servers: s_RotateBucketCredentialsServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareRotateBucketCredentialsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + bucketId: bucketId!, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RotateBucketCredentials", + methodName: "RotateBucketCredentialsAsync", + pathTemplate: "$\"/v1/buckets/{bucketId}/credentials\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RotateBucketCredentials", + methodName: "RotateBucketCredentialsAsync", + pathTemplate: "$\"/v1/buckets/{bucketId}/credentials\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RotateBucketCredentials", + methodName: "RotateBucketCredentialsAsync", + pathTemplate: "$\"/v1/buckets/{bucketId}/credentials\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessRotateBucketCredentialsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RotateBucketCredentials", + methodName: "RotateBucketCredentialsAsync", + pathTemplate: "$\"/v1/buckets/{bucketId}/credentials\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RotateBucketCredentials", + methodName: "RotateBucketCredentialsAsync", + pathTemplate: "$\"/v1/buckets/{bucketId}/credentials\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessRotateBucketCredentialsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.Bucket.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.Bucket.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Rotate bucket credentials
+ /// Replace a bucket's stored credentials.
+ /// Only available for `access_key` buckets — `assume_role` buckets store no
+ /// credentials (manage access via the role's trust policy instead). The new
+ /// credentials are re-validated against the bucket's existing (immutable) identity
+ /// before they are persisted. The credentials version is bumped so cached storage clients rebuild.
+ /// Args:
+ /// bucket_id: The ID of the bucket to rotate credentials for.
+ /// params: The new bucket access credentials.
+ /// Returns:
+ /// Bucket: The updated bucket. Credentials are never returned. + ///
+ /// + /// The ID of the bucket to rotate credentials for + /// + /// + /// New bucket access credentials + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task RotateBucketCredentialsAsync( + global::System.Guid bucketId, + global::Mixedbread.BucketAccessKeyCredentials credentials, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Mixedbread.BucketRotateCredentialsParams + { + Credentials = credentials, + }; + + return await RotateBucketCredentialsAsync( + bucketId: bucketId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.g.cs new file mode 100644 index 0000000..ebe8e41 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.BucketsClient.g.cs @@ -0,0 +1,294 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public sealed partial class BucketsClient : global::Mixedbread.IBucketsClient, global::System.IDisposable + { + /// + /// mixedbread ai production server + /// + public const string DefaultBaseUrl = "https://api.mixedbread.com/"; + + private bool _disposeHttpClient = true; + + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + public System.Uri? BaseUri => ResolveDisplayedBaseUri(); + + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif + + /// + public global::Mixedbread.AutoSDKClientOptions Options { get; } + + + internal global::Mixedbread.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Mixedbread.AutoSDKServerConfiguration(); + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mixedbread.SourceGenerationContext.Default; + + + + private static readonly global::Mixedbread.AutoSDKServer[] s_availableServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + /// + /// The server options available for this client. + /// + public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; + + /// + /// The currently selected server for this client, if any. + /// + public global::Mixedbread.AutoSDKServer? SelectedServer + { + get => ResolveSelectedServer(); + set => SelectServer(value); + } + + /// + /// Creates a new instance of the BucketsClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Dispose the HttpClient when the instance is disposed. True by default. + public BucketsClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this( + httpClient, + baseUri, + authorizations, + options: null, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the BucketsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public BucketsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Mixedbread.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the BucketsClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public BucketsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Uri? baseUri, + global::System.Collections.Generic.List? authorizations, + global::Mixedbread.AutoSDKClientOptions? options, + bool disposeHttpClient = true) + { + + HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); + if (baseUri is not null) + { + HttpClient.BaseAddress ??= baseUri; + } + Authorizations = authorizations ?? new global::System.Collections.Generic.List(); + Options = options ?? new global::Mixedbread.AutoSDKClientOptions(); + _disposeHttpClient = disposeHttpClient; + + AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; + + Initialized(HttpClient); + } + + /// + public void Dispose() + { + if (_disposeHttpClient) + { + HttpClient.Dispose(); + } + } + + partial void Initialized( + global::System.Net.Http.HttpClient client); + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + + + /// + /// Selects one of the generated server options by id. + /// + public bool TrySelectServer(string serverId) + { + if (string.IsNullOrWhiteSpace(serverId)) + { + return false; + } + + foreach (var server in s_availableServers) + { + if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) + { + AutoSDKServerConfiguration.SelectedServer = server; + AutoSDKServerConfiguration.ExplicitBaseUri = null; + return true; + } + } + + return false; + } + + /// + /// Clears the currently selected server. + /// + public void ClearSelectedServer() + { + AutoSDKServerConfiguration.SelectedServer = null; + } + + private global::Mixedbread.AutoSDKServer? ResolveSelectedServer() + { + var selectedServer = AutoSDKServerConfiguration.SelectedServer; + if (selectedServer is null) + { + return null; + } + + foreach (var server in s_availableServers) + { + if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) + { + return server; + } + } + + return null; + } + + private void SelectServer(global::Mixedbread.AutoSDKServer? server) + { + if (server is null) + { + AutoSDKServerConfiguration.SelectedServer = null; + return; + } + + foreach (var candidate in s_availableServers) + { + if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) + { + AutoSDKServerConfiguration.SelectedServer = candidate; + AutoSDKServerConfiguration.ExplicitBaseUri = null; + return; + } + } + + throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); + } + + private global::System.Uri? ResolveDisplayedBaseUri() + { + if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) + { + return explicitBaseUri; + } + + return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); + } + + private global::System.Uri? ResolveBaseUri( + global::Mixedbread.AutoSDKServer[] servers, + string defaultBaseUrl) + { + if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) + { + return explicitBaseUri; + } + + if (AutoSDKServerConfiguration.SelectedServer is global::Mixedbread.AutoSDKServer selectedServer) + { + foreach (var server in servers) + { + if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) + { + return server.Uri; + } + } + } + + if (servers.Length > 0) + { + return servers[0].Uri; + } + + return string.IsNullOrWhiteSpace(defaultBaseUrl) + ? HttpClient.BaseAddress + : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IBucketsClient.CreateBucket.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IBucketsClient.CreateBucket.g.cs new file mode 100644 index 0000000..4089fad --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IBucketsClient.CreateBucket.g.cs @@ -0,0 +1,107 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IBucketsClient + { + /// + /// Add a bucket
+ /// Attach a customer-owned storage bucket to the organization.
+ /// Access is validated against the bucket (reachability + write/delete probe) before
+ /// anything is stored, so an unreachable or unwritable bucket is rejected here.
+ /// With `assume_role` credentials (recommended for AWS) the probe performs the actual
+ /// STS AssumeRole and nothing secret is persisted — only the role ARN and the
+ /// organization's external ID. With `access_key` credentials (S3-compatible
+ /// endpoints) the keys are encrypted before they are stored.
+ /// Args:
+ /// params: The bucket connection details and credentials.
+ /// Returns:
+ /// Bucket: The attached bucket. Credentials are never returned. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateBucketAsync( + + global::Mixedbread.BucketCreateParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Add a bucket
+ /// Attach a customer-owned storage bucket to the organization.
+ /// Access is validated against the bucket (reachability + write/delete probe) before
+ /// anything is stored, so an unreachable or unwritable bucket is rejected here.
+ /// With `assume_role` credentials (recommended for AWS) the probe performs the actual
+ /// STS AssumeRole and nothing secret is persisted — only the role ARN and the
+ /// organization's external ID. With `access_key` credentials (S3-compatible
+ /// endpoints) the keys are encrypted before they are stored.
+ /// Args:
+ /// params: The bucket connection details and credentials.
+ /// Returns:
+ /// Bucket: The attached bucket. Credentials are never returned. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> CreateBucketAsResponseAsync( + + global::Mixedbread.BucketCreateParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Add a bucket
+ /// Attach a customer-owned storage bucket to the organization.
+ /// Access is validated against the bucket (reachability + write/delete probe) before
+ /// anything is stored, so an unreachable or unwritable bucket is rejected here.
+ /// With `assume_role` credentials (recommended for AWS) the probe performs the actual
+ /// STS AssumeRole and nothing secret is persisted — only the role ARN and the
+ /// organization's external ID. With `access_key` credentials (S3-compatible
+ /// endpoints) the keys are encrypted before they are stored.
+ /// Args:
+ /// params: The bucket connection details and credentials.
+ /// Returns:
+ /// Bucket: The attached bucket. Credentials are never returned. + ///
+ /// + /// Display name for the bucket + /// + /// + /// Object storage provider
+ /// Default Value: aws_s3 + /// + /// + /// The bucket name + /// + /// + /// The bucket region + /// + /// + /// Custom S3-compatible endpoint (omit for AWS) + /// + /// + /// Key prefix within the bucket + /// + /// + /// KMS key id/ARN to encrypt writes with (SSE-KMS); omit for the bucket's default encryption + /// + /// + /// How Mixedbread authenticates against the bucket. `assume_role` is the recommended default for AWS; `access_key` is for S3-compatible providers with a custom endpoint. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateBucketAsync( + string name, + string bucket, + global::Mixedbread.Credentials credentials, + string? provider = default, + string? region = default, + string? endpointUrl = default, + string? prefix = default, + string? sseKmsKeyId = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IBucketsClient.ListBuckets.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IBucketsClient.ListBuckets.g.cs new file mode 100644 index 0000000..2d73e80 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IBucketsClient.ListBuckets.g.cs @@ -0,0 +1,76 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IBucketsClient + { + /// + /// List buckets
+ /// List the organization's connected buckets.
+ /// Non-secret auth metadata (auth type, role ARN, external ID) is included;
+ /// access-key credentials are never returned.
+ /// Args:
+ /// options: The pagination options.
+ /// Returns:
+ /// BucketListResponse: The list of buckets. + ///
+ /// + /// Maximum number of items to return per page (1-100)
+ /// Default Value: 20 + /// + /// + /// Cursor for forward pagination - get items after this position. Use last_cursor from previous response. + /// + /// + /// Cursor for backward pagination - get items before this position. Use first_cursor from previous response. + /// + /// + /// Whether to include total count in response (expensive operation)
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListBucketsAsync( + int? limit = default, + string? after = default, + string? before = default, + bool? includeTotal = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List buckets
+ /// List the organization's connected buckets.
+ /// Non-secret auth metadata (auth type, role ARN, external ID) is included;
+ /// access-key credentials are never returned.
+ /// Args:
+ /// options: The pagination options.
+ /// Returns:
+ /// BucketListResponse: The list of buckets. + ///
+ /// + /// Maximum number of items to return per page (1-100)
+ /// Default Value: 20 + /// + /// + /// Cursor for forward pagination - get items after this position. Use last_cursor from previous response. + /// + /// + /// Cursor for backward pagination - get items before this position. Use first_cursor from previous response. + /// + /// + /// Whether to include total count in response (expensive operation)
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListBucketsAsResponseAsync( + int? limit = default, + string? after = default, + string? before = default, + bool? includeTotal = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IBucketsClient.RotateBucketCredentials.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IBucketsClient.RotateBucketCredentials.g.cs new file mode 100644 index 0000000..c51ce98 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IBucketsClient.RotateBucketCredentials.g.cs @@ -0,0 +1,87 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IBucketsClient + { + /// + /// Rotate bucket credentials
+ /// Replace a bucket's stored credentials.
+ /// Only available for `access_key` buckets — `assume_role` buckets store no
+ /// credentials (manage access via the role's trust policy instead). The new
+ /// credentials are re-validated against the bucket's existing (immutable) identity
+ /// before they are persisted. The credentials version is bumped so cached storage clients rebuild.
+ /// Args:
+ /// bucket_id: The ID of the bucket to rotate credentials for.
+ /// params: The new bucket access credentials.
+ /// Returns:
+ /// Bucket: The updated bucket. Credentials are never returned. + ///
+ /// + /// The ID of the bucket to rotate credentials for + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task RotateBucketCredentialsAsync( + global::System.Guid bucketId, + + global::Mixedbread.BucketRotateCredentialsParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Rotate bucket credentials
+ /// Replace a bucket's stored credentials.
+ /// Only available for `access_key` buckets — `assume_role` buckets store no
+ /// credentials (manage access via the role's trust policy instead). The new
+ /// credentials are re-validated against the bucket's existing (immutable) identity
+ /// before they are persisted. The credentials version is bumped so cached storage clients rebuild.
+ /// Args:
+ /// bucket_id: The ID of the bucket to rotate credentials for.
+ /// params: The new bucket access credentials.
+ /// Returns:
+ /// Bucket: The updated bucket. Credentials are never returned. + ///
+ /// + /// The ID of the bucket to rotate credentials for + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> RotateBucketCredentialsAsResponseAsync( + global::System.Guid bucketId, + + global::Mixedbread.BucketRotateCredentialsParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Rotate bucket credentials
+ /// Replace a bucket's stored credentials.
+ /// Only available for `access_key` buckets — `assume_role` buckets store no
+ /// credentials (manage access via the role's trust policy instead). The new
+ /// credentials are re-validated against the bucket's existing (immutable) identity
+ /// before they are persisted. The credentials version is bumped so cached storage clients rebuild.
+ /// Args:
+ /// bucket_id: The ID of the bucket to rotate credentials for.
+ /// params: The new bucket access credentials.
+ /// Returns:
+ /// Bucket: The updated bucket. Credentials are never returned. + ///
+ /// + /// The ID of the bucket to rotate credentials for + /// + /// + /// New bucket access credentials + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task RotateBucketCredentialsAsync( + global::System.Guid bucketId, + global::Mixedbread.BucketAccessKeyCredentials credentials, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IBucketsClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IBucketsClient.g.cs new file mode 100644 index 0000000..1fffbd8 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IBucketsClient.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public partial interface IBucketsClient : global::System.IDisposable + { + /// + /// The HttpClient instance. + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + /// The base URL for the API. + /// + public System.Uri? BaseUri { get; } + + + /// + /// The server options available for this client. + /// + public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } + + /// + /// The currently selected server for this client, if any. + /// + public global::Mixedbread.AutoSDKServer? SelectedServer { get; set; } + + /// + /// Selects one of the generated server options by id. + /// + public bool TrySelectServer(string serverId); + + /// + /// Clears the currently selected server. + /// + public void ClearSelectedServer(); + + /// + /// The authorizations to use for the requests. + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + /// Gets or sets a value indicating whether the response content should be read as a string. + /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. + /// + public bool ReadResponseAsString { get; set; } + /// + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// + public global::Mixedbread.AutoSDKClientOptions Options { get; } + + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.AuthorizeGoogleDriveIntegration.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.AuthorizeGoogleDriveIntegration.g.cs new file mode 100644 index 0000000..308cb6b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.AuthorizeGoogleDriveIntegration.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Authorize Google Drive integration
+ /// Start Google Drive OAuth for the current organization. + ///
+ /// + /// Optional ingestion store name + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task AuthorizeGoogleDriveIntegrationAsync( + string? storeName = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Authorize Google Drive integration
+ /// Start Google Drive OAuth for the current organization. + ///
+ /// + /// Optional ingestion store name + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task AuthorizeGoogleDriveIntegrationAsResponseAsync( + string? storeName = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.AuthorizeSlackIntegration.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.AuthorizeSlackIntegration.g.cs new file mode 100644 index 0000000..1a5e690 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.AuthorizeSlackIntegration.g.cs @@ -0,0 +1,46 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Authorize Slack integration
+ /// Start Slack OAuth for the current organization. + ///
+ /// + /// Optional ingestion store name + /// + /// + /// Automatically sync all current and future channels
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task AuthorizeSlackIntegrationAsync( + string? storeName = default, + bool? autoSyncAll = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Authorize Slack integration
+ /// Start Slack OAuth for the current organization. + ///
+ /// + /// Optional ingestion store name + /// + /// + /// Automatically sync all current and future channels
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task AuthorizeSlackIntegrationAsResponseAsync( + string? storeName = default, + bool? autoSyncAll = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ConnectSlackManual.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ConnectSlackManual.g.cs new file mode 100644 index 0000000..989d0e3 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ConnectSlackManual.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Connect Slack with a customer-provided app
+ /// Connect a Slack workspace using a customer-created app's bot token and signing secret. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ConnectSlackManualAsync( + + global::Mixedbread.SlackManualConnectBody request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Connect Slack with a customer-provided app
+ /// Connect a Slack workspace using a customer-created app's bot token and signing secret. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ConnectSlackManualAsResponseAsync( + + global::Mixedbread.SlackManualConnectBody request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Connect Slack with a customer-provided app
+ /// Connect a Slack workspace using a customer-created app's bot token and signing secret. + ///
+ /// + /// Slack bot user OAuth token (xoxb-…) + /// + /// + /// Slack app signing secret + /// + /// + /// Optional ingestion store name + /// + /// + /// Automatically sync all current and future channels
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ConnectSlackManualAsync( + string botToken, + string signingSecret, + string? storeName = default, + bool? autoSyncAll = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.DisconnectGoogleDriveInstallation.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.DisconnectGoogleDriveInstallation.g.cs new file mode 100644 index 0000000..00108c8 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.DisconnectGoogleDriveInstallation.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Disconnect Google Drive
+ /// Disconnect a specific Google Drive installation from the current organization. + ///
+ /// + /// Google Drive installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task DisconnectGoogleDriveInstallationAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Disconnect Google Drive
+ /// Disconnect a specific Google Drive installation from the current organization. + ///
+ /// + /// Google Drive installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> DisconnectGoogleDriveInstallationAsResponseAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.DisconnectSlackInstallation.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.DisconnectSlackInstallation.g.cs new file mode 100644 index 0000000..dc00651 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.DisconnectSlackInstallation.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Disconnect Slack
+ /// Disconnect a specific Slack installation from the current organization. + ///
+ /// + /// Slack installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task DisconnectSlackInstallationAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Disconnect Slack
+ /// Disconnect a specific Slack installation from the current organization. + ///
+ /// + /// Slack installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> DisconnectSlackInstallationAsResponseAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GetGoogleDriveFolderSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GetGoogleDriveFolderSelection.g.cs new file mode 100644 index 0000000..95786eb --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GetGoogleDriveFolderSelection.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// List Google Drive folders for store ingestion
+ /// List Google Drive folders and whether each is selected for store ingestion. + ///
+ /// + /// Google Drive installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetGoogleDriveFolderSelectionAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List Google Drive folders for store ingestion
+ /// List Google Drive folders and whether each is selected for store ingestion. + ///
+ /// + /// Google Drive installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetGoogleDriveFolderSelectionAsResponseAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GetSlackChannelSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GetSlackChannelSelection.g.cs new file mode 100644 index 0000000..da098ea --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GetSlackChannelSelection.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// List Slack channels for store ingestion
+ /// List public Slack channels and whether each channel is selected for store ingestion. + ///
+ /// + /// Slack installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetSlackChannelSelectionAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List Slack channels for store ingestion
+ /// List public Slack channels and whether each channel is selected for store ingestion. + ///
+ /// + /// Slack installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetSlackChannelSelectionAsResponseAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GetSlackManifest.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GetSlackManifest.g.cs new file mode 100644 index 0000000..6638005 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GetSlackManifest.g.cs @@ -0,0 +1,28 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Get Slack app manifest
+ /// Return the Slack app manifest pre-filled with this deployment's public URLs. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetSlackManifestAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get Slack app manifest
+ /// Return the Slack app manifest pre-filled with this deployment's public URLs. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetSlackManifestAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GoogleDriveEvents.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GoogleDriveEvents.g.cs new file mode 100644 index 0000000..926b76a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GoogleDriveEvents.g.cs @@ -0,0 +1,28 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Google Drive push webhook
+ /// Receive Google Drive push notifications and enqueue an incremental sync. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GoogleDriveEventsAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Google Drive push webhook
+ /// Receive Google Drive push notifications and enqueue an incremental sync. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GoogleDriveEventsAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GoogleDriveOauthCallback.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GoogleDriveOauthCallback.g.cs new file mode 100644 index 0000000..c0c43db --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.GoogleDriveOauthCallback.g.cs @@ -0,0 +1,52 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Google Drive OAuth callback
+ /// Complete Google Drive OAuth and persist the installation. + ///
+ /// + /// Google OAuth state + /// + /// + /// Google OAuth authorization code + /// + /// + /// Google OAuth error + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GoogleDriveOauthCallbackAsync( + string state, + string? code = default, + string? error = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Google Drive OAuth callback
+ /// Complete Google Drive OAuth and persist the installation. + ///
+ /// + /// Google OAuth state + /// + /// + /// Google OAuth authorization code + /// + /// + /// Google OAuth error + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GoogleDriveOauthCallbackAsResponseAsync( + string state, + string? code = default, + string? error = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.HandleSlackCommand.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.HandleSlackCommand.g.cs new file mode 100644 index 0000000..fb4440a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.HandleSlackCommand.g.cs @@ -0,0 +1,28 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Slack slash command webhook
+ /// Receive signed Slack slash command requests. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task HandleSlackCommandAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Slack slash command webhook
+ /// Receive signed Slack slash command requests. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> HandleSlackCommandAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.HandleSlackEvent.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.HandleSlackEvent.g.cs new file mode 100644 index 0000000..98457a3 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.HandleSlackEvent.g.cs @@ -0,0 +1,28 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Slack events webhook
+ /// Receive signed Slack Events API requests. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task HandleSlackEventAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Slack events webhook
+ /// Receive signed Slack Events API requests. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> HandleSlackEventAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListDataSourceInstallations.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListDataSourceInstallations.g.cs new file mode 100644 index 0000000..aab1bda --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListDataSourceInstallations.g.cs @@ -0,0 +1,28 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// List connected data sources
+ /// List every connected data source across providers for the current organization. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListDataSourceInstallationsAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List connected data sources
+ /// List every connected data source across providers for the current organization. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListDataSourceInstallationsAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListGoogleDriveInstallations.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListGoogleDriveInstallations.g.cs new file mode 100644 index 0000000..cf58aaa --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListGoogleDriveInstallations.g.cs @@ -0,0 +1,28 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// List connected Google Drive accounts
+ /// List connected Google Drive accounts with their selected folder counts. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListGoogleDriveInstallationsAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List connected Google Drive accounts
+ /// List connected Google Drive accounts with their selected folder counts. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListGoogleDriveInstallationsAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListIntegrationInstallations.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListIntegrationInstallations.g.cs new file mode 100644 index 0000000..d62fad1 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListIntegrationInstallations.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// List integration installations
+ /// List installed provider integrations for the current organization. + ///
+ /// + /// Maximum number of items to return per page (1-100)
+ /// Default Value: 20 + /// + /// + /// Cursor for forward pagination - get items after this position. Use last_cursor from previous response. + /// + /// + /// Cursor for backward pagination - get items before this position. Use first_cursor from previous response. + /// + /// + /// Whether to include total count in response (expensive operation)
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListIntegrationInstallationsAsync( + int? limit = default, + string? after = default, + string? before = default, + bool? includeTotal = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List integration installations
+ /// List installed provider integrations for the current organization. + ///
+ /// + /// Maximum number of items to return per page (1-100)
+ /// Default Value: 20 + /// + /// + /// Cursor for forward pagination - get items after this position. Use last_cursor from previous response. + /// + /// + /// Cursor for backward pagination - get items before this position. Use first_cursor from previous response. + /// + /// + /// Whether to include total count in response (expensive operation)
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListIntegrationInstallationsAsResponseAsync( + int? limit = default, + string? after = default, + string? before = default, + bool? includeTotal = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListIntegrationProviders.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListIntegrationProviders.g.cs new file mode 100644 index 0000000..5579259 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListIntegrationProviders.g.cs @@ -0,0 +1,28 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// List integration providers
+ /// List supported integration provider manifests. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListIntegrationProvidersAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List integration providers
+ /// List supported integration provider manifests. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListIntegrationProvidersAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListSlackInstallations.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListSlackInstallations.g.cs new file mode 100644 index 0000000..0138296 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.ListSlackInstallations.g.cs @@ -0,0 +1,28 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// List connected Slack workspaces
+ /// List connected Slack workspaces with their selected ingestion channel counts. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListSlackInstallationsAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List connected Slack workspaces
+ /// List connected Slack workspaces with their selected ingestion channel counts. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListSlackInstallationsAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.SlackOauthCallback.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.SlackOauthCallback.g.cs new file mode 100644 index 0000000..6340491 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.SlackOauthCallback.g.cs @@ -0,0 +1,52 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Slack OAuth callback
+ /// Complete Slack OAuth and persist the workspace installation. + ///
+ /// + /// Slack OAuth state + /// + /// + /// Slack OAuth authorization code + /// + /// + /// Slack OAuth error + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task SlackOauthCallbackAsync( + string state, + string? code = default, + string? error = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Slack OAuth callback
+ /// Complete Slack OAuth and persist the workspace installation. + ///
+ /// + /// Slack OAuth state + /// + /// + /// Slack OAuth authorization code + /// + /// + /// Slack OAuth error + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task SlackOauthCallbackAsResponseAsync( + string state, + string? code = default, + string? error = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.SyncGoogleDrive.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.SyncGoogleDrive.g.cs new file mode 100644 index 0000000..9953956 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.SyncGoogleDrive.g.cs @@ -0,0 +1,48 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Sync a Google Drive connector
+ /// Queue an incremental Google Drive change sync. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task SyncGoogleDriveAsync( + + global::Mixedbread.GoogleDriveSyncParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Sync a Google Drive connector
+ /// Queue an incremental Google Drive change sync. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> SyncGoogleDriveAsResponseAsync( + + global::Mixedbread.GoogleDriveSyncParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Sync a Google Drive connector
+ /// Queue an incremental Google Drive change sync. + ///
+ /// + /// Google Drive installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task SyncGoogleDriveAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.SyncSlackChannels.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.SyncSlackChannels.g.cs new file mode 100644 index 0000000..ffb279e --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.SyncSlackChannels.g.cs @@ -0,0 +1,57 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Sync selected Slack channels
+ /// Queue historical ingestion for selected Slack channels. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task SyncSlackChannelsAsync( + + global::Mixedbread.SlackChannelSyncParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Sync selected Slack channels
+ /// Queue historical ingestion for selected Slack channels. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> SyncSlackChannelsAsResponseAsync( + + global::Mixedbread.SlackChannelSyncParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Sync selected Slack channels
+ /// Queue historical ingestion for selected Slack channels. + ///
+ /// + /// Slack installation ID + /// + /// + /// Slack channel IDs to sync. Defaults to all selected channels. + /// + /// + /// Only retry Slack items that failed in the most recent import.
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task SyncSlackChannelsAsync( + global::System.Guid installationId, + global::System.Collections.Generic.IList? channelIds = default, + bool? retryFailedOnly = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.UpdateGoogleDriveFolderSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.UpdateGoogleDriveFolderSelection.g.cs new file mode 100644 index 0000000..ab746d9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.UpdateGoogleDriveFolderSelection.g.cs @@ -0,0 +1,52 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Update Google Drive folders for store ingestion
+ /// Replace the Google Drive folders selected for ingestion into a store. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateGoogleDriveFolderSelectionAsync( + + global::Mixedbread.GoogleDriveFolderSelectionUpdateParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update Google Drive folders for store ingestion
+ /// Replace the Google Drive folders selected for ingestion into a store. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> UpdateGoogleDriveFolderSelectionAsResponseAsync( + + global::Mixedbread.GoogleDriveFolderSelectionUpdateParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update Google Drive folders for store ingestion
+ /// Replace the Google Drive folders selected for ingestion into a store. + ///
+ /// + /// Google Drive installation ID + /// + /// + /// Google Drive folder IDs to ingest into the store + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateGoogleDriveFolderSelectionAsync( + global::System.Guid installationId, + global::System.Collections.Generic.IList folderIds, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.UpdateGoogleDriveInstallationConfig.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.UpdateGoogleDriveInstallationConfig.g.cs new file mode 100644 index 0000000..7b524b2 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.UpdateGoogleDriveInstallationConfig.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Update Google Drive data source config
+ /// Update a Google Drive data source config (sync entire Drive). Enabling syncs the whole Drive. + ///
+ /// + /// Google Drive installation ID + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateGoogleDriveInstallationConfigAsync( + global::System.Guid installationId, + + global::Mixedbread.GoogleDriveInstallationConfigUpdateBody request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update Google Drive data source config
+ /// Update a Google Drive data source config (sync entire Drive). Enabling syncs the whole Drive. + ///
+ /// + /// Google Drive installation ID + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> UpdateGoogleDriveInstallationConfigAsResponseAsync( + global::System.Guid installationId, + + global::Mixedbread.GoogleDriveInstallationConfigUpdateBody request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update Google Drive data source config
+ /// Update a Google Drive data source config (sync entire Drive). Enabling syncs the whole Drive. + ///
+ /// + /// Google Drive installation ID + /// + /// + /// Whether the entire Drive (all current and future files) is synced automatically + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateGoogleDriveInstallationConfigAsync( + global::System.Guid installationId, + bool autoSyncAll, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.UpdateSlackChannelSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.UpdateSlackChannelSelection.g.cs new file mode 100644 index 0000000..6a99082 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.UpdateSlackChannelSelection.g.cs @@ -0,0 +1,52 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Update Slack channels for store ingestion
+ /// Replace the Slack channels selected for ingestion into a store. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateSlackChannelSelectionAsync( + + global::Mixedbread.SlackChannelSelectionUpdateParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update Slack channels for store ingestion
+ /// Replace the Slack channels selected for ingestion into a store. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> UpdateSlackChannelSelectionAsResponseAsync( + + global::Mixedbread.SlackChannelSelectionUpdateParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update Slack channels for store ingestion
+ /// Replace the Slack channels selected for ingestion into a store. + ///
+ /// + /// Slack installation ID + /// + /// + /// Slack channel IDs to ingest into the store + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateSlackChannelSelectionAsync( + global::System.Guid installationId, + global::System.Collections.Generic.IList channelIds, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.UpdateSlackInstallationConfig.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.UpdateSlackInstallationConfig.g.cs new file mode 100644 index 0000000..c2a6240 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.UpdateSlackInstallationConfig.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread +{ + public partial interface IIntegrationsClient + { + /// + /// Update Slack data source config
+ /// Update a Slack data source config (auto-sync-all). Enabling it syncs every channel. + ///
+ /// + /// Slack installation ID + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateSlackInstallationConfigAsync( + global::System.Guid installationId, + + global::Mixedbread.SlackInstallationConfigUpdateBody request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update Slack data source config
+ /// Update a Slack data source config (auto-sync-all). Enabling it syncs every channel. + ///
+ /// + /// Slack installation ID + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> UpdateSlackInstallationConfigAsResponseAsync( + global::System.Guid installationId, + + global::Mixedbread.SlackInstallationConfigUpdateBody request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update Slack data source config
+ /// Update a Slack data source config (auto-sync-all). Enabling it syncs every channel. + ///
+ /// + /// Slack installation ID + /// + /// + /// Whether all current and future Slack channels are synced automatically + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateSlackInstallationConfigAsync( + global::System.Guid installationId, + bool autoSyncAllChannels, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.g.cs new file mode 100644 index 0000000..9eee238 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IIntegrationsClient.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public partial interface IIntegrationsClient : global::System.IDisposable + { + /// + /// The HttpClient instance. + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + /// The base URL for the API. + /// + public System.Uri? BaseUri { get; } + + + /// + /// The server options available for this client. + /// + public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } + + /// + /// The currently selected server for this client, if any. + /// + public global::Mixedbread.AutoSDKServer? SelectedServer { get; set; } + + /// + /// Selects one of the generated server options by id. + /// + public bool TrySelectServer(string serverId); + + /// + /// Clears the currently selected server. + /// + public void ClearSelectedServer(); + + /// + /// The authorizations to use for the requests. + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + /// Gets or sets a value indicating whether the response content should be read as a string. + /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. + /// + public bool ReadResponseAsString { get; set; } + /// + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// + public global::Mixedbread.AutoSDKClientOptions Options { get; } + + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IMixedbreadClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IMixedbreadClient.g.cs index 6b6ddb8..6f21119 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IMixedbreadClient.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IMixedbreadClient.g.cs @@ -80,6 +80,11 @@ public partial interface IMixedbreadClient : global::System.IDisposable /// public BillingClient Billing { get; } + /// + /// + /// + public BucketsClient Buckets { get; } + /// /// /// @@ -100,6 +105,11 @@ public partial interface IMixedbreadClient : global::System.IDisposable /// public FilesClient Files { get; } + /// + /// + /// + public IntegrationsClient Integrations { get; } + /// /// /// diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GetStoreEventHistogram.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GetStoreEventHistogram.g.cs index effd21d..8692166 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GetStoreEventHistogram.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GetStoreEventHistogram.g.cs @@ -71,7 +71,7 @@ public partial interface IStoresClient /// Default Value: 7200 /// /// - /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, and ingestion events. + /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, grep, and ingestion events. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GrepStoreChunks.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GrepStoreChunks.g.cs index e3edcaa..a5c13bb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GrepStoreChunks.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.GrepStoreChunks.g.cs @@ -7,9 +7,9 @@ public partial interface IStoresClient /// /// Match store chunks against a regular expression
/// Match store chunks against a regular expression.
- /// Unlike `/stores/search`, this performs exact text matching — no embeddings, no
- /// semantic similarity, no reranking. Use it to find chunks containing a specific
- /// token, identifier, error code, or literal phrase.
+ /// Unlike `/stores/search`, this runs your regex against the literal text of each
+ /// chunk. Use it to find chunks containing a specific token, identifier, error code,
+ /// or literal phrase.
/// grep targets a single store and does not support pagination; raise `top_k` to
/// retrieve more matches.
/// Args:
@@ -39,9 +39,9 @@ public partial interface IStoresClient /// /// Match store chunks against a regular expression
/// Match store chunks against a regular expression.
- /// Unlike `/stores/search`, this performs exact text matching — no embeddings, no
- /// semantic similarity, no reranking. Use it to find chunks containing a specific
- /// token, identifier, error code, or literal phrase.
+ /// Unlike `/stores/search`, this runs your regex against the literal text of each
+ /// chunk. Use it to find chunks containing a specific token, identifier, error code,
+ /// or literal phrase.
/// grep targets a single store and does not support pagination; raise `top_k` to
/// retrieve more matches.
/// Args:
@@ -71,9 +71,9 @@ public partial interface IStoresClient /// /// Match store chunks against a regular expression
/// Match store chunks against a regular expression.
- /// Unlike `/stores/search`, this performs exact text matching — no embeddings, no
- /// semantic similarity, no reranking. Use it to find chunks containing a specific
- /// token, identifier, error code, or literal phrase.
+ /// Unlike `/stores/search`, this runs your regex against the literal text of each
+ /// chunk. Use it to find chunks containing a specific token, identifier, error code,
+ /// or literal phrase.
/// grep targets a single store and does not support pagination; raise `top_k` to
/// retrieve more matches.
/// Args:
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeGoogleDriveIntegration.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeGoogleDriveIntegration.g.cs new file mode 100644 index 0000000..d969281 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeGoogleDriveIntegration.g.cs @@ -0,0 +1,509 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_AuthorizeGoogleDriveIntegrationServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_AuthorizeGoogleDriveIntegrationSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_AuthorizeGoogleDriveIntegrationSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_AuthorizeGoogleDriveIntegrationSecurityRequirement0, + }; + partial void PrepareAuthorizeGoogleDriveIntegrationArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? storeName); + partial void PrepareAuthorizeGoogleDriveIntegrationRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? storeName); + partial void ProcessAuthorizeGoogleDriveIntegrationResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// Authorize Google Drive integration
+ /// Start Google Drive OAuth for the current organization. + ///
+ /// + /// Optional ingestion store name + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task AuthorizeGoogleDriveIntegrationAsync( + string? storeName = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + await AuthorizeGoogleDriveIntegrationAsResponseAsync( + storeName: storeName, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + /// + /// Authorize Google Drive integration
+ /// Start Google Drive OAuth for the current organization. + ///
+ /// + /// Optional ingestion store name + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task AuthorizeGoogleDriveIntegrationAsResponseAsync( + string? storeName = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareAuthorizeGoogleDriveIntegrationArguments( + httpClient: HttpClient, + storeName: ref storeName); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_AuthorizeGoogleDriveIntegrationSecurityRequirements, + operationName: "AuthorizeGoogleDriveIntegrationAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/google_drive/oauth/authorize", + baseUri: ResolveBaseUri( + servers: s_AuthorizeGoogleDriveIntegrationServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + __pathBuilder + .AddOptionalParameter("store_name", storeName) + ; + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareAuthorizeGoogleDriveIntegrationRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + storeName: storeName); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AuthorizeGoogleDriveIntegration", + methodName: "AuthorizeGoogleDriveIntegrationAsync", + pathTemplate: "\"/v1/integrations/google_drive/oauth/authorize\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AuthorizeGoogleDriveIntegration", + methodName: "AuthorizeGoogleDriveIntegrationAsync", + pathTemplate: "\"/v1/integrations/google_drive/oauth/authorize\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AuthorizeGoogleDriveIntegration", + methodName: "AuthorizeGoogleDriveIntegrationAsync", + pathTemplate: "\"/v1/integrations/google_drive/oauth/authorize\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessAuthorizeGoogleDriveIntegrationResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AuthorizeGoogleDriveIntegration", + methodName: "AuthorizeGoogleDriveIntegrationAsync", + pathTemplate: "\"/v1/integrations/google_drive/oauth/authorize\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AuthorizeGoogleDriveIntegration", + methodName: "AuthorizeGoogleDriveIntegrationAsync", + pathTemplate: "\"/v1/integrations/google_drive/oauth/authorize\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Redirect to Google OAuth + if ((int)__response.StatusCode == 307) + { + string? __content_307 = null; + global::System.Exception? __exception_307 = null; + string? __value_307 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_307 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); + } + else + { + __content_307 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_307 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_307 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_307, + responseBody: __content_307, + responseObject: __value_307, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeSlackIntegration.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeSlackIntegration.g.cs new file mode 100644 index 0000000..f6d8876 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.AuthorizeSlackIntegration.g.cs @@ -0,0 +1,525 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_AuthorizeSlackIntegrationServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_AuthorizeSlackIntegrationSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_AuthorizeSlackIntegrationSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_AuthorizeSlackIntegrationSecurityRequirement0, + }; + partial void PrepareAuthorizeSlackIntegrationArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? storeName, + ref bool? autoSyncAll); + partial void PrepareAuthorizeSlackIntegrationRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? storeName, + bool? autoSyncAll); + partial void ProcessAuthorizeSlackIntegrationResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// Authorize Slack integration
+ /// Start Slack OAuth for the current organization. + ///
+ /// + /// Optional ingestion store name + /// + /// + /// Automatically sync all current and future channels
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task AuthorizeSlackIntegrationAsync( + string? storeName = default, + bool? autoSyncAll = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + await AuthorizeSlackIntegrationAsResponseAsync( + storeName: storeName, + autoSyncAll: autoSyncAll, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + /// + /// Authorize Slack integration
+ /// Start Slack OAuth for the current organization. + ///
+ /// + /// Optional ingestion store name + /// + /// + /// Automatically sync all current and future channels
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task AuthorizeSlackIntegrationAsResponseAsync( + string? storeName = default, + bool? autoSyncAll = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareAuthorizeSlackIntegrationArguments( + httpClient: HttpClient, + storeName: ref storeName, + autoSyncAll: ref autoSyncAll); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_AuthorizeSlackIntegrationSecurityRequirements, + operationName: "AuthorizeSlackIntegrationAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/slack/oauth/authorize", + baseUri: ResolveBaseUri( + servers: s_AuthorizeSlackIntegrationServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + __pathBuilder + .AddOptionalParameter("store_name", storeName) + .AddOptionalParameter("auto_sync_all", autoSyncAll?.ToString().ToLowerInvariant()) + ; + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareAuthorizeSlackIntegrationRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + storeName: storeName, + autoSyncAll: autoSyncAll); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AuthorizeSlackIntegration", + methodName: "AuthorizeSlackIntegrationAsync", + pathTemplate: "\"/v1/integrations/slack/oauth/authorize\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AuthorizeSlackIntegration", + methodName: "AuthorizeSlackIntegrationAsync", + pathTemplate: "\"/v1/integrations/slack/oauth/authorize\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AuthorizeSlackIntegration", + methodName: "AuthorizeSlackIntegrationAsync", + pathTemplate: "\"/v1/integrations/slack/oauth/authorize\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessAuthorizeSlackIntegrationResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AuthorizeSlackIntegration", + methodName: "AuthorizeSlackIntegrationAsync", + pathTemplate: "\"/v1/integrations/slack/oauth/authorize\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AuthorizeSlackIntegration", + methodName: "AuthorizeSlackIntegrationAsync", + pathTemplate: "\"/v1/integrations/slack/oauth/authorize\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Redirect to Slack OAuth + if ((int)__response.StatusCode == 307) + { + string? __content_307 = null; + global::System.Exception? __exception_307 = null; + string? __value_307 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_307 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); + } + else + { + __content_307 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_307 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_307 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_307, + responseBody: __content_307, + responseObject: __value_307, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ConnectSlackManual.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ConnectSlackManual.g.cs new file mode 100644 index 0000000..5b9d771 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ConnectSlackManual.g.cs @@ -0,0 +1,540 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_ConnectSlackManualServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_ConnectSlackManualSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_ConnectSlackManualSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_ConnectSlackManualSecurityRequirement0, + }; + partial void PrepareConnectSlackManualArguments( + global::System.Net.Http.HttpClient httpClient, + global::Mixedbread.SlackManualConnectBody request); + partial void PrepareConnectSlackManualRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Mixedbread.SlackManualConnectBody request); + partial void ProcessConnectSlackManualResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessConnectSlackManualResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Connect Slack with a customer-provided app
+ /// Connect a Slack workspace using a customer-created app's bot token and signing secret. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ConnectSlackManualAsync( + + global::Mixedbread.SlackManualConnectBody request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ConnectSlackManualAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Connect Slack with a customer-provided app
+ /// Connect a Slack workspace using a customer-created app's bot token and signing secret. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ConnectSlackManualAsResponseAsync( + + global::Mixedbread.SlackManualConnectBody request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareConnectSlackManualArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ConnectSlackManualSecurityRequirements, + operationName: "ConnectSlackManualAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/slack/connect", + baseUri: ResolveBaseUri( + servers: s_ConnectSlackManualServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareConnectSlackManualRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ConnectSlackManual", + methodName: "ConnectSlackManualAsync", + pathTemplate: "\"/v1/integrations/slack/connect\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ConnectSlackManual", + methodName: "ConnectSlackManualAsync", + pathTemplate: "\"/v1/integrations/slack/connect\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ConnectSlackManual", + methodName: "ConnectSlackManualAsync", + pathTemplate: "\"/v1/integrations/slack/connect\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessConnectSlackManualResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ConnectSlackManual", + methodName: "ConnectSlackManualAsync", + pathTemplate: "\"/v1/integrations/slack/connect\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ConnectSlackManual", + methodName: "ConnectSlackManualAsync", + pathTemplate: "\"/v1/integrations/slack/connect\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessConnectSlackManualResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.IntegrationInstallationResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.IntegrationInstallationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Connect Slack with a customer-provided app
+ /// Connect a Slack workspace using a customer-created app's bot token and signing secret. + ///
+ /// + /// Slack bot user OAuth token (xoxb-…) + /// + /// + /// Slack app signing secret + /// + /// + /// Optional ingestion store name + /// + /// + /// Automatically sync all current and future channels
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ConnectSlackManualAsync( + string botToken, + string signingSecret, + string? storeName = default, + bool? autoSyncAll = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Mixedbread.SlackManualConnectBody + { + BotToken = botToken, + SigningSecret = signingSecret, + StoreName = storeName, + AutoSyncAll = autoSyncAll, + }; + + return await ConnectSlackManualAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectGoogleDriveInstallation.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectGoogleDriveInstallation.g.cs new file mode 100644 index 0000000..ffd3a5f --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectGoogleDriveInstallation.g.cs @@ -0,0 +1,492 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_DisconnectGoogleDriveInstallationServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_DisconnectGoogleDriveInstallationSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_DisconnectGoogleDriveInstallationSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_DisconnectGoogleDriveInstallationSecurityRequirement0, + }; + partial void PrepareDisconnectGoogleDriveInstallationArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid installationId); + partial void PrepareDisconnectGoogleDriveInstallationRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid installationId); + partial void ProcessDisconnectGoogleDriveInstallationResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessDisconnectGoogleDriveInstallationResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Disconnect Google Drive
+ /// Disconnect a specific Google Drive installation from the current organization. + ///
+ /// + /// Google Drive installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task DisconnectGoogleDriveInstallationAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await DisconnectGoogleDriveInstallationAsResponseAsync( + installationId: installationId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Disconnect Google Drive
+ /// Disconnect a specific Google Drive installation from the current organization. + ///
+ /// + /// Google Drive installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> DisconnectGoogleDriveInstallationAsResponseAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDisconnectGoogleDriveInstallationArguments( + httpClient: HttpClient, + installationId: ref installationId); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DisconnectGoogleDriveInstallationSecurityRequirements, + operationName: "DisconnectGoogleDriveInstallationAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: $"/v1/integrations/google_drive/installations/{installationId}", + baseUri: ResolveBaseUri( + servers: s_DisconnectGoogleDriveInstallationServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Delete, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDisconnectGoogleDriveInstallationRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + installationId: installationId!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DisconnectGoogleDriveInstallation", + methodName: "DisconnectGoogleDriveInstallationAsync", + pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DisconnectGoogleDriveInstallation", + methodName: "DisconnectGoogleDriveInstallationAsync", + pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DisconnectGoogleDriveInstallation", + methodName: "DisconnectGoogleDriveInstallationAsync", + pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDisconnectGoogleDriveInstallationResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DisconnectGoogleDriveInstallation", + methodName: "DisconnectGoogleDriveInstallationAsync", + pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DisconnectGoogleDriveInstallation", + methodName: "DisconnectGoogleDriveInstallationAsync", + pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDisconnectGoogleDriveInstallationResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.IntegrationInstallationResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.IntegrationInstallationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectSlackInstallation.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectSlackInstallation.g.cs new file mode 100644 index 0000000..30e9616 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.DisconnectSlackInstallation.g.cs @@ -0,0 +1,492 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_DisconnectSlackInstallationServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_DisconnectSlackInstallationSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_DisconnectSlackInstallationSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_DisconnectSlackInstallationSecurityRequirement0, + }; + partial void PrepareDisconnectSlackInstallationArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid installationId); + partial void PrepareDisconnectSlackInstallationRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid installationId); + partial void ProcessDisconnectSlackInstallationResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessDisconnectSlackInstallationResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Disconnect Slack
+ /// Disconnect a specific Slack installation from the current organization. + ///
+ /// + /// Slack installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task DisconnectSlackInstallationAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await DisconnectSlackInstallationAsResponseAsync( + installationId: installationId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Disconnect Slack
+ /// Disconnect a specific Slack installation from the current organization. + ///
+ /// + /// Slack installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> DisconnectSlackInstallationAsResponseAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDisconnectSlackInstallationArguments( + httpClient: HttpClient, + installationId: ref installationId); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DisconnectSlackInstallationSecurityRequirements, + operationName: "DisconnectSlackInstallationAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: $"/v1/integrations/slack/installations/{installationId}", + baseUri: ResolveBaseUri( + servers: s_DisconnectSlackInstallationServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Delete, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDisconnectSlackInstallationRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + installationId: installationId!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DisconnectSlackInstallation", + methodName: "DisconnectSlackInstallationAsync", + pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DisconnectSlackInstallation", + methodName: "DisconnectSlackInstallationAsync", + pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DisconnectSlackInstallation", + methodName: "DisconnectSlackInstallationAsync", + pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDisconnectSlackInstallationResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DisconnectSlackInstallation", + methodName: "DisconnectSlackInstallationAsync", + pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DisconnectSlackInstallation", + methodName: "DisconnectSlackInstallationAsync", + pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDisconnectSlackInstallationResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.IntegrationInstallationResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.IntegrationInstallationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetGoogleDriveFolderSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetGoogleDriveFolderSelection.g.cs new file mode 100644 index 0000000..a209962 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetGoogleDriveFolderSelection.g.cs @@ -0,0 +1,495 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_GetGoogleDriveFolderSelectionServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_GetGoogleDriveFolderSelectionSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_GetGoogleDriveFolderSelectionSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_GetGoogleDriveFolderSelectionSecurityRequirement0, + }; + partial void PrepareGetGoogleDriveFolderSelectionArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid installationId); + partial void PrepareGetGoogleDriveFolderSelectionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid installationId); + partial void ProcessGetGoogleDriveFolderSelectionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetGoogleDriveFolderSelectionResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List Google Drive folders for store ingestion
+ /// List Google Drive folders and whether each is selected for store ingestion. + ///
+ /// + /// Google Drive installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetGoogleDriveFolderSelectionAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetGoogleDriveFolderSelectionAsResponseAsync( + installationId: installationId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List Google Drive folders for store ingestion
+ /// List Google Drive folders and whether each is selected for store ingestion. + ///
+ /// + /// Google Drive installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetGoogleDriveFolderSelectionAsResponseAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetGoogleDriveFolderSelectionArguments( + httpClient: HttpClient, + installationId: ref installationId); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetGoogleDriveFolderSelectionSecurityRequirements, + operationName: "GetGoogleDriveFolderSelectionAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/google_drive/folders", + baseUri: ResolveBaseUri( + servers: s_GetGoogleDriveFolderSelectionServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + __pathBuilder + .AddRequiredParameter("installation_id", installationId.ToString()!) + ; + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetGoogleDriveFolderSelectionRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + installationId: installationId!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetGoogleDriveFolderSelection", + methodName: "GetGoogleDriveFolderSelectionAsync", + pathTemplate: "\"/v1/integrations/google_drive/folders\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetGoogleDriveFolderSelection", + methodName: "GetGoogleDriveFolderSelectionAsync", + pathTemplate: "\"/v1/integrations/google_drive/folders\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetGoogleDriveFolderSelection", + methodName: "GetGoogleDriveFolderSelectionAsync", + pathTemplate: "\"/v1/integrations/google_drive/folders\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetGoogleDriveFolderSelectionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetGoogleDriveFolderSelection", + methodName: "GetGoogleDriveFolderSelectionAsync", + pathTemplate: "\"/v1/integrations/google_drive/folders\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetGoogleDriveFolderSelection", + methodName: "GetGoogleDriveFolderSelectionAsync", + pathTemplate: "\"/v1/integrations/google_drive/folders\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetGoogleDriveFolderSelectionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.GoogleDriveFolderSelectionResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.GoogleDriveFolderSelectionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackChannelSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackChannelSelection.g.cs new file mode 100644 index 0000000..bd2deb6 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackChannelSelection.g.cs @@ -0,0 +1,495 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_GetSlackChannelSelectionServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_GetSlackChannelSelectionSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_GetSlackChannelSelectionSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_GetSlackChannelSelectionSecurityRequirement0, + }; + partial void PrepareGetSlackChannelSelectionArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid installationId); + partial void PrepareGetSlackChannelSelectionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid installationId); + partial void ProcessGetSlackChannelSelectionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetSlackChannelSelectionResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List Slack channels for store ingestion
+ /// List public Slack channels and whether each channel is selected for store ingestion. + ///
+ /// + /// Slack installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetSlackChannelSelectionAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetSlackChannelSelectionAsResponseAsync( + installationId: installationId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List Slack channels for store ingestion
+ /// List public Slack channels and whether each channel is selected for store ingestion. + ///
+ /// + /// Slack installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetSlackChannelSelectionAsResponseAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetSlackChannelSelectionArguments( + httpClient: HttpClient, + installationId: ref installationId); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSlackChannelSelectionSecurityRequirements, + operationName: "GetSlackChannelSelectionAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/slack/channels", + baseUri: ResolveBaseUri( + servers: s_GetSlackChannelSelectionServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + __pathBuilder + .AddRequiredParameter("installation_id", installationId.ToString()!) + ; + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetSlackChannelSelectionRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + installationId: installationId!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSlackChannelSelection", + methodName: "GetSlackChannelSelectionAsync", + pathTemplate: "\"/v1/integrations/slack/channels\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSlackChannelSelection", + methodName: "GetSlackChannelSelectionAsync", + pathTemplate: "\"/v1/integrations/slack/channels\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSlackChannelSelection", + methodName: "GetSlackChannelSelectionAsync", + pathTemplate: "\"/v1/integrations/slack/channels\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetSlackChannelSelectionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSlackChannelSelection", + methodName: "GetSlackChannelSelectionAsync", + pathTemplate: "\"/v1/integrations/slack/channels\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSlackChannelSelection", + methodName: "GetSlackChannelSelectionAsync", + pathTemplate: "\"/v1/integrations/slack/channels\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetSlackChannelSelectionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.SlackChannelSelectionResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.SlackChannelSelectionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackManifest.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackManifest.g.cs new file mode 100644 index 0000000..b6890f7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GetSlackManifest.g.cs @@ -0,0 +1,442 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_GetSlackManifestServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_GetSlackManifestSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_GetSlackManifestSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_GetSlackManifestSecurityRequirement0, + }; + partial void PrepareGetSlackManifestArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareGetSlackManifestRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessGetSlackManifestResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetSlackManifestResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Slack app manifest
+ /// Return the Slack app manifest pre-filled with this deployment's public URLs. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetSlackManifestAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetSlackManifestAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get Slack app manifest
+ /// Return the Slack app manifest pre-filled with this deployment's public URLs. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetSlackManifestAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetSlackManifestArguments( + httpClient: HttpClient); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSlackManifestSecurityRequirements, + operationName: "GetSlackManifestAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/slack/manifest", + baseUri: ResolveBaseUri( + servers: s_GetSlackManifestServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetSlackManifestRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSlackManifest", + methodName: "GetSlackManifestAsync", + pathTemplate: "\"/v1/integrations/slack/manifest\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSlackManifest", + methodName: "GetSlackManifestAsync", + pathTemplate: "\"/v1/integrations/slack/manifest\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSlackManifest", + methodName: "GetSlackManifestAsync", + pathTemplate: "\"/v1/integrations/slack/manifest\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetSlackManifestResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSlackManifest", + methodName: "GetSlackManifestAsync", + pathTemplate: "\"/v1/integrations/slack/manifest\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSlackManifest", + methodName: "GetSlackManifestAsync", + pathTemplate: "\"/v1/integrations/slack/manifest\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetSlackManifestResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.SlackManifestResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.SlackManifestResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveEvents.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveEvents.g.cs new file mode 100644 index 0000000..8a4e6ec --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveEvents.g.cs @@ -0,0 +1,438 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_GoogleDriveEventsServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_GoogleDriveEventsSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_GoogleDriveEventsSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_GoogleDriveEventsSecurityRequirement0, + }; + partial void PrepareGoogleDriveEventsArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareGoogleDriveEventsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessGoogleDriveEventsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGoogleDriveEventsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Google Drive push webhook
+ /// Receive Google Drive push notifications and enqueue an incremental sync. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GoogleDriveEventsAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GoogleDriveEventsAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Google Drive push webhook
+ /// Receive Google Drive push notifications and enqueue an incremental sync. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GoogleDriveEventsAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGoogleDriveEventsArguments( + httpClient: HttpClient); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GoogleDriveEventsSecurityRequirements, + operationName: "GoogleDriveEventsAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/google_drive/events", + baseUri: ResolveBaseUri( + servers: s_GoogleDriveEventsServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGoogleDriveEventsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GoogleDriveEvents", + methodName: "GoogleDriveEventsAsync", + pathTemplate: "\"/v1/integrations/google_drive/events\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GoogleDriveEvents", + methodName: "GoogleDriveEventsAsync", + pathTemplate: "\"/v1/integrations/google_drive/events\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GoogleDriveEvents", + methodName: "GoogleDriveEventsAsync", + pathTemplate: "\"/v1/integrations/google_drive/events\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGoogleDriveEventsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GoogleDriveEvents", + methodName: "GoogleDriveEventsAsync", + pathTemplate: "\"/v1/integrations/google_drive/events\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GoogleDriveEvents", + methodName: "GoogleDriveEventsAsync", + pathTemplate: "\"/v1/integrations/google_drive/events\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGoogleDriveEventsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveOauthCallback.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveOauthCallback.g.cs new file mode 100644 index 0000000..6e0c12c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.GoogleDriveOauthCallback.g.cs @@ -0,0 +1,537 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_GoogleDriveOauthCallbackServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_GoogleDriveOauthCallbackSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_GoogleDriveOauthCallbackSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_GoogleDriveOauthCallbackSecurityRequirement0, + }; + partial void PrepareGoogleDriveOauthCallbackArguments( + global::System.Net.Http.HttpClient httpClient, + ref string state, + ref string? code, + ref string? error); + partial void PrepareGoogleDriveOauthCallbackRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string state, + string? code, + string? error); + partial void ProcessGoogleDriveOauthCallbackResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// Google Drive OAuth callback
+ /// Complete Google Drive OAuth and persist the installation. + ///
+ /// + /// Google OAuth state + /// + /// + /// Google OAuth authorization code + /// + /// + /// Google OAuth error + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GoogleDriveOauthCallbackAsync( + string state, + string? code = default, + string? error = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + await GoogleDriveOauthCallbackAsResponseAsync( + state: state, + code: code, + error: error, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + /// + /// Google Drive OAuth callback
+ /// Complete Google Drive OAuth and persist the installation. + ///
+ /// + /// Google OAuth state + /// + /// + /// Google OAuth authorization code + /// + /// + /// Google OAuth error + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GoogleDriveOauthCallbackAsResponseAsync( + string state, + string? code = default, + string? error = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGoogleDriveOauthCallbackArguments( + httpClient: HttpClient, + state: ref state, + code: ref code, + error: ref error); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GoogleDriveOauthCallbackSecurityRequirements, + operationName: "GoogleDriveOauthCallbackAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/google_drive/oauth/callback", + baseUri: ResolveBaseUri( + servers: s_GoogleDriveOauthCallbackServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + __pathBuilder + .AddRequiredParameter("state", state) + .AddOptionalParameter("code", code) + .AddOptionalParameter("error", error) + ; + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGoogleDriveOauthCallbackRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + state: state!, + code: code, + error: error); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GoogleDriveOauthCallback", + methodName: "GoogleDriveOauthCallbackAsync", + pathTemplate: "\"/v1/integrations/google_drive/oauth/callback\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GoogleDriveOauthCallback", + methodName: "GoogleDriveOauthCallbackAsync", + pathTemplate: "\"/v1/integrations/google_drive/oauth/callback\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GoogleDriveOauthCallback", + methodName: "GoogleDriveOauthCallbackAsync", + pathTemplate: "\"/v1/integrations/google_drive/oauth/callback\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGoogleDriveOauthCallbackResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GoogleDriveOauthCallback", + methodName: "GoogleDriveOauthCallbackAsync", + pathTemplate: "\"/v1/integrations/google_drive/oauth/callback\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GoogleDriveOauthCallback", + methodName: "GoogleDriveOauthCallbackAsync", + pathTemplate: "\"/v1/integrations/google_drive/oauth/callback\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Redirect after Google Drive installation + if ((int)__response.StatusCode == 307) + { + string? __content_307 = null; + global::System.Exception? __exception_307 = null; + string? __value_307 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_307 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); + } + else + { + __content_307 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_307 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_307 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_307, + responseBody: __content_307, + responseObject: __value_307, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackCommand.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackCommand.g.cs new file mode 100644 index 0000000..3885ac6 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackCommand.g.cs @@ -0,0 +1,438 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_HandleSlackCommandServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_HandleSlackCommandSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_HandleSlackCommandSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_HandleSlackCommandSecurityRequirement0, + }; + partial void PrepareHandleSlackCommandArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareHandleSlackCommandRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessHandleSlackCommandResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessHandleSlackCommandResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Slack slash command webhook
+ /// Receive signed Slack slash command requests. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task HandleSlackCommandAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await HandleSlackCommandAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Slack slash command webhook
+ /// Receive signed Slack slash command requests. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> HandleSlackCommandAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareHandleSlackCommandArguments( + httpClient: HttpClient); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_HandleSlackCommandSecurityRequirements, + operationName: "HandleSlackCommandAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/slack/commands", + baseUri: ResolveBaseUri( + servers: s_HandleSlackCommandServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareHandleSlackCommandRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "HandleSlackCommand", + methodName: "HandleSlackCommandAsync", + pathTemplate: "\"/v1/integrations/slack/commands\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "HandleSlackCommand", + methodName: "HandleSlackCommandAsync", + pathTemplate: "\"/v1/integrations/slack/commands\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "HandleSlackCommand", + methodName: "HandleSlackCommandAsync", + pathTemplate: "\"/v1/integrations/slack/commands\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessHandleSlackCommandResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "HandleSlackCommand", + methodName: "HandleSlackCommandAsync", + pathTemplate: "\"/v1/integrations/slack/commands\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "HandleSlackCommand", + methodName: "HandleSlackCommandAsync", + pathTemplate: "\"/v1/integrations/slack/commands\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessHandleSlackCommandResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackEvent.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackEvent.g.cs new file mode 100644 index 0000000..6e65756 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.HandleSlackEvent.g.cs @@ -0,0 +1,438 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_HandleSlackEventServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_HandleSlackEventSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_HandleSlackEventSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_HandleSlackEventSecurityRequirement0, + }; + partial void PrepareHandleSlackEventArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareHandleSlackEventRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessHandleSlackEventResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessHandleSlackEventResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Slack events webhook
+ /// Receive signed Slack Events API requests. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task HandleSlackEventAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await HandleSlackEventAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Slack events webhook
+ /// Receive signed Slack Events API requests. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> HandleSlackEventAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareHandleSlackEventArguments( + httpClient: HttpClient); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_HandleSlackEventSecurityRequirements, + operationName: "HandleSlackEventAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/slack/events", + baseUri: ResolveBaseUri( + servers: s_HandleSlackEventServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareHandleSlackEventRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "HandleSlackEvent", + methodName: "HandleSlackEventAsync", + pathTemplate: "\"/v1/integrations/slack/events\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "HandleSlackEvent", + methodName: "HandleSlackEventAsync", + pathTemplate: "\"/v1/integrations/slack/events\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "HandleSlackEvent", + methodName: "HandleSlackEventAsync", + pathTemplate: "\"/v1/integrations/slack/events\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessHandleSlackEventResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "HandleSlackEvent", + methodName: "HandleSlackEventAsync", + pathTemplate: "\"/v1/integrations/slack/events\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "HandleSlackEvent", + methodName: "HandleSlackEventAsync", + pathTemplate: "\"/v1/integrations/slack/events\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessHandleSlackEventResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListDataSourceInstallations.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListDataSourceInstallations.g.cs new file mode 100644 index 0000000..97b596d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListDataSourceInstallations.g.cs @@ -0,0 +1,442 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_ListDataSourceInstallationsServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListDataSourceInstallationsSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_ListDataSourceInstallationsSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_ListDataSourceInstallationsSecurityRequirement0, + }; + partial void PrepareListDataSourceInstallationsArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareListDataSourceInstallationsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessListDataSourceInstallationsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListDataSourceInstallationsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List connected data sources
+ /// List every connected data source across providers for the current organization. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListDataSourceInstallationsAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListDataSourceInstallationsAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List connected data sources
+ /// List every connected data source across providers for the current organization. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListDataSourceInstallationsAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListDataSourceInstallationsArguments( + httpClient: HttpClient); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListDataSourceInstallationsSecurityRequirements, + operationName: "ListDataSourceInstallationsAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/data-sources", + baseUri: ResolveBaseUri( + servers: s_ListDataSourceInstallationsServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListDataSourceInstallationsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListDataSourceInstallations", + methodName: "ListDataSourceInstallationsAsync", + pathTemplate: "\"/v1/integrations/data-sources\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListDataSourceInstallations", + methodName: "ListDataSourceInstallationsAsync", + pathTemplate: "\"/v1/integrations/data-sources\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListDataSourceInstallations", + methodName: "ListDataSourceInstallationsAsync", + pathTemplate: "\"/v1/integrations/data-sources\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListDataSourceInstallationsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListDataSourceInstallations", + methodName: "ListDataSourceInstallationsAsync", + pathTemplate: "\"/v1/integrations/data-sources\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListDataSourceInstallations", + methodName: "ListDataSourceInstallationsAsync", + pathTemplate: "\"/v1/integrations/data-sources\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListDataSourceInstallationsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.DataSourceInstallationListResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.DataSourceInstallationListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListGoogleDriveInstallations.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListGoogleDriveInstallations.g.cs new file mode 100644 index 0000000..697ca2a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListGoogleDriveInstallations.g.cs @@ -0,0 +1,442 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_ListGoogleDriveInstallationsServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListGoogleDriveInstallationsSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_ListGoogleDriveInstallationsSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_ListGoogleDriveInstallationsSecurityRequirement0, + }; + partial void PrepareListGoogleDriveInstallationsArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareListGoogleDriveInstallationsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessListGoogleDriveInstallationsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListGoogleDriveInstallationsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List connected Google Drive accounts
+ /// List connected Google Drive accounts with their selected folder counts. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListGoogleDriveInstallationsAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListGoogleDriveInstallationsAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List connected Google Drive accounts
+ /// List connected Google Drive accounts with their selected folder counts. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListGoogleDriveInstallationsAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListGoogleDriveInstallationsArguments( + httpClient: HttpClient); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListGoogleDriveInstallationsSecurityRequirements, + operationName: "ListGoogleDriveInstallationsAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/google_drive/installations", + baseUri: ResolveBaseUri( + servers: s_ListGoogleDriveInstallationsServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListGoogleDriveInstallationsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListGoogleDriveInstallations", + methodName: "ListGoogleDriveInstallationsAsync", + pathTemplate: "\"/v1/integrations/google_drive/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListGoogleDriveInstallations", + methodName: "ListGoogleDriveInstallationsAsync", + pathTemplate: "\"/v1/integrations/google_drive/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListGoogleDriveInstallations", + methodName: "ListGoogleDriveInstallationsAsync", + pathTemplate: "\"/v1/integrations/google_drive/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListGoogleDriveInstallationsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListGoogleDriveInstallations", + methodName: "ListGoogleDriveInstallationsAsync", + pathTemplate: "\"/v1/integrations/google_drive/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListGoogleDriveInstallations", + methodName: "ListGoogleDriveInstallationsAsync", + pathTemplate: "\"/v1/integrations/google_drive/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListGoogleDriveInstallationsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.GoogleDriveInstallationOverviewListResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.GoogleDriveInstallationOverviewListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationInstallations.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationInstallations.g.cs new file mode 100644 index 0000000..f034d8a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationInstallations.g.cs @@ -0,0 +1,541 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_ListIntegrationInstallationsServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListIntegrationInstallationsSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_ListIntegrationInstallationsSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_ListIntegrationInstallationsSecurityRequirement0, + }; + partial void PrepareListIntegrationInstallationsArguments( + global::System.Net.Http.HttpClient httpClient, + ref int? limit, + ref string? after, + ref string? before, + ref bool? includeTotal); + partial void PrepareListIntegrationInstallationsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int? limit, + string? after, + string? before, + bool? includeTotal); + partial void ProcessListIntegrationInstallationsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListIntegrationInstallationsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List integration installations
+ /// List installed provider integrations for the current organization. + ///
+ /// + /// Maximum number of items to return per page (1-100)
+ /// Default Value: 20 + /// + /// + /// Cursor for forward pagination - get items after this position. Use last_cursor from previous response. + /// + /// + /// Cursor for backward pagination - get items before this position. Use first_cursor from previous response. + /// + /// + /// Whether to include total count in response (expensive operation)
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListIntegrationInstallationsAsync( + int? limit = default, + string? after = default, + string? before = default, + bool? includeTotal = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListIntegrationInstallationsAsResponseAsync( + limit: limit, + after: after, + before: before, + includeTotal: includeTotal, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List integration installations
+ /// List installed provider integrations for the current organization. + ///
+ /// + /// Maximum number of items to return per page (1-100)
+ /// Default Value: 20 + /// + /// + /// Cursor for forward pagination - get items after this position. Use last_cursor from previous response. + /// + /// + /// Cursor for backward pagination - get items before this position. Use first_cursor from previous response. + /// + /// + /// Whether to include total count in response (expensive operation)
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListIntegrationInstallationsAsResponseAsync( + int? limit = default, + string? after = default, + string? before = default, + bool? includeTotal = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListIntegrationInstallationsArguments( + httpClient: HttpClient, + limit: ref limit, + after: ref after, + before: ref before, + includeTotal: ref includeTotal); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListIntegrationInstallationsSecurityRequirements, + operationName: "ListIntegrationInstallationsAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/installations", + baseUri: ResolveBaseUri( + servers: s_ListIntegrationInstallationsServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + __pathBuilder + .AddOptionalParameter("limit", limit?.ToString()) + .AddOptionalParameter("after", after) + .AddOptionalParameter("before", before) + .AddOptionalParameter("include_total", includeTotal?.ToString().ToLowerInvariant()) + ; + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListIntegrationInstallationsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + limit: limit, + after: after, + before: before, + includeTotal: includeTotal); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListIntegrationInstallations", + methodName: "ListIntegrationInstallationsAsync", + pathTemplate: "\"/v1/integrations/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListIntegrationInstallations", + methodName: "ListIntegrationInstallationsAsync", + pathTemplate: "\"/v1/integrations/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListIntegrationInstallations", + methodName: "ListIntegrationInstallationsAsync", + pathTemplate: "\"/v1/integrations/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListIntegrationInstallationsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListIntegrationInstallations", + methodName: "ListIntegrationInstallationsAsync", + pathTemplate: "\"/v1/integrations/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListIntegrationInstallations", + methodName: "ListIntegrationInstallationsAsync", + pathTemplate: "\"/v1/integrations/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListIntegrationInstallationsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.IntegrationInstallationListResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.IntegrationInstallationListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationProviders.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationProviders.g.cs new file mode 100644 index 0000000..7c925ec --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListIntegrationProviders.g.cs @@ -0,0 +1,442 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_ListIntegrationProvidersServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListIntegrationProvidersSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_ListIntegrationProvidersSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_ListIntegrationProvidersSecurityRequirement0, + }; + partial void PrepareListIntegrationProvidersArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareListIntegrationProvidersRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessListIntegrationProvidersResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListIntegrationProvidersResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List integration providers
+ /// List supported integration provider manifests. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListIntegrationProvidersAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListIntegrationProvidersAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List integration providers
+ /// List supported integration provider manifests. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListIntegrationProvidersAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListIntegrationProvidersArguments( + httpClient: HttpClient); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListIntegrationProvidersSecurityRequirements, + operationName: "ListIntegrationProvidersAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/providers", + baseUri: ResolveBaseUri( + servers: s_ListIntegrationProvidersServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListIntegrationProvidersRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListIntegrationProviders", + methodName: "ListIntegrationProvidersAsync", + pathTemplate: "\"/v1/integrations/providers\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListIntegrationProviders", + methodName: "ListIntegrationProvidersAsync", + pathTemplate: "\"/v1/integrations/providers\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListIntegrationProviders", + methodName: "ListIntegrationProvidersAsync", + pathTemplate: "\"/v1/integrations/providers\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListIntegrationProvidersResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListIntegrationProviders", + methodName: "ListIntegrationProvidersAsync", + pathTemplate: "\"/v1/integrations/providers\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListIntegrationProviders", + methodName: "ListIntegrationProvidersAsync", + pathTemplate: "\"/v1/integrations/providers\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListIntegrationProvidersResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.IntegrationProviderListResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.IntegrationProviderListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListSlackInstallations.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListSlackInstallations.g.cs new file mode 100644 index 0000000..a1a2362 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.ListSlackInstallations.g.cs @@ -0,0 +1,442 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_ListSlackInstallationsServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListSlackInstallationsSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_ListSlackInstallationsSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_ListSlackInstallationsSecurityRequirement0, + }; + partial void PrepareListSlackInstallationsArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareListSlackInstallationsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessListSlackInstallationsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListSlackInstallationsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List connected Slack workspaces
+ /// List connected Slack workspaces with their selected ingestion channel counts. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListSlackInstallationsAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListSlackInstallationsAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List connected Slack workspaces
+ /// List connected Slack workspaces with their selected ingestion channel counts. + ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListSlackInstallationsAsResponseAsync( + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListSlackInstallationsArguments( + httpClient: HttpClient); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSlackInstallationsSecurityRequirements, + operationName: "ListSlackInstallationsAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/slack/installations", + baseUri: ResolveBaseUri( + servers: s_ListSlackInstallationsServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListSlackInstallationsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListSlackInstallations", + methodName: "ListSlackInstallationsAsync", + pathTemplate: "\"/v1/integrations/slack/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListSlackInstallations", + methodName: "ListSlackInstallationsAsync", + pathTemplate: "\"/v1/integrations/slack/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListSlackInstallations", + methodName: "ListSlackInstallationsAsync", + pathTemplate: "\"/v1/integrations/slack/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListSlackInstallationsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListSlackInstallations", + methodName: "ListSlackInstallationsAsync", + pathTemplate: "\"/v1/integrations/slack/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListSlackInstallations", + methodName: "ListSlackInstallationsAsync", + pathTemplate: "\"/v1/integrations/slack/installations\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListSlackInstallationsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.SlackInstallationOverviewListResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.SlackInstallationOverviewListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SlackOauthCallback.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SlackOauthCallback.g.cs new file mode 100644 index 0000000..0969588 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SlackOauthCallback.g.cs @@ -0,0 +1,537 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_SlackOauthCallbackServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_SlackOauthCallbackSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_SlackOauthCallbackSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_SlackOauthCallbackSecurityRequirement0, + }; + partial void PrepareSlackOauthCallbackArguments( + global::System.Net.Http.HttpClient httpClient, + ref string state, + ref string? code, + ref string? error); + partial void PrepareSlackOauthCallbackRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string state, + string? code, + string? error); + partial void ProcessSlackOauthCallbackResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// Slack OAuth callback
+ /// Complete Slack OAuth and persist the workspace installation. + ///
+ /// + /// Slack OAuth state + /// + /// + /// Slack OAuth authorization code + /// + /// + /// Slack OAuth error + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task SlackOauthCallbackAsync( + string state, + string? code = default, + string? error = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + await SlackOauthCallbackAsResponseAsync( + state: state, + code: code, + error: error, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + /// + /// Slack OAuth callback
+ /// Complete Slack OAuth and persist the workspace installation. + ///
+ /// + /// Slack OAuth state + /// + /// + /// Slack OAuth authorization code + /// + /// + /// Slack OAuth error + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task SlackOauthCallbackAsResponseAsync( + string state, + string? code = default, + string? error = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareSlackOauthCallbackArguments( + httpClient: HttpClient, + state: ref state, + code: ref code, + error: ref error); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SlackOauthCallbackSecurityRequirements, + operationName: "SlackOauthCallbackAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/slack/oauth/callback", + baseUri: ResolveBaseUri( + servers: s_SlackOauthCallbackServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + __pathBuilder + .AddRequiredParameter("state", state) + .AddOptionalParameter("code", code) + .AddOptionalParameter("error", error) + ; + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareSlackOauthCallbackRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + state: state!, + code: code, + error: error); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SlackOauthCallback", + methodName: "SlackOauthCallbackAsync", + pathTemplate: "\"/v1/integrations/slack/oauth/callback\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SlackOauthCallback", + methodName: "SlackOauthCallbackAsync", + pathTemplate: "\"/v1/integrations/slack/oauth/callback\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SlackOauthCallback", + methodName: "SlackOauthCallbackAsync", + pathTemplate: "\"/v1/integrations/slack/oauth/callback\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessSlackOauthCallbackResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SlackOauthCallback", + methodName: "SlackOauthCallbackAsync", + pathTemplate: "\"/v1/integrations/slack/oauth/callback\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SlackOauthCallback", + methodName: "SlackOauthCallbackAsync", + pathTemplate: "\"/v1/integrations/slack/oauth/callback\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Redirect after Slack installation + if ((int)__response.StatusCode == 307) + { + string? __content_307 = null; + global::System.Exception? __exception_307 = null; + string? __value_307 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_307 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); + } + else + { + __content_307 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_307 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_307 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_307, + responseBody: __content_307, + responseObject: __value_307, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncGoogleDrive.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncGoogleDrive.g.cs new file mode 100644 index 0000000..1adb86c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncGoogleDrive.g.cs @@ -0,0 +1,524 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_SyncGoogleDriveServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_SyncGoogleDriveSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_SyncGoogleDriveSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_SyncGoogleDriveSecurityRequirement0, + }; + partial void PrepareSyncGoogleDriveArguments( + global::System.Net.Http.HttpClient httpClient, + global::Mixedbread.GoogleDriveSyncParams request); + partial void PrepareSyncGoogleDriveRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Mixedbread.GoogleDriveSyncParams request); + partial void ProcessSyncGoogleDriveResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessSyncGoogleDriveResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Sync a Google Drive connector
+ /// Queue an incremental Google Drive change sync. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task SyncGoogleDriveAsync( + + global::Mixedbread.GoogleDriveSyncParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await SyncGoogleDriveAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Sync a Google Drive connector
+ /// Queue an incremental Google Drive change sync. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> SyncGoogleDriveAsResponseAsync( + + global::Mixedbread.GoogleDriveSyncParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareSyncGoogleDriveArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SyncGoogleDriveSecurityRequirements, + operationName: "SyncGoogleDriveAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/google_drive/sync", + baseUri: ResolveBaseUri( + servers: s_SyncGoogleDriveServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareSyncGoogleDriveRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SyncGoogleDrive", + methodName: "SyncGoogleDriveAsync", + pathTemplate: "\"/v1/integrations/google_drive/sync\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SyncGoogleDrive", + methodName: "SyncGoogleDriveAsync", + pathTemplate: "\"/v1/integrations/google_drive/sync\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SyncGoogleDrive", + methodName: "SyncGoogleDriveAsync", + pathTemplate: "\"/v1/integrations/google_drive/sync\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessSyncGoogleDriveResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SyncGoogleDrive", + methodName: "SyncGoogleDriveAsync", + pathTemplate: "\"/v1/integrations/google_drive/sync\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SyncGoogleDrive", + methodName: "SyncGoogleDriveAsync", + pathTemplate: "\"/v1/integrations/google_drive/sync\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessSyncGoogleDriveResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.GoogleDriveSyncResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.GoogleDriveSyncResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Sync a Google Drive connector
+ /// Queue an incremental Google Drive change sync. + ///
+ /// + /// Google Drive installation ID + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task SyncGoogleDriveAsync( + global::System.Guid installationId, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Mixedbread.GoogleDriveSyncParams + { + InstallationId = installationId, + }; + + return await SyncGoogleDriveAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncSlackChannels.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncSlackChannels.g.cs new file mode 100644 index 0000000..1edbf19 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.SyncSlackChannels.g.cs @@ -0,0 +1,535 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_SyncSlackChannelsServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_SyncSlackChannelsSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_SyncSlackChannelsSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_SyncSlackChannelsSecurityRequirement0, + }; + partial void PrepareSyncSlackChannelsArguments( + global::System.Net.Http.HttpClient httpClient, + global::Mixedbread.SlackChannelSyncParams request); + partial void PrepareSyncSlackChannelsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Mixedbread.SlackChannelSyncParams request); + partial void ProcessSyncSlackChannelsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessSyncSlackChannelsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Sync selected Slack channels
+ /// Queue historical ingestion for selected Slack channels. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task SyncSlackChannelsAsync( + + global::Mixedbread.SlackChannelSyncParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await SyncSlackChannelsAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Sync selected Slack channels
+ /// Queue historical ingestion for selected Slack channels. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> SyncSlackChannelsAsResponseAsync( + + global::Mixedbread.SlackChannelSyncParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareSyncSlackChannelsArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SyncSlackChannelsSecurityRequirements, + operationName: "SyncSlackChannelsAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/slack/channels/sync", + baseUri: ResolveBaseUri( + servers: s_SyncSlackChannelsServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareSyncSlackChannelsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SyncSlackChannels", + methodName: "SyncSlackChannelsAsync", + pathTemplate: "\"/v1/integrations/slack/channels/sync\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SyncSlackChannels", + methodName: "SyncSlackChannelsAsync", + pathTemplate: "\"/v1/integrations/slack/channels/sync\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SyncSlackChannels", + methodName: "SyncSlackChannelsAsync", + pathTemplate: "\"/v1/integrations/slack/channels/sync\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessSyncSlackChannelsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SyncSlackChannels", + methodName: "SyncSlackChannelsAsync", + pathTemplate: "\"/v1/integrations/slack/channels/sync\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SyncSlackChannels", + methodName: "SyncSlackChannelsAsync", + pathTemplate: "\"/v1/integrations/slack/channels/sync\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessSyncSlackChannelsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.SlackChannelSyncResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.SlackChannelSyncResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Sync selected Slack channels
+ /// Queue historical ingestion for selected Slack channels. + ///
+ /// + /// Slack installation ID + /// + /// + /// Slack channel IDs to sync. Defaults to all selected channels. + /// + /// + /// Only retry Slack items that failed in the most recent import.
+ /// Default Value: false + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task SyncSlackChannelsAsync( + global::System.Guid installationId, + global::System.Collections.Generic.IList? channelIds = default, + bool? retryFailedOnly = default, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Mixedbread.SlackChannelSyncParams + { + InstallationId = installationId, + ChannelIds = channelIds, + RetryFailedOnly = retryFailedOnly, + }; + + return await SyncSlackChannelsAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveFolderSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveFolderSelection.g.cs new file mode 100644 index 0000000..52d4932 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveFolderSelection.g.cs @@ -0,0 +1,529 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_UpdateGoogleDriveFolderSelectionServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_UpdateGoogleDriveFolderSelectionSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_UpdateGoogleDriveFolderSelectionSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_UpdateGoogleDriveFolderSelectionSecurityRequirement0, + }; + partial void PrepareUpdateGoogleDriveFolderSelectionArguments( + global::System.Net.Http.HttpClient httpClient, + global::Mixedbread.GoogleDriveFolderSelectionUpdateParams request); + partial void PrepareUpdateGoogleDriveFolderSelectionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Mixedbread.GoogleDriveFolderSelectionUpdateParams request); + partial void ProcessUpdateGoogleDriveFolderSelectionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateGoogleDriveFolderSelectionResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update Google Drive folders for store ingestion
+ /// Replace the Google Drive folders selected for ingestion into a store. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateGoogleDriveFolderSelectionAsync( + + global::Mixedbread.GoogleDriveFolderSelectionUpdateParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UpdateGoogleDriveFolderSelectionAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Update Google Drive folders for store ingestion
+ /// Replace the Google Drive folders selected for ingestion into a store. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> UpdateGoogleDriveFolderSelectionAsResponseAsync( + + global::Mixedbread.GoogleDriveFolderSelectionUpdateParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateGoogleDriveFolderSelectionArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateGoogleDriveFolderSelectionSecurityRequirements, + operationName: "UpdateGoogleDriveFolderSelectionAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/google_drive/folders", + baseUri: ResolveBaseUri( + servers: s_UpdateGoogleDriveFolderSelectionServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Put, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdateGoogleDriveFolderSelectionRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateGoogleDriveFolderSelection", + methodName: "UpdateGoogleDriveFolderSelectionAsync", + pathTemplate: "\"/v1/integrations/google_drive/folders\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateGoogleDriveFolderSelection", + methodName: "UpdateGoogleDriveFolderSelectionAsync", + pathTemplate: "\"/v1/integrations/google_drive/folders\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateGoogleDriveFolderSelection", + methodName: "UpdateGoogleDriveFolderSelectionAsync", + pathTemplate: "\"/v1/integrations/google_drive/folders\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateGoogleDriveFolderSelectionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateGoogleDriveFolderSelection", + methodName: "UpdateGoogleDriveFolderSelectionAsync", + pathTemplate: "\"/v1/integrations/google_drive/folders\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateGoogleDriveFolderSelection", + methodName: "UpdateGoogleDriveFolderSelectionAsync", + pathTemplate: "\"/v1/integrations/google_drive/folders\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUpdateGoogleDriveFolderSelectionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.GoogleDriveFolderSelectionUpdateResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.GoogleDriveFolderSelectionUpdateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Update Google Drive folders for store ingestion
+ /// Replace the Google Drive folders selected for ingestion into a store. + ///
+ /// + /// Google Drive installation ID + /// + /// + /// Google Drive folder IDs to ingest into the store + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateGoogleDriveFolderSelectionAsync( + global::System.Guid installationId, + global::System.Collections.Generic.IList folderIds, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Mixedbread.GoogleDriveFolderSelectionUpdateParams + { + InstallationId = installationId, + FolderIds = folderIds, + }; + + return await UpdateGoogleDriveFolderSelectionAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveInstallationConfig.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveInstallationConfig.g.cs new file mode 100644 index 0000000..ab801e5 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateGoogleDriveInstallationConfig.g.cs @@ -0,0 +1,542 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_UpdateGoogleDriveInstallationConfigServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_UpdateGoogleDriveInstallationConfigSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_UpdateGoogleDriveInstallationConfigSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_UpdateGoogleDriveInstallationConfigSecurityRequirement0, + }; + partial void PrepareUpdateGoogleDriveInstallationConfigArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid installationId, + global::Mixedbread.GoogleDriveInstallationConfigUpdateBody request); + partial void PrepareUpdateGoogleDriveInstallationConfigRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid installationId, + global::Mixedbread.GoogleDriveInstallationConfigUpdateBody request); + partial void ProcessUpdateGoogleDriveInstallationConfigResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateGoogleDriveInstallationConfigResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update Google Drive data source config
+ /// Update a Google Drive data source config (sync entire Drive). Enabling syncs the whole Drive. + ///
+ /// + /// Google Drive installation ID + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateGoogleDriveInstallationConfigAsync( + global::System.Guid installationId, + + global::Mixedbread.GoogleDriveInstallationConfigUpdateBody request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UpdateGoogleDriveInstallationConfigAsResponseAsync( + installationId: installationId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Update Google Drive data source config
+ /// Update a Google Drive data source config (sync entire Drive). Enabling syncs the whole Drive. + ///
+ /// + /// Google Drive installation ID + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> UpdateGoogleDriveInstallationConfigAsResponseAsync( + global::System.Guid installationId, + + global::Mixedbread.GoogleDriveInstallationConfigUpdateBody request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateGoogleDriveInstallationConfigArguments( + httpClient: HttpClient, + installationId: ref installationId, + request: request); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateGoogleDriveInstallationConfigSecurityRequirements, + operationName: "UpdateGoogleDriveInstallationConfigAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: $"/v1/integrations/google_drive/installations/{installationId}/config", + baseUri: ResolveBaseUri( + servers: s_UpdateGoogleDriveInstallationConfigServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Put, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdateGoogleDriveInstallationConfigRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + installationId: installationId!, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateGoogleDriveInstallationConfig", + methodName: "UpdateGoogleDriveInstallationConfigAsync", + pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}/config\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateGoogleDriveInstallationConfig", + methodName: "UpdateGoogleDriveInstallationConfigAsync", + pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}/config\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateGoogleDriveInstallationConfig", + methodName: "UpdateGoogleDriveInstallationConfigAsync", + pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}/config\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateGoogleDriveInstallationConfigResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateGoogleDriveInstallationConfig", + methodName: "UpdateGoogleDriveInstallationConfigAsync", + pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}/config\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateGoogleDriveInstallationConfig", + methodName: "UpdateGoogleDriveInstallationConfigAsync", + pathTemplate: "$\"/v1/integrations/google_drive/installations/{installationId}/config\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUpdateGoogleDriveInstallationConfigResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.GoogleDriveFolderSelectionResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.GoogleDriveFolderSelectionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Update Google Drive data source config
+ /// Update a Google Drive data source config (sync entire Drive). Enabling syncs the whole Drive. + ///
+ /// + /// Google Drive installation ID + /// + /// + /// Whether the entire Drive (all current and future files) is synced automatically + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateGoogleDriveInstallationConfigAsync( + global::System.Guid installationId, + bool autoSyncAll, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Mixedbread.GoogleDriveInstallationConfigUpdateBody + { + AutoSyncAll = autoSyncAll, + }; + + return await UpdateGoogleDriveInstallationConfigAsync( + installationId: installationId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackChannelSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackChannelSelection.g.cs new file mode 100644 index 0000000..f0a9dff --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackChannelSelection.g.cs @@ -0,0 +1,529 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_UpdateSlackChannelSelectionServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_UpdateSlackChannelSelectionSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_UpdateSlackChannelSelectionSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_UpdateSlackChannelSelectionSecurityRequirement0, + }; + partial void PrepareUpdateSlackChannelSelectionArguments( + global::System.Net.Http.HttpClient httpClient, + global::Mixedbread.SlackChannelSelectionUpdateParams request); + partial void PrepareUpdateSlackChannelSelectionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Mixedbread.SlackChannelSelectionUpdateParams request); + partial void ProcessUpdateSlackChannelSelectionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateSlackChannelSelectionResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update Slack channels for store ingestion
+ /// Replace the Slack channels selected for ingestion into a store. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateSlackChannelSelectionAsync( + + global::Mixedbread.SlackChannelSelectionUpdateParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UpdateSlackChannelSelectionAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Update Slack channels for store ingestion
+ /// Replace the Slack channels selected for ingestion into a store. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> UpdateSlackChannelSelectionAsResponseAsync( + + global::Mixedbread.SlackChannelSelectionUpdateParams request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateSlackChannelSelectionArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSlackChannelSelectionSecurityRequirements, + operationName: "UpdateSlackChannelSelectionAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: "/v1/integrations/slack/channels", + baseUri: ResolveBaseUri( + servers: s_UpdateSlackChannelSelectionServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Put, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdateSlackChannelSelectionRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSlackChannelSelection", + methodName: "UpdateSlackChannelSelectionAsync", + pathTemplate: "\"/v1/integrations/slack/channels\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSlackChannelSelection", + methodName: "UpdateSlackChannelSelectionAsync", + pathTemplate: "\"/v1/integrations/slack/channels\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSlackChannelSelection", + methodName: "UpdateSlackChannelSelectionAsync", + pathTemplate: "\"/v1/integrations/slack/channels\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateSlackChannelSelectionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSlackChannelSelection", + methodName: "UpdateSlackChannelSelectionAsync", + pathTemplate: "\"/v1/integrations/slack/channels\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSlackChannelSelection", + methodName: "UpdateSlackChannelSelectionAsync", + pathTemplate: "\"/v1/integrations/slack/channels\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUpdateSlackChannelSelectionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.SlackChannelSelectionUpdateResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.SlackChannelSelectionUpdateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Update Slack channels for store ingestion
+ /// Replace the Slack channels selected for ingestion into a store. + ///
+ /// + /// Slack installation ID + /// + /// + /// Slack channel IDs to ingest into the store + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateSlackChannelSelectionAsync( + global::System.Guid installationId, + global::System.Collections.Generic.IList channelIds, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Mixedbread.SlackChannelSelectionUpdateParams + { + InstallationId = installationId, + ChannelIds = channelIds, + }; + + return await UpdateSlackChannelSelectionAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackInstallationConfig.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackInstallationConfig.g.cs new file mode 100644 index 0000000..07eab18 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.UpdateSlackInstallationConfig.g.cs @@ -0,0 +1,542 @@ + +#nullable enable + +namespace Mixedbread +{ + public partial class IntegrationsClient + { + + private static readonly global::Mixedbread.AutoSDKServer[] s_UpdateSlackInstallationConfigServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + + private static readonly global::Mixedbread.EndPointSecurityRequirement s_UpdateSlackInstallationConfigSecurityRequirement0 = + new global::Mixedbread.EndPointSecurityRequirement + { + Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[] + { new global::Mixedbread.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_UpdateSlackInstallationConfigSecurityRequirements = + new global::Mixedbread.EndPointSecurityRequirement[] + { s_UpdateSlackInstallationConfigSecurityRequirement0, + }; + partial void PrepareUpdateSlackInstallationConfigArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid installationId, + global::Mixedbread.SlackInstallationConfigUpdateBody request); + partial void PrepareUpdateSlackInstallationConfigRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid installationId, + global::Mixedbread.SlackInstallationConfigUpdateBody request); + partial void ProcessUpdateSlackInstallationConfigResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateSlackInstallationConfigResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update Slack data source config
+ /// Update a Slack data source config (auto-sync-all). Enabling it syncs every channel. + ///
+ /// + /// Slack installation ID + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateSlackInstallationConfigAsync( + global::System.Guid installationId, + + global::Mixedbread.SlackInstallationConfigUpdateBody request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UpdateSlackInstallationConfigAsResponseAsync( + installationId: installationId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Update Slack data source config
+ /// Update a Slack data source config (auto-sync-all). Enabling it syncs every channel. + ///
+ /// + /// Slack installation ID + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> UpdateSlackInstallationConfigAsResponseAsync( + global::System.Guid installationId, + + global::Mixedbread.SlackInstallationConfigUpdateBody request, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateSlackInstallationConfigArguments( + httpClient: HttpClient, + installationId: ref installationId, + request: request); + + + var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSlackInstallationConfigSecurityRequirements, + operationName: "UpdateSlackInstallationConfigAsync"); + + using var __timeoutCancellationTokenSource = global::Mixedbread.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Mixedbread.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Mixedbread.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Mixedbread.PathBuilder( + path: $"/v1/integrations/slack/installations/{installationId}/config", + baseUri: ResolveBaseUri( + servers: s_UpdateSlackInstallationConfigServers, + defaultBaseUrl: "https://api.mixedbread.com/")); + var __path = __pathBuilder.ToString(); + __path = global::Mixedbread.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Put, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Mixedbread.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdateSlackInstallationConfigRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + installationId: installationId!, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSlackInstallationConfig", + methodName: "UpdateSlackInstallationConfigAsync", + pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}/config\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSlackInstallationConfig", + methodName: "UpdateSlackInstallationConfigAsync", + pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}/config\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Mixedbread.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Mixedbread.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSlackInstallationConfig", + methodName: "UpdateSlackInstallationConfigAsync", + pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}/config\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Mixedbread.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateSlackInstallationConfigResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSlackInstallationConfig", + methodName: "UpdateSlackInstallationConfigAsync", + pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}/config\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Mixedbread.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Mixedbread.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateSlackInstallationConfig", + methodName: "UpdateSlackInstallationConfigAsync", + pathTemplate: "$\"/v1/integrations/slack/installations/{installationId}/config\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Mixedbread.HTTPValidationError? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUpdateSlackInstallationConfigResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Mixedbread.SlackChannelSelectionResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Mixedbread.SlackChannelSelectionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Mixedbread.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Mixedbread.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Mixedbread.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Update Slack data source config
+ /// Update a Slack data source config (auto-sync-all). Enabling it syncs every channel. + ///
+ /// + /// Slack installation ID + /// + /// + /// Whether all current and future Slack channels are synced automatically + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateSlackInstallationConfigAsync( + global::System.Guid installationId, + bool autoSyncAllChannels, + global::Mixedbread.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Mixedbread.SlackInstallationConfigUpdateBody + { + AutoSyncAllChannels = autoSyncAllChannels, + }; + + return await UpdateSlackInstallationConfigAsync( + installationId: installationId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.g.cs new file mode 100644 index 0000000..8d8cba7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.IntegrationsClient.g.cs @@ -0,0 +1,294 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public sealed partial class IntegrationsClient : global::Mixedbread.IIntegrationsClient, global::System.IDisposable + { + /// + /// mixedbread ai production server + /// + public const string DefaultBaseUrl = "https://api.mixedbread.com/"; + + private bool _disposeHttpClient = true; + + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + public System.Uri? BaseUri => ResolveDisplayedBaseUri(); + + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif + + /// + public global::Mixedbread.AutoSDKClientOptions Options { get; } + + + internal global::Mixedbread.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Mixedbread.AutoSDKServerConfiguration(); + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mixedbread.SourceGenerationContext.Default; + + + + private static readonly global::Mixedbread.AutoSDKServer[] s_availableServers = new global::Mixedbread.AutoSDKServer[] + { new global::Mixedbread.AutoSDKServer( + id: "https-api-mixedbread-com", + name: "mixedbread ai production server", + url: "https://api.mixedbread.com/", + description: "mixedbread ai production server"), + new global::Mixedbread.AutoSDKServer( + id: "https-api-dev-mixedbread-com", + name: "mixedbread ai development server", + url: "https://api.dev.mixedbread.com/", + description: "mixedbread ai development server"), + new global::Mixedbread.AutoSDKServer( + id: "http-127-0-0-1", + name: "mixedbread local server", + url: "http://127.0.0.1:8000/", + description: "mixedbread local server"), + new global::Mixedbread.AutoSDKServer( + id: "http-localhost", + name: "mixedbread local server", + url: "http://localhost:8000/", + description: "mixedbread local server"), + }; + + /// + /// The server options available for this client. + /// + public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; + + /// + /// The currently selected server for this client, if any. + /// + public global::Mixedbread.AutoSDKServer? SelectedServer + { + get => ResolveSelectedServer(); + set => SelectServer(value); + } + + /// + /// Creates a new instance of the IntegrationsClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Dispose the HttpClient when the instance is disposed. True by default. + public IntegrationsClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this( + httpClient, + baseUri, + authorizations, + options: null, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the IntegrationsClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public IntegrationsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Mixedbread.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the IntegrationsClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public IntegrationsClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Uri? baseUri, + global::System.Collections.Generic.List? authorizations, + global::Mixedbread.AutoSDKClientOptions? options, + bool disposeHttpClient = true) + { + + HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); + if (baseUri is not null) + { + HttpClient.BaseAddress ??= baseUri; + } + Authorizations = authorizations ?? new global::System.Collections.Generic.List(); + Options = options ?? new global::Mixedbread.AutoSDKClientOptions(); + _disposeHttpClient = disposeHttpClient; + + AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; + + Initialized(HttpClient); + } + + /// + public void Dispose() + { + if (_disposeHttpClient) + { + HttpClient.Dispose(); + } + } + + partial void Initialized( + global::System.Net.Http.HttpClient client); + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + + + /// + /// Selects one of the generated server options by id. + /// + public bool TrySelectServer(string serverId) + { + if (string.IsNullOrWhiteSpace(serverId)) + { + return false; + } + + foreach (var server in s_availableServers) + { + if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) + { + AutoSDKServerConfiguration.SelectedServer = server; + AutoSDKServerConfiguration.ExplicitBaseUri = null; + return true; + } + } + + return false; + } + + /// + /// Clears the currently selected server. + /// + public void ClearSelectedServer() + { + AutoSDKServerConfiguration.SelectedServer = null; + } + + private global::Mixedbread.AutoSDKServer? ResolveSelectedServer() + { + var selectedServer = AutoSDKServerConfiguration.SelectedServer; + if (selectedServer is null) + { + return null; + } + + foreach (var server in s_availableServers) + { + if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) + { + return server; + } + } + + return null; + } + + private void SelectServer(global::Mixedbread.AutoSDKServer? server) + { + if (server is null) + { + AutoSDKServerConfiguration.SelectedServer = null; + return; + } + + foreach (var candidate in s_availableServers) + { + if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) + { + AutoSDKServerConfiguration.SelectedServer = candidate; + AutoSDKServerConfiguration.ExplicitBaseUri = null; + return; + } + } + + throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); + } + + private global::System.Uri? ResolveDisplayedBaseUri() + { + if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) + { + return explicitBaseUri; + } + + return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); + } + + private global::System.Uri? ResolveBaseUri( + global::Mixedbread.AutoSDKServer[] servers, + string defaultBaseUrl) + { + if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) + { + return explicitBaseUri; + } + + if (AutoSDKServerConfiguration.SelectedServer is global::Mixedbread.AutoSDKServer selectedServer) + { + foreach (var server in servers) + { + if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) + { + return server.Uri; + } + } + } + + if (servers.Length > 0) + { + return servers[0].Uri; + } + + return string.IsNullOrWhiteSpace(defaultBaseUrl) + ? HttpClient.BaseAddress + : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketAuthType.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketAuthType.g.cs new file mode 100644 index 0000000..592eae7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketAuthType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class BucketAuthTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.BucketAuthType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.BucketAuthTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.BucketAuthType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.BucketAuthType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.BucketAuthType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.BucketAuthTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketAuthTypeNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketAuthTypeNullable.g.cs new file mode 100644 index 0000000..23522e3 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketAuthTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class BucketAuthTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.BucketAuthType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.BucketAuthTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.BucketAuthType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.BucketAuthType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.BucketAuthType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.BucketAuthTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketCreateParamsCredentialsDiscriminatorType.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketCreateParamsCredentialsDiscriminatorType.g.cs new file mode 100644 index 0000000..ead8e59 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketCreateParamsCredentialsDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class BucketCreateParamsCredentialsDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketCreateParamsCredentialsDiscriminatorTypeNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketCreateParamsCredentialsDiscriminatorTypeNullable.g.cs new file mode 100644 index 0000000..ec10d98 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketCreateParamsCredentialsDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class BucketCreateParamsCredentialsDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketProvider.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketProvider.g.cs new file mode 100644 index 0000000..544716c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketProvider.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class BucketProviderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.BucketProvider Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.BucketProviderExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.BucketProvider)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.BucketProvider); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.BucketProvider value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.BucketProviderExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketProviderNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketProviderNullable.g.cs new file mode 100644 index 0000000..4bc308b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketProviderNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class BucketProviderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.BucketProvider? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.BucketProviderExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.BucketProvider)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.BucketProvider?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.BucketProvider? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.BucketProviderExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketStatus.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketStatus.g.cs new file mode 100644 index 0000000..402db37 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class BucketStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.BucketStatus Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.BucketStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.BucketStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.BucketStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.BucketStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.BucketStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketStatusNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketStatusNullable.g.cs new file mode 100644 index 0000000..0de54c3 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.BucketStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class BucketStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.BucketStatus? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.BucketStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.BucketStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.BucketStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.BucketStatus? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.BucketStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Credentials.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Credentials.g.cs new file mode 100644 index 0000000..d98d3fb --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.Credentials.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Mixedbread.JsonConverters +{ + /// + public class CredentialsJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.Credentials Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.BucketCreateParamsCredentialsDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.BucketCreateParamsCredentialsDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Mixedbread.BucketAssumeRoleCredentials? assumeRole = default; + if (discriminator?.Type == global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType.AssumeRole) + { + 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 {nameof(global::Mixedbread.BucketAssumeRoleCredentials)}"); + assumeRole = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Mixedbread.BucketAccessKeyCredentials? accessKey = default; + if (discriminator?.Type == global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType.AccessKey) + { + 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 {nameof(global::Mixedbread.BucketAccessKeyCredentials)}"); + accessKey = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Mixedbread.Credentials( + discriminator?.Type, + assumeRole, + + accessKey + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.Credentials value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsAssumeRole) + { + 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); + } + 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); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem.g.cs index 15560ae..b46ee21 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem.g.cs @@ -42,6 +42,13 @@ public class DataItemJsonConverter : global::System.Text.Json.Serialization.Json throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.StoreAgenticSearchEvent)}"); agenticSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Mixedbread.StoreGrepEvent? grep = default; + if (discriminator?.Type == global::Mixedbread.StoreEventListResponseDataItemDiscriminatorType.Grep) + { + 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 {nameof(global::Mixedbread.StoreGrepEvent)}"); + grep = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } var __value = new global::Mixedbread.DataItem( discriminator?.Type, @@ -49,7 +56,9 @@ public class DataItemJsonConverter : global::System.Text.Json.Serialization.Json search, - agenticSearch + agenticSearch, + + grep ); return __value; @@ -82,6 +91,12 @@ public override void Write( 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); } + 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); + } } } } \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestAuthType.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestAuthType.g.cs new file mode 100644 index 0000000..c21864c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestAuthType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class IntegrationProviderManifestAuthTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.IntegrationProviderManifestAuthType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.IntegrationProviderManifestAuthTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.IntegrationProviderManifestAuthType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.IntegrationProviderManifestAuthType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.IntegrationProviderManifestAuthType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.IntegrationProviderManifestAuthTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestAuthTypeNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestAuthTypeNullable.g.cs new file mode 100644 index 0000000..eba6e9d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestAuthTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class IntegrationProviderManifestAuthTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.IntegrationProviderManifestAuthType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.IntegrationProviderManifestAuthTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.IntegrationProviderManifestAuthType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.IntegrationProviderManifestAuthType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.IntegrationProviderManifestAuthType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.IntegrationProviderManifestAuthTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestCapabilitie.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestCapabilitie.g.cs new file mode 100644 index 0000000..a3d36b3 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestCapabilitie.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class IntegrationProviderManifestCapabilitieJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.IntegrationProviderManifestCapabilitie Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.IntegrationProviderManifestCapabilitieExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.IntegrationProviderManifestCapabilitie)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.IntegrationProviderManifestCapabilitie); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.IntegrationProviderManifestCapabilitie value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.IntegrationProviderManifestCapabilitieExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestCapabilitieNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestCapabilitieNullable.g.cs new file mode 100644 index 0000000..dfd1373 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestCapabilitieNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class IntegrationProviderManifestCapabilitieNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.IntegrationProviderManifestCapabilitie? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.IntegrationProviderManifestCapabilitieExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.IntegrationProviderManifestCapabilitie)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.IntegrationProviderManifestCapabilitie?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.IntegrationProviderManifestCapabilitie? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.IntegrationProviderManifestCapabilitieExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestIngestionBacking2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestIngestionBacking2.g.cs new file mode 100644 index 0000000..32bbced --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestIngestionBacking2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class IntegrationProviderManifestIngestionBacking2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.IntegrationProviderManifestIngestionBacking2 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.IntegrationProviderManifestIngestionBacking2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.IntegrationProviderManifestIngestionBacking2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.IntegrationProviderManifestIngestionBacking2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.IntegrationProviderManifestIngestionBacking2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.IntegrationProviderManifestIngestionBacking2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestIngestionBacking2Nullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestIngestionBacking2Nullable.g.cs new file mode 100644 index 0000000..769056c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestIngestionBacking2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class IntegrationProviderManifestIngestionBacking2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.IntegrationProviderManifestIngestionBacking2? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.IntegrationProviderManifestIngestionBacking2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.IntegrationProviderManifestIngestionBacking2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.IntegrationProviderManifestIngestionBacking2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.IntegrationProviderManifestIngestionBacking2? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.IntegrationProviderManifestIngestionBacking2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestProvider.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestProvider.g.cs new file mode 100644 index 0000000..17288c5 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestProvider.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class IntegrationProviderManifestProviderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.IntegrationProviderManifestProvider Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.IntegrationProviderManifestProviderExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.IntegrationProviderManifestProvider)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.IntegrationProviderManifestProvider); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.IntegrationProviderManifestProvider value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.IntegrationProviderManifestProviderExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestProviderNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestProviderNullable.g.cs new file mode 100644 index 0000000..2677613 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.IntegrationProviderManifestProviderNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class IntegrationProviderManifestProviderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.IntegrationProviderManifestProvider? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.IntegrationProviderManifestProviderExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.IntegrationProviderManifestProvider)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.IntegrationProviderManifestProvider?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.IntegrationProviderManifestProvider? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.IntegrationProviderManifestProviderExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SlackChannelLastSyncStatus2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SlackChannelLastSyncStatus2.g.cs new file mode 100644 index 0000000..9eaa355 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SlackChannelLastSyncStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class SlackChannelLastSyncStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.SlackChannelLastSyncStatus2 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.SlackChannelLastSyncStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.SlackChannelLastSyncStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.SlackChannelLastSyncStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.SlackChannelLastSyncStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.SlackChannelLastSyncStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SlackChannelLastSyncStatus2Nullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SlackChannelLastSyncStatus2Nullable.g.cs new file mode 100644 index 0000000..1ea5155 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SlackChannelLastSyncStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class SlackChannelLastSyncStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.SlackChannelLastSyncStatus2? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.SlackChannelLastSyncStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.SlackChannelLastSyncStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.SlackChannelLastSyncStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.SlackChannelLastSyncStatus2? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.SlackChannelLastSyncStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SlackChannelSyncStatus.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SlackChannelSyncStatus.g.cs new file mode 100644 index 0000000..0c2a3a0 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SlackChannelSyncStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class SlackChannelSyncStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.SlackChannelSyncStatus Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.SlackChannelSyncStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.SlackChannelSyncStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.SlackChannelSyncStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.SlackChannelSyncStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Mixedbread.SlackChannelSyncStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SlackChannelSyncStatusNullable.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SlackChannelSyncStatusNullable.g.cs new file mode 100644 index 0000000..5558478 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.SlackChannelSyncStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Mixedbread.JsonConverters +{ + /// + public sealed class SlackChannelSyncStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Mixedbread.SlackChannelSyncStatus? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Mixedbread.SlackChannelSyncStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Mixedbread.SlackChannelSyncStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Mixedbread.SlackChannelSyncStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Mixedbread.SlackChannelSyncStatus? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Mixedbread.SlackChannelSyncStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContext.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContext.g.cs index 18a5683..f311baf 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContext.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContext.g.cs @@ -25,6 +25,22 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.AudioUrlInputChunkGeneratedMetadataVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.BucketAuthTypeJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketAuthTypeNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketCreateParamsCredentialsDiscriminatorTypeJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketCreateParamsCredentialsDiscriminatorTypeNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketProviderJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketProviderNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketStatusJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketStatusNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.ChunkingStrategyJsonConverter), typeof(global::Mixedbread.JsonConverters.ChunkingStrategyNullableJsonConverter), @@ -53,6 +69,22 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.ImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestProviderJsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestProviderNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestAuthTypeJsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestAuthTypeNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestCapabilitieJsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestCapabilitieNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestIngestionBacking2JsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestIngestionBacking2NullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorTypeJsonConverter), typeof(global::Mixedbread.JsonConverters.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorTypeNullableJsonConverter), @@ -101,6 +133,14 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.ScopeMethodNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.SlackChannelSyncStatusJsonConverter), + + typeof(global::Mixedbread.JsonConverters.SlackChannelSyncStatusNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.SlackChannelLastSyncStatus2JsonConverter), + + typeof(global::Mixedbread.JsonConverters.SlackChannelLastSyncStatus2NullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.StoreChunkGrepTargetJsonConverter), typeof(global::Mixedbread.JsonConverters.StoreChunkGrepTargetNullableJsonConverter), @@ -267,6 +307,8 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.GeneratedMetadataVariant1JsonConverter), + typeof(global::Mixedbread.JsonConverters.CredentialsJsonConverter), + typeof(global::Mixedbread.JsonConverters.AuthParamsVariant1JsonConverter), typeof(global::Mixedbread.JsonConverters.EmbeddingItemJsonConverter), @@ -455,6 +497,10 @@ namespace Mixedbread typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), @@ -590,7 +636,6 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AgenticSearchTokenUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AgenticToolCall))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AgenticToolCallToolType), TypeInfoPropertyName = "AgenticToolCallToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] @@ -606,6 +651,7 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ApiKeyUpdateParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AudioChunkGeneratedMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AudioUrl))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AudioUrlInputChunk))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.GeneratedMetadataVariant1))] @@ -627,6 +673,20 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.BodyUpdateFile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.BodyUploadStoreFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.Bucket))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.BucketProvider), TypeInfoPropertyName = "BucketProvider2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.BucketAuthType), TypeInfoPropertyName = "BucketAuthType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.BucketStatus), TypeInfoPropertyName = "BucketStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.BucketAccessKeyCredentials))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.BucketAssumeRoleCredentials))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.BucketCreateParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.Credentials), TypeInfoPropertyName = "Credentials2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.BucketCreateParamsCredentialsDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType), TypeInfoPropertyName = "BucketCreateParamsCredentialsDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.BucketListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.CursorPaginationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.BucketRotateCredentialsParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.Chunk))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ChunkElement))] @@ -639,7 +699,6 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MultipartUploadPart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ConditionOperator), TypeInfoPropertyName = "ConditionOperator2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ConnectorListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.CursorPaginationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DataSourceConnector))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ContextualizationConfig))] @@ -672,6 +731,9 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DataSourceConnectorDeleted))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DataSourceConnectorUpdateParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DataSourceDeleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DataSourceInstallation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DataSourceInstallationListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DataSourceListResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DeprecatedStoreFileUpsertParams))] @@ -716,6 +778,20 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.FileObject))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.FileSearchResultRule))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.GoogleDriveFolder))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.GoogleDriveFolderSelection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.GoogleDriveFolderSelectionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.GoogleDriveFolderSelectionUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.GoogleDriveFolderSelectionUpdateParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.GoogleDriveFolderSelectionUpdateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.GoogleDriveInstallationConfigUpdateBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.GoogleDriveInstallationOverview))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.GoogleDriveInstallationOverviewListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.GoogleDriveSync))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.GoogleDriveSyncParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.GoogleDriveSyncResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.HTTPValidationError))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ValidationError))] @@ -726,6 +802,18 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ImageUrlInputChunkGeneratedMetadataVariant1Discriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.ImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorType), TypeInfoPropertyName = "ImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.InfoResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.IntegrationInstallation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.IntegrationInstallationListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.IntegrationInstallationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.IntegrationProviderListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.IntegrationProviderManifest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.IntegrationProviderManifestProvider), TypeInfoPropertyName = "IntegrationProviderManifestProvider2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.IntegrationProviderManifestAuthType), TypeInfoPropertyName = "IntegrationProviderManifestAuthType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.IntegrationProviderManifestCapabilitie), TypeInfoPropertyName = "IntegrationProviderManifestCapabilitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.IntegrationProviderManifestIngestionBacking2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.JsonSchemaCreateParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.JsonSchemaEnhanceParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.JsonSchemaValidateParams))] @@ -809,6 +897,24 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SearchFilterOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf), TypeInfoPropertyName = "AnyOfSearchFilterOutputSearchFilterCondition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackChannel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackChannelSyncStatus), TypeInfoPropertyName = "SlackChannelSyncStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackChannelLastSyncStatus2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackChannelSelection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackChannelSelectionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackChannelSelectionUpdate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackChannelSelectionUpdateParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackChannelSelectionUpdateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackChannelSync))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackChannelSyncParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackChannelSyncResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackInstallationConfigUpdateBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackInstallationOverview))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackInstallationOverviewListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackManifestResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.SlackManualConnectBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.Store))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreConfig2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreStatus), TypeInfoPropertyName = "StoreStatus2")] @@ -845,6 +951,7 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.DataItem), TypeInfoPropertyName = "DataItem2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreIngestionEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreSearchEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreGrepEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreEventListResponseDataItemDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreEventListResponseDataItemDiscriminatorType), TypeInfoPropertyName = "StoreEventListResponseDataItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.StoreFile))] @@ -1011,74 +1118,13 @@ namespace Mixedbread [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf, global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf, global::System.Collections.Generic.List>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>>, global::System.Collections.Generic.List, object>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1102,6 +1148,22 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Mixedbread.JsonConverters.AudioUrlInputChunkGeneratedMetadataVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.BucketAuthTypeJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketAuthTypeNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketCreateParamsCredentialsDiscriminatorTypeJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketCreateParamsCredentialsDiscriminatorTypeNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketProviderJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketProviderNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketStatusJsonConverter), + + typeof(global::Mixedbread.JsonConverters.BucketStatusNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.ChunkingStrategyJsonConverter), typeof(global::Mixedbread.JsonConverters.ChunkingStrategyNullableJsonConverter), @@ -1130,6 +1192,22 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Mixedbread.JsonConverters.ImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestProviderJsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestProviderNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestAuthTypeJsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestAuthTypeNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestCapabilitieJsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestCapabilitieNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestIngestionBacking2JsonConverter), + + typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestIngestionBacking2NullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorTypeJsonConverter), typeof(global::Mixedbread.JsonConverters.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorTypeNullableJsonConverter), @@ -1178,6 +1256,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Mixedbread.JsonConverters.ScopeMethodNullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.SlackChannelSyncStatusJsonConverter), + + typeof(global::Mixedbread.JsonConverters.SlackChannelSyncStatusNullableJsonConverter), + + typeof(global::Mixedbread.JsonConverters.SlackChannelLastSyncStatus2JsonConverter), + + typeof(global::Mixedbread.JsonConverters.SlackChannelLastSyncStatus2NullableJsonConverter), + typeof(global::Mixedbread.JsonConverters.StoreChunkGrepTargetJsonConverter), typeof(global::Mixedbread.JsonConverters.StoreChunkGrepTargetNullableJsonConverter), @@ -1344,6 +1430,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Mixedbread.JsonConverters.GeneratedMetadataVariant1JsonConverter), + typeof(global::Mixedbread.JsonConverters.CredentialsJsonConverter), + typeof(global::Mixedbread.JsonConverters.AuthParamsVariant1JsonConverter), typeof(global::Mixedbread.JsonConverters.EmbeddingItemJsonConverter), @@ -1532,6 +1620,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), + + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), + typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter), typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>), @@ -1659,6 +1751,76 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadataVariant1DiscriminatorType?), TypeInfoPropertyName = "MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadataVariant1Discri_3c2191d673db2d33")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorType?), TypeInfoPropertyName = "MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadataVariant1Discri_aff54a326955d8df")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadataVariant1DiscriminatorType?), TypeInfoPropertyName = "MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadataVariant1Discri_59284f7c8f26921d")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf, global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf, global::System.Collections.Generic.List>>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>>, global::System.Collections.Generic.List, object>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Mixedbread.AnyOf>, object>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1717,6 +1879,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Mixedbread.JsonConverters.AgenticToolCallToolTypeNullableJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.AudioUrlInputChunkGeneratedMetadataVariant1DiscriminatorTypeJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.AudioUrlInputChunkGeneratedMetadataVariant1DiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.BucketAuthTypeJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.BucketAuthTypeNullableJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.BucketCreateParamsCredentialsDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.BucketCreateParamsCredentialsDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.BucketProviderJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.BucketProviderNullableJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.BucketStatusJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.BucketStatusNullableJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.ChunkingStrategyJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.ChunkingStrategyNullableJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.ConditionOperatorJsonConverter()); @@ -1731,6 +1901,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Mixedbread.JsonConverters.EncodingFormat3NullableJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.ImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorTypeJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.ImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.IntegrationProviderManifestProviderJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.IntegrationProviderManifestProviderNullableJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.IntegrationProviderManifestAuthTypeJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.IntegrationProviderManifestAuthTypeNullableJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.IntegrationProviderManifestCapabilitieJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.IntegrationProviderManifestCapabilitieNullableJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.IntegrationProviderManifestIngestionBacking2JsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.IntegrationProviderManifestIngestionBacking2NullableJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorTypeJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.ModeJsonConverter()); @@ -1755,6 +1933,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Mixedbread.JsonConverters.ReturnFormatNullableJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.ScopeMethodJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.ScopeMethodNullableJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.SlackChannelSyncStatusJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.SlackChannelSyncStatusNullableJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.SlackChannelLastSyncStatus2JsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.SlackChannelLastSyncStatus2NullableJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.StoreChunkGrepTargetJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.StoreChunkGrepTargetNullableJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.StoreEventHistogramBucketTypeJsonConverter()); @@ -1838,6 +2020,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Mixedbread.JsonConverters.ListStoreEventsEventTypeJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.ListStoreEventsEventTypeNullableJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.GeneratedMetadataVariant1JsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.CredentialsJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.AuthParamsVariant1JsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.EmbeddingItemJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.GeneratedMetadataVariant12JsonConverter()); @@ -1932,6 +2115,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Mixedbread.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::Mixedbread.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>()); + options.Converters.Add(new global::Mixedbread.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>()); options.Converters.Add(new global::Mixedbread.JsonConverters.AnyOfJsonConverter()); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContextTypes.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContextTypes.g.cs index 9e567d8..3ba7bbb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContextTypes.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonSerializerContextTypes.g.cs @@ -56,67 +56,67 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public double? Type7 { get; set; } + public global::Mixedbread.AgenticToolCall? Type7 { get; set; } /// /// /// - public global::Mixedbread.AgenticToolCall? Type8 { get; set; } + public global::Mixedbread.AgenticToolCallToolType? Type8 { get; set; } /// /// /// - public global::Mixedbread.AgenticToolCallToolType? Type9 { get; set; } + public global::System.DateTime? Type9 { get; set; } /// /// /// - public global::System.DateTime? Type10 { get; set; } + public global::Mixedbread.ApiKey? Type10 { get; set; } /// /// /// - public global::Mixedbread.ApiKey? Type11 { get; set; } + public global::System.Collections.Generic.IList? Type11 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type12 { get; set; } + public global::Mixedbread.Scope? Type12 { get; set; } /// /// /// - public global::Mixedbread.Scope? Type13 { get; set; } + public global::Mixedbread.ApiKeyCreateOrUpdateParams? Type13 { get; set; } /// /// /// - public global::Mixedbread.ApiKeyCreateOrUpdateParams? Type14 { get; set; } + public global::Mixedbread.ApiKeyCreateParams? Type14 { get; set; } /// /// /// - public global::Mixedbread.ApiKeyCreateParams? Type15 { get; set; } + public global::Mixedbread.ApiKeyCreated? Type15 { get; set; } /// /// /// - public global::Mixedbread.ApiKeyCreated? Type16 { get; set; } + public global::Mixedbread.ApiKeyDeleted? Type16 { get; set; } /// /// /// - public global::Mixedbread.ApiKeyDeleted? Type17 { get; set; } + public global::Mixedbread.ApiKeyListResponse? Type17 { get; set; } /// /// /// - public global::Mixedbread.ApiKeyListResponse? Type18 { get; set; } + public global::Mixedbread.PaginationWithTotal? Type18 { get; set; } /// /// /// - public global::Mixedbread.PaginationWithTotal? Type19 { get; set; } + public global::System.Collections.Generic.IList? Type19 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type20 { get; set; } + public global::Mixedbread.ApiKeyUpdateParams? Type20 { get; set; } /// /// /// - public global::Mixedbread.ApiKeyUpdateParams? Type21 { get; set; } + public global::Mixedbread.AudioChunkGeneratedMetadata? Type21 { get; set; } /// /// /// - public global::Mixedbread.AudioChunkGeneratedMetadata? Type22 { get; set; } + public double? Type22 { get; set; } /// /// /// @@ -204,1519 +204,1763 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Mixedbread.Chunk? Type44 { get; set; } + public global::Mixedbread.Bucket? Type44 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type45 { get; set; } + public global::Mixedbread.BucketProvider? Type45 { get; set; } /// /// /// - public global::Mixedbread.ChunkElement? Type46 { get; set; } + public global::Mixedbread.BucketAuthType? Type46 { get; set; } /// /// /// - public global::Mixedbread.ElementType? Type47 { get; set; } + public global::Mixedbread.BucketStatus? Type47 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type48 { get; set; } + public global::Mixedbread.BucketAccessKeyCredentials? Type48 { get; set; } /// /// /// - public global::Mixedbread.ChunkSearchResultRule? Type49 { get; set; } + public global::Mixedbread.BucketAssumeRoleCredentials? Type49 { get; set; } /// /// /// - public global::Mixedbread.ChunkingStrategy? Type50 { get; set; } + public global::Mixedbread.BucketCreateParams? Type50 { get; set; } /// /// /// - public global::Mixedbread.CompleteMultipartUploadRequest? Type51 { get; set; } + public global::Mixedbread.Credentials? Type51 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type52 { get; set; } + public global::Mixedbread.BucketCreateParamsCredentialsDiscriminator? Type52 { get; set; } /// /// /// - public global::Mixedbread.MultipartUploadPart? Type53 { get; set; } + public global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType? Type53 { get; set; } /// /// /// - public global::Mixedbread.ConditionOperator? Type54 { get; set; } + public global::Mixedbread.BucketListResponse? Type54 { get; set; } /// /// /// - public global::Mixedbread.ConnectorListResponse? Type55 { get; set; } + public global::Mixedbread.CursorPaginationResponse? Type55 { get; set; } /// /// /// - public global::Mixedbread.CursorPaginationResponse? Type56 { get; set; } + public global::System.Collections.Generic.IList? Type56 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type57 { get; set; } + public global::Mixedbread.BucketRotateCredentialsParams? Type57 { get; set; } /// /// /// - public global::Mixedbread.DataSourceConnector? Type58 { get; set; } + public global::Mixedbread.Chunk? Type58 { get; set; } /// /// /// - public global::Mixedbread.ContextualizationConfig? Type59 { get; set; } + public global::System.Collections.Generic.IList? Type59 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? Type60 { get; set; } + public global::Mixedbread.ChunkElement? Type60 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type61 { get; set; } + public global::Mixedbread.ElementType? Type61 { get; set; } /// /// /// - public global::Mixedbread.CostHistogramResponse? Type62 { get; set; } + public global::System.Collections.Generic.IList? Type62 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type63 { get; set; } + public global::Mixedbread.ChunkSearchResultRule? Type63 { get; set; } /// /// /// - public global::Mixedbread.DailyCostBucket? Type64 { get; set; } + public global::Mixedbread.ChunkingStrategy? Type64 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type65 { get; set; } + public global::Mixedbread.CompleteMultipartUploadRequest? Type65 { get; set; } /// /// /// - public global::Mixedbread.PhaseCostInfo? Type66 { get; set; } + public global::System.Collections.Generic.IList? Type66 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type67 { get; set; } + public global::Mixedbread.MultipartUploadPart? Type67 { get; set; } /// /// /// - public global::Mixedbread.ProductCostInfo? Type68 { get; set; } + public global::Mixedbread.ConditionOperator? Type68 { get; set; } /// /// /// - public global::Mixedbread.CreateMultipartUploadRequest? Type69 { get; set; } + public global::Mixedbread.ConnectorListResponse? Type69 { get; set; } /// /// /// - public long? Type70 { get; set; } + public global::System.Collections.Generic.IList? Type70 { get; set; } /// /// /// - public global::Mixedbread.CreateMultipartUploadResponse? Type71 { get; set; } + public global::Mixedbread.DataSourceConnector? Type71 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type72 { get; set; } + public global::Mixedbread.ContextualizationConfig? Type72 { get; set; } /// /// /// - public global::Mixedbread.MultipartUploadPartUrl? Type73 { get; set; } + public global::Mixedbread.AnyOf>? Type73 { get; set; } /// /// /// - public global::Mixedbread.CreatedJsonSchema? Type74 { get; set; } + public global::System.Collections.Generic.IList? Type74 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type75 { get; set; } + public global::Mixedbread.CostHistogramResponse? Type75 { get; set; } /// /// /// - public global::Mixedbread.DataSource? Type76 { get; set; } + public global::System.Collections.Generic.IList? Type76 { get; set; } /// /// /// - public global::Mixedbread.DataSourceType? Type77 { get; set; } + public global::Mixedbread.DailyCostBucket? Type77 { get; set; } /// /// /// - public global::Mixedbread.AuthParamsVariant1? Type78 { get; set; } + public global::System.Collections.Generic.IList? Type78 { get; set; } /// /// /// - public global::Mixedbread.DataSourceOAuth2Params? Type79 { get; set; } + public global::Mixedbread.PhaseCostInfo? Type79 { get; set; } /// /// /// - public global::Mixedbread.DataSourceApiKeyParams? Type80 { get; set; } + public global::System.Collections.Generic.IList? Type80 { get; set; } /// /// /// - public global::Mixedbread.DataSourceAuthParamsVariant1Discriminator? Type81 { get; set; } + public global::Mixedbread.ProductCostInfo? Type81 { get; set; } /// /// /// - public global::Mixedbread.DataSourceAuthParamsVariant1DiscriminatorType? Type82 { get; set; } + public global::Mixedbread.CreateMultipartUploadRequest? Type82 { get; set; } /// /// /// - public global::Mixedbread.SyncStatus? Type83 { get; set; } + public long? Type83 { get; set; } /// /// /// - public global::Mixedbread.DataSourceConnectorCreateParams? Type84 { get; set; } + public global::Mixedbread.CreateMultipartUploadResponse? Type84 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type85 { get; set; } + public global::System.Collections.Generic.IList? Type85 { get; set; } /// /// /// - public global::Mixedbread.DataSourceConnectorDeleted? Type86 { get; set; } + public global::Mixedbread.MultipartUploadPartUrl? Type86 { get; set; } /// /// /// - public global::Mixedbread.DataSourceConnectorUpdateParams? Type87 { get; set; } + public global::Mixedbread.CreatedJsonSchema? Type87 { get; set; } /// /// /// - public global::Mixedbread.DataSourceDeleted? Type88 { get; set; } + public global::System.Collections.Generic.Dictionary? Type88 { get; set; } /// /// /// - public global::Mixedbread.DataSourceListResponse? Type89 { get; set; } + public global::Mixedbread.DataSource? Type89 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type90 { get; set; } + public global::Mixedbread.DataSourceType? Type90 { get; set; } /// /// /// - public global::Mixedbread.DeprecatedStoreFileUpsertParams? Type91 { get; set; } + public global::Mixedbread.AuthParamsVariant1? Type91 { get; set; } /// /// /// - public global::Mixedbread.StoreFileConfig2? Type92 { get; set; } + public global::Mixedbread.DataSourceOAuth2Params? Type92 { get; set; } /// /// /// - public global::System.Guid? Type93 { get; set; } + public global::Mixedbread.DataSourceApiKeyParams? Type93 { get; set; } /// /// /// - public global::Mixedbread.DocumentParserResult? Type94 { get; set; } + public global::Mixedbread.DataSourceAuthParamsVariant1Discriminator? Type94 { get; set; } /// /// /// - public global::Mixedbread.ReturnFormat? Type95 { get; set; } + public global::Mixedbread.DataSourceAuthParamsVariant1DiscriminatorType? Type95 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type96 { get; set; } + public global::Mixedbread.SyncStatus? Type96 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type97 { get; set; } + public global::Mixedbread.DataSourceConnectorCreateParams? Type97 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type98 { get; set; } + public global::Mixedbread.AnyOf? Type98 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type99 { get; set; } + public global::Mixedbread.DataSourceConnectorDeleted? Type99 { get; set; } /// /// /// - public global::Mixedbread.Embedding? Type100 { get; set; } + public global::Mixedbread.DataSourceConnectorUpdateParams? Type100 { get; set; } /// /// /// - public global::Mixedbread.EmbeddingItem? Type101 { get; set; } + public global::Mixedbread.DataSourceDeleted? Type101 { get; set; } /// /// /// - public global::Mixedbread.EmbeddingCreateParams? Type102 { get; set; } + public global::Mixedbread.DataSourceInstallation? Type102 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? Type103 { get; set; } + public global::Mixedbread.DataSourceInstallationListResponse? Type103 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? Type104 { get; set; } + public global::System.Collections.Generic.IList? Type104 { get; set; } /// /// /// - public global::Mixedbread.EncodingFormat3? Type105 { get; set; } + public global::Mixedbread.DataSourceListResponse? Type105 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type106 { get; set; } + public global::System.Collections.Generic.IList? Type106 { get; set; } /// /// /// - public global::Mixedbread.EmbeddingCreateResponse? Type107 { get; set; } + public global::Mixedbread.DeprecatedStoreFileUpsertParams? Type107 { get; set; } /// /// /// - public global::Mixedbread.Usage? Type108 { get; set; } + public global::Mixedbread.StoreFileConfig2? Type108 { get; set; } /// /// /// - public global::Mixedbread.AnyOf, global::System.Collections.Generic.IList>? Type109 { get; set; } + public global::System.Guid? Type109 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type110 { get; set; } + public global::Mixedbread.DocumentParserResult? Type110 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type111 { get; set; } + public global::Mixedbread.ReturnFormat? Type111 { get; set; } /// /// /// - public global::Mixedbread.MultiEncodingEmbedding? Type112 { get; set; } + public global::System.Collections.Generic.IList? Type112 { get; set; } /// /// /// - public global::Mixedbread.EnhancedJsonSchema? Type113 { get; set; } + public global::System.Collections.Generic.IList? Type113 { get; set; } /// /// /// - public global::Mixedbread.ErrorResponse? Type114 { get; set; } + public global::System.Collections.Generic.IList>? Type114 { get; set; } /// /// /// - public global::Mixedbread.InnerErrorResponse? Type115 { get; set; } + public global::System.Collections.Generic.IList? Type115 { get; set; } /// /// /// - public global::Mixedbread.ExpiresAfter? Type116 { get; set; } + public global::Mixedbread.Embedding? Type116 { get; set; } /// /// /// - public global::Mixedbread.ExtractContentCreateParams? Type117 { get; set; } + public global::Mixedbread.EmbeddingItem? Type117 { get; set; } /// /// /// - public global::Mixedbread.AnyOf, global::System.Collections.Generic.IList>>? Type118 { get; set; } + public global::Mixedbread.EmbeddingCreateParams? Type118 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type119 { get; set; } + public global::Mixedbread.AnyOf>? Type119 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type120 { get; set; } + public global::Mixedbread.AnyOf>? Type120 { get; set; } /// /// /// - public global::Mixedbread.TextInput? Type121 { get; set; } + public global::Mixedbread.EncodingFormat3? Type121 { get; set; } /// /// /// - public global::Mixedbread.ImageUrlInput2? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::Mixedbread.ExtractJobCreateParams? Type123 { get; set; } + public global::Mixedbread.EmbeddingCreateResponse? Type123 { get; set; } /// /// /// - public global::Mixedbread.ExtractionJob? Type124 { get; set; } + public global::Mixedbread.Usage? Type124 { get; set; } /// /// /// - public global::Mixedbread.ParsingJobStatus? Type125 { get; set; } + public global::Mixedbread.AnyOf, global::System.Collections.Generic.IList>? Type125 { get; set; } /// /// /// - public global::Mixedbread.ExtractionResult? Type126 { get; set; } + public global::System.Collections.Generic.IList? Type126 { get; set; } /// /// /// - public global::Mixedbread.FileCounts? Type127 { get; set; } + public global::System.Collections.Generic.IList? Type127 { get; set; } /// /// /// - public global::Mixedbread.FileDeleted? Type128 { get; set; } + public global::Mixedbread.MultiEncodingEmbedding? Type128 { get; set; } /// /// /// - public global::Mixedbread.FileListResponse? Type129 { get; set; } + public global::Mixedbread.EnhancedJsonSchema? Type129 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type130 { get; set; } + public global::Mixedbread.ErrorResponse? Type130 { get; set; } /// /// /// - public global::Mixedbread.FileObject? Type131 { get; set; } + public global::Mixedbread.InnerErrorResponse? Type131 { get; set; } /// /// /// - public global::Mixedbread.FileSearchResultRule? Type132 { get; set; } + public global::Mixedbread.ExpiresAfter? Type132 { get; set; } /// /// /// - public global::Mixedbread.HTTPValidationError? Type133 { get; set; } + public global::Mixedbread.ExtractContentCreateParams? Type133 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type134 { get; set; } + public global::Mixedbread.AnyOf, global::System.Collections.Generic.IList>>? Type134 { get; set; } /// /// /// - public global::Mixedbread.ValidationError? Type135 { get; set; } + public global::System.Collections.Generic.IList>? Type135 { get; set; } /// /// /// - public global::Mixedbread.ImageUrlInput? Type136 { get; set; } + public global::Mixedbread.AnyOf? Type136 { get; set; } /// /// /// - public global::Mixedbread.ImageUrlOutput? Type137 { get; set; } + public global::Mixedbread.TextInput? Type137 { get; set; } /// /// /// - public global::Mixedbread.ImageUrlInputChunk? Type138 { get; set; } + public global::Mixedbread.ImageUrlInput2? Type138 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant12? Type139 { get; set; } + public global::Mixedbread.ExtractJobCreateParams? Type139 { get; set; } /// /// /// - public global::Mixedbread.ImageUrlInputChunkGeneratedMetadataVariant1Discriminator? Type140 { get; set; } + public global::Mixedbread.ExtractionJob? Type140 { get; set; } /// /// /// - public global::Mixedbread.ImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type141 { get; set; } + public global::Mixedbread.ParsingJobStatus? Type141 { get; set; } /// /// /// - public global::Mixedbread.InfoResponse? Type142 { get; set; } + public global::Mixedbread.ExtractionResult? Type142 { get; set; } /// /// /// - public global::Mixedbread.JsonSchemaCreateParams? Type143 { get; set; } + public global::Mixedbread.FileCounts? Type143 { get; set; } /// /// /// - public global::Mixedbread.JsonSchemaEnhanceParams? Type144 { get; set; } + public global::Mixedbread.FileDeleted? Type144 { get; set; } /// /// /// - public global::Mixedbread.JsonSchemaValidateParams? Type145 { get; set; } + public global::Mixedbread.FileListResponse? Type145 { get; set; } /// /// /// - public global::Mixedbread.LinearDataSourceCreateOrUpdateParams? Type146 { get; set; } + public global::System.Collections.Generic.IList? Type146 { get; set; } /// /// /// - public global::Mixedbread.AuthParamsVariant12? Type147 { get; set; } + public global::Mixedbread.FileObject? Type147 { get; set; } /// /// /// - public global::Mixedbread.OAuth2CreateOrUpdateParams? Type148 { get; set; } + public global::Mixedbread.FileSearchResultRule? Type148 { get; set; } /// /// /// - public global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator? Type149 { get; set; } + public global::Mixedbread.GoogleDriveFolder? Type149 { get; set; } /// /// /// - public global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorType? Type150 { get; set; } + public global::Mixedbread.GoogleDriveFolderSelection? Type150 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type151 { get; set; } + public global::System.Collections.Generic.IList? Type151 { get; set; } /// /// /// - public global::Mixedbread.MarkdownHeading? Type152 { get; set; } + public global::Mixedbread.GoogleDriveFolderSelectionResponse? Type152 { get; set; } /// /// /// - public global::Mixedbread.MetadataCursorPagination? Type153 { get; set; } + public global::Mixedbread.GoogleDriveFolderSelectionUpdate? Type153 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type154 { get; set; } + public global::Mixedbread.GoogleDriveFolderSelectionUpdateParams? Type154 { get; set; } /// /// /// - public global::Mixedbread.StoreFileStatus? Type155 { get; set; } + public global::Mixedbread.GoogleDriveFolderSelectionUpdateResponse? Type155 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>, object>? Type156 { get; set; } + public global::Mixedbread.GoogleDriveInstallationConfigUpdateBody? Type156 { get; set; } /// /// /// - public global::Mixedbread.SearchFilterInput? Type157 { get; set; } + public global::Mixedbread.GoogleDriveInstallationOverview? Type157 { get; set; } /// /// /// - public global::Mixedbread.SearchFilterCondition? Type158 { get; set; } + public global::Mixedbread.GoogleDriveInstallationOverviewListResponse? Type158 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type159 { get; set; } + public global::System.Collections.Generic.IList? Type159 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type160 { get; set; } + public global::Mixedbread.GoogleDriveSync? Type160 { get; set; } /// /// /// - public global::Mixedbread.MetadataFacets? Type161 { get; set; } + public global::Mixedbread.GoogleDriveSyncParams? Type161 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type162 { get; set; } + public global::Mixedbread.GoogleDriveSyncResponse? Type162 { get; set; } /// /// /// - public global::Mixedbread.MetadataFacetsParams? Type163 { get; set; } + public global::Mixedbread.HTTPValidationError? Type163 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type164 { get; set; } + public global::System.Collections.Generic.IList? Type164 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type165 { get; set; } + public global::Mixedbread.ValidationError? Type165 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? Type166 { get; set; } + public global::Mixedbread.ImageUrlInput? Type166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>>? Type167 { get; set; } + public global::Mixedbread.ImageUrlOutput? Type167 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? Type168 { get; set; } + public global::Mixedbread.ImageUrlInputChunk? Type168 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type169 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant12? Type169 { get; set; } /// /// /// - public global::Mixedbread.StoreChunkSearchOptions? Type170 { get; set; } + public global::Mixedbread.ImageUrlInputChunkGeneratedMetadataVariant1Discriminator? Type170 { get; set; } /// /// /// - public global::Mixedbread.Mode? Type171 { get; set; } + public global::Mixedbread.ImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type171 { get; set; } /// /// /// - public global::Mixedbread.MultipleEncodingsEmbeddingItem? Type172 { get; set; } + public global::Mixedbread.InfoResponse? Type172 { get; set; } /// /// /// - public global::Mixedbread.MultiModalQuery? Type173 { get; set; } + public global::Mixedbread.IntegrationInstallation? Type173 { get; set; } /// /// /// - public global::Mixedbread.MultiModalQueryVariant2? Type174 { get; set; } + public global::Mixedbread.IntegrationInstallationListResponse? Type174 { get; set; } /// /// /// - public global::Mixedbread.MultiModalQueryVariant2Discriminator? Type175 { get; set; } + public global::System.Collections.Generic.IList? Type175 { get; set; } /// /// /// - public global::Mixedbread.MultiModalQueryVariant2DiscriminatorType? Type176 { get; set; } + public global::Mixedbread.IntegrationInstallationResponse? Type176 { get; set; } /// /// /// - public global::Mixedbread.MultipartUploadDetailResponse? Type177 { get; set; } + public global::Mixedbread.IntegrationProviderListResponse? Type177 { get; set; } /// /// /// - public global::Mixedbread.MultipartUploadListResponse? Type178 { get; set; } + public global::System.Collections.Generic.IList? Type178 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type179 { get; set; } + public global::Mixedbread.IntegrationProviderManifest? Type179 { get; set; } /// /// /// - public global::Mixedbread.MultipartUploadObject? Type180 { get; set; } + public global::Mixedbread.IntegrationProviderManifestProvider? Type180 { get; set; } /// /// /// - public global::Mixedbread.NotionDataSourceCreateOrUpdateParams? Type181 { get; set; } + public global::Mixedbread.IntegrationProviderManifestAuthType? Type181 { get; set; } /// /// /// - public global::Mixedbread.AuthParamsVariant13? Type182 { get; set; } + public global::System.Collections.Generic.IList? Type182 { get; set; } /// /// /// - public global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator? Type183 { get; set; } + public global::Mixedbread.IntegrationProviderManifestCapabilitie? Type183 { get; set; } /// /// /// - public global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorType? Type184 { get; set; } + public global::Mixedbread.IntegrationProviderManifestIngestionBacking2? Type184 { get; set; } /// /// /// - public global::Mixedbread.ParsingJob? Type185 { get; set; } + public global::Mixedbread.JsonSchemaCreateParams? Type185 { get; set; } /// /// /// - public global::Mixedbread.ParsingJobCreateParams? Type186 { get; set; } + public global::Mixedbread.JsonSchemaEnhanceParams? Type186 { get; set; } /// /// /// - public global::Mixedbread.ParsingJobDeleted? Type187 { get; set; } + public global::Mixedbread.JsonSchemaValidateParams? Type187 { get; set; } /// /// /// - public global::Mixedbread.ParsingJobListItem? Type188 { get; set; } + public global::Mixedbread.LinearDataSourceCreateOrUpdateParams? Type188 { get; set; } /// /// /// - public global::Mixedbread.ParsingJobListResponse? Type189 { get; set; } + public global::Mixedbread.AuthParamsVariant12? Type189 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type190 { get; set; } + public global::Mixedbread.OAuth2CreateOrUpdateParams? Type190 { get; set; } /// /// /// - public global::Mixedbread.QueryEnhanceMetadataFilter? Type191 { get; set; } + public global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator? Type191 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>, object>? Type192 { get; set; } + public global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorType? Type192 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type194 { get; set; } + public global::Mixedbread.MarkdownHeading? Type194 { get; set; } /// /// /// - public global::Mixedbread.QueryEnhanceParams? Type195 { get; set; } + public global::Mixedbread.MetadataCursorPagination? Type195 { get; set; } /// /// /// - public global::Mixedbread.QueryEnhanceQueryItem? Type196 { get; set; } + public global::System.Collections.Generic.IList? Type196 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type197 { get; set; } + public global::Mixedbread.StoreFileStatus? Type197 { get; set; } /// /// /// - public global::Mixedbread.QueryEnhanceQueryItemFilterMode? Type198 { get; set; } + public global::Mixedbread.AnyOf>, object>? Type198 { get; set; } /// /// /// - public global::Mixedbread.QueryEnhanceResults? Type199 { get; set; } + public global::Mixedbread.SearchFilterInput? Type199 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type200 { get; set; } + public global::Mixedbread.SearchFilterCondition? Type200 { get; set; } /// /// /// - public global::Mixedbread.ItemsItem? Type201 { get; set; } + public global::System.Collections.Generic.IList>? Type201 { get; set; } /// /// /// - public global::Mixedbread.QueryEnhanceSortItem? Type202 { get; set; } + public global::Mixedbread.AnyOf? Type202 { get; set; } /// /// /// - public global::Mixedbread.QueryEnhanceResultsItemDiscriminator? Type203 { get; set; } + public global::Mixedbread.MetadataFacets? Type203 { get; set; } /// /// /// - public global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType? Type204 { get; set; } + public global::System.Collections.Generic.Dictionary? Type204 { get; set; } /// /// /// - public global::Mixedbread.QueryEnhanceSortItemFilterMode? Type205 { get; set; } + public global::Mixedbread.MetadataFacetsParams? Type205 { get; set; } /// /// /// - public global::Mixedbread.QueryEnhanceSortItemDirection? Type206 { get; set; } + public global::System.Collections.Generic.IList>? Type206 { get; set; } /// /// /// - public global::Mixedbread.QueryRegexSubstitutionRule? Type207 { get; set; } + public global::Mixedbread.AnyOf? Type207 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type208 { get; set; } + public global::Mixedbread.AnyOf>>, global::System.Collections.Generic.IList, object>? Type208 { get; set; } /// /// /// - public global::Mixedbread.RegexFlag? Type209 { get; set; } + public global::System.Collections.Generic.IList>>? Type209 { get; set; } /// /// /// - public global::Mixedbread.QueryStringSubstitutionRule? Type210 { get; set; } + public global::Mixedbread.AnyOf>? Type210 { get; set; } /// /// /// - public global::Mixedbread.QuestionAnsweringOptions? Type211 { get; set; } + public global::System.Collections.Generic.IList? Type211 { get; set; } /// /// /// - public global::Mixedbread.RankedDocument? Type212 { get; set; } + public global::Mixedbread.StoreChunkSearchOptions? Type212 { get; set; } /// /// /// - public global::Mixedbread.RerankConfig? Type213 { get; set; } + public global::Mixedbread.Mode? Type213 { get; set; } /// /// /// - public global::Mixedbread.RerankParams? Type214 { get; set; } + public global::Mixedbread.MultipleEncodingsEmbeddingItem? Type214 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>>? Type215 { get; set; } + public global::Mixedbread.MultiModalQuery? Type215 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? Type216 { get; set; } + public global::Mixedbread.MultiModalQueryVariant2? Type216 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type217 { get; set; } + public global::Mixedbread.MultiModalQueryVariant2Discriminator? Type217 { get; set; } /// /// /// - public global::Mixedbread.RerankResponse? Type218 { get; set; } + public global::Mixedbread.MultiModalQueryVariant2DiscriminatorType? Type218 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type219 { get; set; } + public global::Mixedbread.MultipartUploadDetailResponse? Type219 { get; set; } /// /// /// - public global::Mixedbread.ScopeMethod? Type220 { get; set; } + public global::Mixedbread.MultipartUploadListResponse? Type220 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type221 { get; set; } /// /// /// - public global::Mixedbread.SearchCursorPagination? Type222 { get; set; } + public global::Mixedbread.MultipartUploadObject? Type222 { get; set; } /// /// /// - public global::Mixedbread.SearchFilterOutput? Type223 { get; set; } + public global::Mixedbread.NotionDataSourceCreateOrUpdateParams? Type223 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type224 { get; set; } + public global::Mixedbread.AuthParamsVariant13? Type224 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type225 { get; set; } + public global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator? Type225 { get; set; } /// /// /// - public global::Mixedbread.Store? Type226 { get; set; } + public global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorType? Type226 { get; set; } /// /// /// - public global::Mixedbread.StoreConfig2? Type227 { get; set; } + public global::Mixedbread.ParsingJob? Type227 { get; set; } /// /// /// - public global::Mixedbread.StoreStatus? Type228 { get; set; } + public global::Mixedbread.ParsingJobCreateParams? Type228 { get; set; } /// /// /// - public global::Mixedbread.StoreAgenticSearchEvent? Type229 { get; set; } + public global::Mixedbread.ParsingJobDeleted? Type229 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>, object>? Type230 { get; set; } + public global::Mixedbread.ParsingJobListItem? Type230 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type231 { get; set; } + public global::Mixedbread.ParsingJobListResponse? Type231 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type232 { get; set; } + public global::System.Collections.Generic.IList? Type232 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchEventResult? Type233 { get; set; } + public global::Mixedbread.QueryEnhanceMetadataFilter? Type233 { get; set; } /// /// /// - public global::Mixedbread.StoreChunkFilterParams? Type234 { get; set; } + public global::Mixedbread.AnyOf>, object>? Type234 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>, object>? Type235 { get; set; } + public global::System.Collections.Generic.IList>? Type235 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type236 { get; set; } + public global::Mixedbread.AnyOf? Type236 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type237 { get; set; } + public global::Mixedbread.QueryEnhanceParams? Type237 { get; set; } /// /// /// - public global::Mixedbread.StoreChunkGrepParams? Type238 { get; set; } + public global::Mixedbread.QueryEnhanceQueryItem? Type238 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type239 { get; set; } + public global::System.Collections.Generic.IList? Type239 { get; set; } /// /// /// - public global::Mixedbread.StoreChunkGrepTarget? Type240 { get; set; } + public global::Mixedbread.QueryEnhanceQueryItemFilterMode? Type240 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type241 { get; set; } + public global::Mixedbread.QueryEnhanceResults? Type241 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::Mixedbread.StoreChunkSearchParams? Type243 { get; set; } + public global::Mixedbread.ItemsItem? Type243 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type244 { get; set; } + public global::Mixedbread.QueryEnhanceSortItem? Type244 { get; set; } /// /// /// - public global::Mixedbread.StoreCostInfo? Type245 { get; set; } + public global::Mixedbread.QueryEnhanceResultsItemDiscriminator? Type245 { get; set; } /// /// /// - public global::Mixedbread.StoreCostListResponse? Type246 { get; set; } + public global::Mixedbread.QueryEnhanceResultsItemDiscriminatorType? Type246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type247 { get; set; } + public global::Mixedbread.QueryEnhanceSortItemFilterMode? Type247 { get; set; } /// /// /// - public global::Mixedbread.StoreCreateParams? Type248 { get; set; } + public global::Mixedbread.QueryEnhanceSortItemDirection? Type248 { get; set; } /// /// /// - public global::Mixedbread.StoreDeleted? Type249 { get; set; } + public global::Mixedbread.QueryRegexSubstitutionRule? Type249 { get; set; } /// /// /// - public global::Mixedbread.StoreEventHistogramBucket? Type250 { get; set; } + public global::System.Collections.Generic.IList? Type250 { get; set; } /// /// /// - public global::Mixedbread.StoreEventHistogramBucketType? Type251 { get; set; } + public global::Mixedbread.RegexFlag? Type251 { get; set; } /// /// /// - public global::Mixedbread.StoreEventHistogramParams? Type252 { get; set; } + public global::Mixedbread.QueryStringSubstitutionRule? Type252 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type253 { get; set; } + public global::Mixedbread.QuestionAnsweringOptions? Type253 { get; set; } /// /// /// - public global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1Item? Type254 { get; set; } + public global::Mixedbread.RankedDocument? Type254 { get; set; } /// /// /// - public global::Mixedbread.StoreEventHistogramResponse? Type255 { get; set; } + public global::Mixedbread.RerankConfig? Type255 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type256 { get; set; } + public global::Mixedbread.RerankParams? Type256 { get; set; } /// /// /// - public global::Mixedbread.StoreEventListResponse? Type257 { get; set; } + public global::System.Collections.Generic.IList>>? Type257 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type258 { get; set; } + public global::Mixedbread.AnyOf>? Type258 { get; set; } /// /// /// - public global::Mixedbread.DataItem? Type259 { get; set; } + public global::System.Collections.Generic.IList? Type259 { get; set; } /// /// /// - public global::Mixedbread.StoreIngestionEvent? Type260 { get; set; } + public global::Mixedbread.RerankResponse? Type260 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchEvent? Type261 { get; set; } + public global::System.Collections.Generic.IList? Type261 { get; set; } /// /// /// - public global::Mixedbread.StoreEventListResponseDataItemDiscriminator? Type262 { get; set; } + public global::Mixedbread.ScopeMethod? Type262 { get; set; } /// /// /// - public global::Mixedbread.StoreEventListResponseDataItemDiscriminatorType? Type263 { get; set; } + public global::Mixedbread.AnyOf? Type263 { get; set; } /// /// /// - public global::Mixedbread.StoreFile? Type264 { get; set; } + public global::Mixedbread.SearchCursorPagination? Type264 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type265 { get; set; } + public global::Mixedbread.SearchFilterOutput? Type265 { get; set; } /// /// /// - public global::Mixedbread.ChunksVariant1Item? Type266 { get; set; } + public global::System.Collections.Generic.IList>? Type266 { get; set; } /// /// /// - public global::Mixedbread.TextInputChunk? Type267 { get; set; } + public global::Mixedbread.AnyOf? Type267 { get; set; } /// /// /// - public global::Mixedbread.VideoUrlInputChunk? Type268 { get; set; } + public global::Mixedbread.SlackChannel? Type268 { get; set; } /// /// /// - public global::Mixedbread.StoreFileChunksVariant1ItemDiscriminator? Type269 { get; set; } + public global::Mixedbread.SlackChannelSyncStatus? Type269 { get; set; } /// /// /// - public global::Mixedbread.StoreFileChunksVariant1ItemDiscriminatorType? Type270 { get; set; } + public global::Mixedbread.SlackChannelLastSyncStatus2? Type270 { get; set; } /// /// /// - public global::Mixedbread.StoreFileParsingStrategy? Type271 { get; set; } + public global::Mixedbread.SlackChannelSelection? Type271 { get; set; } /// /// /// - public global::Mixedbread.StoreFileDeleted? Type272 { get; set; } + public global::System.Collections.Generic.IList? Type272 { get; set; } /// /// /// - public global::Mixedbread.StoreFileListResponse? Type273 { get; set; } + public global::Mixedbread.SlackChannelSelectionResponse? Type273 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type274 { get; set; } + public global::Mixedbread.SlackChannelSelectionUpdate? Type274 { get; set; } /// /// /// - public global::Mixedbread.StoreFileMetadataUpdateParams? Type275 { get; set; } + public global::Mixedbread.SlackChannelSelectionUpdateParams? Type275 { get; set; } /// /// /// - public global::Mixedbread.StoreGrepResponse? Type276 { get; set; } + public global::Mixedbread.SlackChannelSelectionUpdateResponse? Type276 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type277 { get; set; } + public global::Mixedbread.SlackChannelSync? Type277 { get; set; } /// /// /// - public global::Mixedbread.DataItem2? Type278 { get; set; } + public global::Mixedbread.SlackChannelSyncParams? Type278 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? Type279 { get; set; } + public global::Mixedbread.SlackChannelSyncResponse? Type279 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? Type280 { get; set; } + public global::Mixedbread.SlackInstallationConfigUpdateBody? Type280 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? Type281 { get; set; } + public global::Mixedbread.SlackInstallationOverview? Type281 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? Type282 { get; set; } + public global::Mixedbread.SlackInstallationOverviewListResponse? Type282 { get; set; } /// /// /// - public global::Mixedbread.StoreGrepResponseDataItemDiscriminator? Type283 { get; set; } + public global::System.Collections.Generic.IList? Type283 { get; set; } /// /// /// - public global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType? Type284 { get; set; } + public global::Mixedbread.SlackManifestResponse? Type284 { get; set; } /// /// /// - public global::Mixedbread.StoreListChunksResponse? Type285 { get; set; } + public global::Mixedbread.SlackManualConnectBody? Type285 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type286 { get; set; } + public global::Mixedbread.Store? Type286 { get; set; } /// /// /// - public global::Mixedbread.DataItem3? Type287 { get; set; } + public global::Mixedbread.StoreConfig2? Type287 { get; set; } /// /// /// - public global::Mixedbread.StoreListChunksResponseDataItemDiscriminator? Type288 { get; set; } + public global::Mixedbread.StoreStatus? Type288 { get; set; } /// /// /// - public global::Mixedbread.StoreListChunksResponseDataItemDiscriminatorType? Type289 { get; set; } + public global::Mixedbread.StoreAgenticSearchEvent? Type289 { get; set; } /// /// /// - public global::Mixedbread.StoreListResponse? Type290 { get; set; } + public global::Mixedbread.AnyOf>, object>? Type290 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type291 { get; set; } + public global::System.Collections.Generic.IList? Type291 { get; set; } /// /// /// - public global::Mixedbread.StoreQAParams? Type292 { get; set; } + public global::System.Collections.Generic.IList? Type292 { get; set; } /// /// /// - public global::Mixedbread.StoreQAResults? Type293 { get; set; } + public global::Mixedbread.StoreSearchEventResult? Type293 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type294 { get; set; } + public global::Mixedbread.StoreChunkFilterParams? Type294 { get; set; } /// /// /// - public global::Mixedbread.SourcesItem? Type295 { get; set; } + public global::Mixedbread.AnyOf>, object>? Type295 { get; set; } /// /// /// - public global::Mixedbread.StoreQAResultsSourceDiscriminator? Type296 { get; set; } + public global::System.Collections.Generic.IList>? Type296 { get; set; } /// /// /// - public global::Mixedbread.StoreQAResultsSourceDiscriminatorType? Type297 { get; set; } + public global::Mixedbread.AnyOf? Type297 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchEventRewriteRankDirection2? Type298 { get; set; } + public global::Mixedbread.StoreChunkGrepParams? Type298 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchEventRewriteRankMode2? Type299 { get; set; } + public global::System.Collections.Generic.IList? Type299 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchEventResultFirstStageSource2? Type300 { get; set; } + public global::Mixedbread.StoreChunkGrepTarget? Type300 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchResponse? Type301 { get; set; } + public global::Mixedbread.AnyOf? Type301 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type302 { get; set; } + public global::Mixedbread.AnyOf? Type302 { get; set; } /// /// /// - public global::Mixedbread.DataItem4? Type303 { get; set; } + public global::Mixedbread.StoreChunkSearchParams? Type303 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchResponseDataItemDiscriminator? Type304 { get; set; } + public global::Mixedbread.AnyOf? Type304 { get; set; } /// /// /// - public global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType? Type305 { get; set; } + public global::Mixedbread.StoreCostInfo? Type305 { get; set; } /// /// /// - public global::Mixedbread.StoreUpdateParams? Type306 { get; set; } + public global::Mixedbread.StoreCostListResponse? Type306 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant13? Type307 { get; set; } + public global::System.Collections.Generic.IList? Type307 { get; set; } /// /// /// - public global::Mixedbread.TextInputChunkGeneratedMetadataVariant1Discriminator? Type308 { get; set; } + public global::Mixedbread.StoreCreateParams? Type308 { get; set; } /// /// /// - public global::Mixedbread.TextInputChunkGeneratedMetadataVariant1DiscriminatorType? Type309 { get; set; } + public global::Mixedbread.StoreDeleted? Type309 { get; set; } /// /// /// - public global::Mixedbread.ValidatedJsonSchema? Type310 { get; set; } + public global::Mixedbread.StoreEventHistogramBucket? Type310 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type311 { get; set; } + public global::Mixedbread.StoreEventHistogramBucketType? Type311 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type312 { get; set; } + public global::Mixedbread.StoreEventHistogramParams? Type312 { get; set; } /// /// /// - public global::Mixedbread.VectorStore? Type313 { get; set; } + public global::System.Collections.Generic.IList? Type313 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreChunkSearchOptions? Type314 { get; set; } + public global::Mixedbread.StoreEventHistogramParamsEventTypesVariant1Item? Type314 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreChunkSearchParams? Type315 { get; set; } + public global::Mixedbread.StoreEventHistogramResponse? Type315 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreCreateParams? Type316 { get; set; } + public global::System.Collections.Generic.IList? Type316 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreDeleted? Type317 { get; set; } + public global::Mixedbread.StoreEventListResponse? Type317 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreFile? Type318 { get; set; } + public global::System.Collections.Generic.IList? Type318 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type319 { get; set; } + public global::Mixedbread.DataItem? Type319 { get; set; } /// /// /// - public global::Mixedbread.ChunksVariant1Item2? Type320 { get; set; } + public global::Mixedbread.StoreIngestionEvent? Type320 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminator? Type321 { get; set; } + public global::Mixedbread.StoreSearchEvent? Type321 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminatorType? Type322 { get; set; } + public global::Mixedbread.StoreGrepEvent? Type322 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreFileDeleted? Type323 { get; set; } + public global::Mixedbread.StoreEventListResponseDataItemDiscriminator? Type323 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreFileListResponse? Type324 { get; set; } + public global::Mixedbread.StoreEventListResponseDataItemDiscriminatorType? Type324 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type325 { get; set; } + public global::Mixedbread.StoreFile? Type325 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreFileStatus? Type326 { get; set; } + public global::System.Collections.Generic.IList? Type326 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreListResponse? Type327 { get; set; } + public global::Mixedbread.ChunksVariant1Item? Type327 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type328 { get; set; } + public global::Mixedbread.TextInputChunk? Type328 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreQAParams? Type329 { get; set; } + public global::Mixedbread.VideoUrlInputChunk? Type329 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreQAResults? Type330 { get; set; } + public global::Mixedbread.StoreFileChunksVariant1ItemDiscriminator? Type330 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type331 { get; set; } + public global::Mixedbread.StoreFileChunksVariant1ItemDiscriminatorType? Type331 { get; set; } /// /// /// - public global::Mixedbread.SourcesItem2? Type332 { get; set; } + public global::Mixedbread.StoreFileParsingStrategy? Type332 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? Type333 { get; set; } + public global::Mixedbread.StoreFileDeleted? Type333 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? Type334 { get; set; } + public global::Mixedbread.StoreFileListResponse? Type334 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? Type335 { get; set; } + public global::System.Collections.Generic.IList? Type335 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? Type336 { get; set; } + public global::Mixedbread.StoreFileMetadataUpdateParams? Type336 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreQAResultsSourceDiscriminator? Type337 { get; set; } + public global::Mixedbread.StoreGrepResponse? Type337 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreQAResultsSourceDiscriminatorType? Type338 { get; set; } + public global::System.Collections.Generic.IList? Type338 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreSearchResponse? Type339 { get; set; } + public global::Mixedbread.DataItem2? Type339 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type340 { get; set; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? Type340 { get; set; } /// /// /// - public global::Mixedbread.DataItem5? Type341 { get; set; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? Type341 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator? Type342 { get; set; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? Type342 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType? Type343 { get; set; } + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? Type343 { get; set; } /// /// /// - public global::Mixedbread.VectorStoreUpdateParams? Type344 { get; set; } + public global::Mixedbread.StoreGrepResponseDataItemDiscriminator? Type344 { get; set; } /// /// /// - public global::Mixedbread.VideoUrl? Type345 { get; set; } + public global::Mixedbread.StoreGrepResponseDataItemDiscriminatorType? Type345 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant14? Type346 { get; set; } + public global::Mixedbread.StoreListChunksResponse? Type346 { get; set; } /// /// /// - public global::Mixedbread.VideoUrlInputChunkGeneratedMetadataVariant1Discriminator? Type347 { get; set; } + public global::System.Collections.Generic.IList? Type347 { get; set; } /// /// /// - public global::Mixedbread.VideoUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type348 { get; set; } + public global::Mixedbread.DataItem3? Type348 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant15? Type349 { get; set; } + public global::Mixedbread.StoreListChunksResponseDataItemDiscriminator? Type349 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator? Type350 { get; set; } + public global::Mixedbread.StoreListChunksResponseDataItemDiscriminatorType? Type350 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant16? Type351 { get; set; } + public global::Mixedbread.StoreListResponse? Type351 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator? Type352 { get; set; } + public global::System.Collections.Generic.IList? Type352 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant17? Type353 { get; set; } + public global::Mixedbread.StoreQAParams? Type353 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1Discriminator? Type354 { get; set; } + public global::Mixedbread.StoreQAResults? Type354 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1DiscriminatorType? Type355 { get; set; } + public global::System.Collections.Generic.IList? Type355 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant18? Type356 { get; set; } + public global::Mixedbread.SourcesItem? Type356 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator? Type357 { get; set; } + public global::Mixedbread.StoreQAResultsSourceDiscriminator? Type357 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParams? Type358 { get; set; } + public global::Mixedbread.StoreQAResultsSourceDiscriminatorType? Type358 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type359 { get; set; } + public global::Mixedbread.StoreSearchEventRewriteRankDirection2? Type359 { get; set; } /// /// /// - public global::Mixedbread.RulesItem? Type360 { get; set; } + public global::Mixedbread.StoreSearchEventRewriteRankMode2? Type360 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminator? Type361 { get; set; } + public global::Mixedbread.StoreSearchEventResultFirstStageSource2? Type361 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminatorType? Type362 { get; set; } + public global::Mixedbread.StoreSearchResponse? Type362 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleDeleted? Type363 { get; set; } + public global::System.Collections.Generic.IList? Type363 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponse? Type364 { get; set; } + public global::Mixedbread.DataItem4? Type364 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type365 { get; set; } + public global::Mixedbread.StoreSearchResponseDataItemDiscriminator? Type365 { get; set; } /// /// /// - public global::Mixedbread.RulesItem2? Type366 { get; set; } + public global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType? Type366 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminator? Type367 { get; set; } + public global::Mixedbread.StoreUpdateParams? Type367 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminatorType? Type368 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant13? Type368 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParams? Type369 { get; set; } + public global::Mixedbread.TextInputChunkGeneratedMetadataVariant1Discriminator? Type369 { get; set; } /// /// /// - public global::Mixedbread.Rule? Type370 { get; set; } + public global::Mixedbread.TextInputChunkGeneratedMetadataVariant1DiscriminatorType? Type370 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminator? Type371 { get; set; } + public global::Mixedbread.ValidatedJsonSchema? Type371 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminatorType? Type372 { get; set; } + public global::System.Collections.Generic.IList>? Type372 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleted? Type373 { get; set; } + public global::Mixedbread.AnyOf? Type373 { get; set; } /// /// /// - public global::Mixedbread.DeletedRule? Type374 { get; set; } + public global::Mixedbread.VectorStore? Type374 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator? Type375 { get; set; } + public global::Mixedbread.VectorStoreChunkSearchOptions? Type375 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType? Type376 { get; set; } + public global::Mixedbread.VectorStoreChunkSearchParams? Type376 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParams? Type377 { get; set; } + public global::Mixedbread.VectorStoreCreateParams? Type377 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type378 { get; set; } + public global::Mixedbread.VectorStoreDeleted? Type378 { get; set; } /// /// /// - public global::Mixedbread.RulesVariant1Item? Type379 { get; set; } + public global::Mixedbread.VectorStoreFile? Type379 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator? Type380 { get; set; } + public global::System.Collections.Generic.IList? Type380 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminatorType? Type381 { get; set; } + public global::Mixedbread.ChunksVariant1Item2? Type381 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParams? Type382 { get; set; } + public global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminator? Type382 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type383 { get; set; } + public global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminatorType? Type383 { get; set; } /// /// /// - public global::Mixedbread.RulesItem3? Type384 { get; set; } + public global::Mixedbread.VectorStoreFileDeleted? Type384 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminator? Type385 { get; set; } + public global::Mixedbread.VectorStoreFileListResponse? Type385 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminatorType? Type386 { get; set; } + public global::System.Collections.Generic.IList? Type386 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleDeleted? Type387 { get; set; } + public global::Mixedbread.VectorStoreFileStatus? Type387 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponse? Type388 { get; set; } + public global::Mixedbread.VectorStoreListResponse? Type388 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type389 { get; set; } + public global::System.Collections.Generic.IList? Type389 { get; set; } /// /// /// - public global::Mixedbread.RulesItem4? Type390 { get; set; } + public global::Mixedbread.VectorStoreQAParams? Type390 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminator? Type391 { get; set; } + public global::Mixedbread.VectorStoreQAResults? Type391 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminatorType? Type392 { get; set; } + public global::System.Collections.Generic.IList? Type392 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParams? Type393 { get; set; } + public global::Mixedbread.SourcesItem2? Type393 { get; set; } /// /// /// - public global::Mixedbread.Rule2? Type394 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? Type394 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminator? Type395 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? Type395 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminatorType? Type396 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? Type396 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleted? Type397 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? Type397 { get; set; } /// /// /// - public global::Mixedbread.DeletedRule2? Type398 { get; set; } + public global::Mixedbread.VectorStoreQAResultsSourceDiscriminator? Type398 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator? Type399 { get; set; } + public global::Mixedbread.VectorStoreQAResultsSourceDiscriminatorType? Type399 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType? Type400 { get; set; } + public global::Mixedbread.VectorStoreSearchResponse? Type400 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParams? Type401 { get; set; } + public global::System.Collections.Generic.IList? Type401 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type402 { get; set; } + public global::Mixedbread.DataItem5? Type402 { get; set; } /// /// /// - public global::Mixedbread.RulesVariant1Item2? Type403 { get; set; } + public global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator? Type403 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator? Type404 { get; set; } + public global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType? Type404 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminatorType? Type405 { get; set; } + public global::Mixedbread.VectorStoreUpdateParams? Type405 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant19? Type406 { get; set; } + public global::Mixedbread.VideoUrl? Type406 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator? Type407 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant14? Type407 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type408 { get; set; } + public global::Mixedbread.VideoUrlInputChunkGeneratedMetadataVariant1Discriminator? Type408 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant110? Type409 { get; set; } + public global::Mixedbread.VideoUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type409 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator? Type410 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant15? Type410 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type411 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator? Type411 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant111? Type412 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant16? Type412 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1Discriminator? Type413 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator? Type413 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1DiscriminatorType? Type414 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant17? Type414 { get; set; } /// /// /// - public global::Mixedbread.GeneratedMetadataVariant112? Type415 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1Discriminator? Type415 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator? Type416 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1DiscriminatorType? Type416 { get; set; } /// /// /// - public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type417 { get; set; } + public global::Mixedbread.GeneratedMetadataVariant18? Type417 { get; set; } /// /// /// - public global::Mixedbread.AnyOf? Type418 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator? Type418 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type419 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParams? Type419 { get; set; } /// /// /// - public global::Mixedbread.ListStoreEventsEventType? Type420 { get; set; } + public global::System.Collections.Generic.IList? Type420 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? Type421 { get; set; } + public global::Mixedbread.RulesItem? Type421 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type422 { get; set; } + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminator? Type422 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminatorType? Type423 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleDeleted? Type424 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponse? Type425 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type426 { get; set; } + /// + /// + /// + public global::Mixedbread.RulesItem2? Type427 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminator? Type428 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminatorType? Type429 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParams? Type430 { get; set; } + /// + /// + /// + public global::Mixedbread.Rule? Type431 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminator? Type432 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminatorType? Type433 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleted? Type434 { get; set; } + /// + /// + /// + public global::Mixedbread.DeletedRule? Type435 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator? Type436 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType? Type437 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParams? Type438 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type439 { get; set; } + /// + /// + /// + public global::Mixedbread.RulesVariant1Item? Type440 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator? Type441 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminatorType? Type442 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParams? Type443 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type444 { get; set; } + /// + /// + /// + public global::Mixedbread.RulesItem3? Type445 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminator? Type446 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminatorType? Type447 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleDeleted? Type448 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponse? Type449 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type450 { get; set; } + /// + /// + /// + public global::Mixedbread.RulesItem4? Type451 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminator? Type452 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminatorType? Type453 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParams? Type454 { get; set; } + /// + /// + /// + public global::Mixedbread.Rule2? Type455 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminator? Type456 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminatorType? Type457 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleted? Type458 { get; set; } + /// + /// + /// + public global::Mixedbread.DeletedRule2? Type459 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator? Type460 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType? Type461 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParams? Type462 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type463 { get; set; } + /// + /// + /// + public global::Mixedbread.RulesVariant1Item2? Type464 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator? Type465 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminatorType? Type466 { get; set; } + /// + /// + /// + public global::Mixedbread.GeneratedMetadataVariant19? Type467 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator? Type468 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type469 { get; set; } + /// + /// + /// + public global::Mixedbread.GeneratedMetadataVariant110? Type470 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator? Type471 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type472 { get; set; } + /// + /// + /// + public global::Mixedbread.GeneratedMetadataVariant111? Type473 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1Discriminator? Type474 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1DiscriminatorType? Type475 { get; set; } + /// + /// + /// + public global::Mixedbread.GeneratedMetadataVariant112? Type476 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator? Type477 { get; set; } + /// + /// + /// + public global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1DiscriminatorType? Type478 { get; set; } + /// + /// + /// + public global::Mixedbread.AnyOf? Type479 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type480 { get; set; } + /// + /// + /// + public global::Mixedbread.ListStoreEventsEventType? Type481 { get; set; } + /// + /// + /// + public global::Mixedbread.AnyOf>? Type482 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type483 { get; set; } /// /// @@ -1729,314 +1973,350 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType2 { get; set; } + public global::System.Collections.Generic.List? ListType2 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType3 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType4 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType5 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType6 { get; set; } + /// + /// + /// + public global::Mixedbread.AnyOf>? ListType7 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType8 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType9 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType10 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType3 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType4 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType5 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? ListType6 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType7 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List>? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::Mixedbread.AnyOf>? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + public global::Mixedbread.AnyOf>? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType13 { get; set; } + public global::Mixedbread.AnyOf, global::System.Collections.Generic.List>? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::Mixedbread.AnyOf, global::System.Collections.Generic.List>>? ListType25 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? ListType17 { get; set; } + public global::System.Collections.Generic.List>? ListType26 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::Mixedbread.AnyOf, global::System.Collections.Generic.List>? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::Mixedbread.AnyOf, global::System.Collections.Generic.List>>? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::Mixedbread.AnyOf>, object>? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List>? ListType37 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>, object>? ListType29 { get; set; } + public global::System.Collections.Generic.List>? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType30 { get; set; } + public global::Mixedbread.AnyOf>>, global::System.Collections.Generic.List, object>? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType31 { get; set; } + public global::System.Collections.Generic.List>>? ListType40 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>>, global::System.Collections.Generic.List, object>? ListType32 { get; set; } + public global::Mixedbread.AnyOf>? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List>>? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::Mixedbread.AnyOf>, object>? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List>? ListType46 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>, object>? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List>>? ListType50 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::Mixedbread.AnyOf>? ListType51 { get; set; } /// /// /// - public global::System.Collections.Generic.List>>? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType52 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType53 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List>? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType55 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType56 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>, object>? ListType48 { get; set; } + public global::Mixedbread.AnyOf>, object>? ListType57 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType58 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType59 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>, object>? ListType51 { get; set; } + public global::Mixedbread.AnyOf>, object>? ListType60 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType52 { get; set; } + public global::System.Collections.Generic.List>? ListType61 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List? ListType62 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType64 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType65 { get; set; } + public global::System.Collections.Generic.List>? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::Mixedbread.AnyOf>? ListType78 { get; set; } + public global::Mixedbread.AnyOf>? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.g.cs index c155b20..6408b09 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.g.cs @@ -72,6 +72,16 @@ public sealed partial class MixedbreadClient : global::Mixedbread.IMixedbreadCli AutoSDKServerConfiguration = AutoSDKServerConfiguration, }; + /// + /// + /// + public BucketsClient Buckets => new BucketsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContext = JsonSerializerContext, + AutoSDKServerConfiguration = AutoSDKServerConfiguration, + }; + /// /// /// @@ -112,6 +122,16 @@ public sealed partial class MixedbreadClient : global::Mixedbread.IMixedbreadCli AutoSDKServerConfiguration = AutoSDKServerConfiguration, }; + /// + /// + /// + public IntegrationsClient Integrations => new IntegrationsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContext = JsonSerializerContext, + AutoSDKServerConfiguration = AutoSDKServerConfiguration, + }; + /// /// /// diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfig.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfig.Json.g.cs index e0c1911..d6f9338 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfig.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfig.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AgenticSearchConfig; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AgenticSearchConfig? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AgenticSearchConfig; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfigInstructions.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfigInstructions.Json.g.cs index 65415ed..4a8f3b7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfigInstructions.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchConfigInstructions.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AgenticSearchConfigInstructions; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AgenticSearchConfigInstructions? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AgenticSearchConfigInstructions; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchTokenUsage.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchTokenUsage.Json.g.cs index ae65417..9696307 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchTokenUsage.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchTokenUsage.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AgenticSearchTokenUsage; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AgenticSearchTokenUsage? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AgenticSearchTokenUsage; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchTokenUsage.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchTokenUsage.g.cs index 6f9fd2f..0a43c8c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchTokenUsage.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticSearchTokenUsage.g.cs @@ -4,7 +4,7 @@ namespace Mixedbread { /// - /// Token usage and cost for LLM calls made during an agentic search. + /// Token usage for LLM calls made during an agentic search. /// public sealed partial class AgenticSearchTokenUsage { @@ -29,13 +29,6 @@ public sealed partial class AgenticSearchTokenUsage [global::System.Text.Json.Serialization.JsonPropertyName("total_tokens")] public int? TotalTokens { get; set; } - /// - /// Estimated cost in USD
- /// Default Value: 0 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("cost_usd")] - public double? CostUsd { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -57,23 +50,17 @@ public sealed partial class AgenticSearchTokenUsage /// Total tokens consumed (prompt + completion)
/// Default Value: 0 /// - /// - /// Estimated cost in USD
- /// Default Value: 0 - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AgenticSearchTokenUsage( int? promptTokens, int? completionTokens, - int? totalTokens, - double? costUsd) + int? totalTokens) { this.PromptTokens = promptTokens; this.CompletionTokens = completionTokens; this.TotalTokens = totalTokens; - this.CostUsd = costUsd; } /// diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCall.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCall.Json.g.cs index 487ff78..3050ac5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCall.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCall.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AgenticToolCall; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AgenticToolCall? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AgenticToolCall; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCall.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCall.g.cs index 94948a6..7dea0f6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCall.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCall.g.cs @@ -50,8 +50,7 @@ public sealed partial class AgenticToolCall /// Arguments passed to the tool (gen_ai.tool.call.arguments) /// [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Arguments { get; set; } + public object? Arguments { get; set; } /// /// Result returned to the model (gen_ai.tool.call.result). None if the tool errored. @@ -86,13 +85,13 @@ public sealed partial class AgenticToolCall /// /// Time taken to execute the tool call /// - /// - /// Arguments passed to the tool (gen_ai.tool.call.arguments) - /// /// /// Category of the tool (gen_ai.tool.type)
/// Default Value: function /// + /// + /// Arguments passed to the tool (gen_ai.tool.call.arguments) + /// /// /// Result returned to the model (gen_ai.tool.call.result). None if the tool errored. /// @@ -107,8 +106,8 @@ public AgenticToolCall( string toolName, global::System.DateTime startedAt, string duration, - object arguments, global::Mixedbread.AgenticToolCallToolType? toolType, + object? arguments, object? result, string? error) { @@ -117,7 +116,7 @@ public AgenticToolCall( this.ToolType = toolType; this.StartedAt = startedAt; this.Duration = duration ?? throw new global::System.ArgumentNullException(nameof(duration)); - this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); + this.Arguments = arguments; this.Result = result; this.Error = error; } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallArguments.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallArguments.Json.g.cs index 8f6fbde..968e9b4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallArguments.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallArguments.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AgenticToolCallArguments; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AgenticToolCallArguments? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AgenticToolCallArguments; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallArguments2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallArguments2.Json.g.cs new file mode 100644 index 0000000..2028c03 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallArguments2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class AgenticToolCallArguments2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.AgenticToolCallArguments2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.AgenticToolCallArguments2), + jsonSerializerContext) as global::Mixedbread.AgenticToolCallArguments2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AgenticToolCallArguments2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.AgenticToolCallArguments2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.AgenticToolCallArguments2), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AgenticToolCallArguments2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallArguments2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallArguments2.g.cs new file mode 100644 index 0000000..defd5e3 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallArguments2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class AgenticToolCallArguments2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallError.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallError.Json.g.cs index 7d2fbfb..b4157b7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallError.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallError.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AgenticToolCallError; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AgenticToolCallError? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AgenticToolCallError; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallResult.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallResult.Json.g.cs index 3657c35..f54a00e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallResult.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallResult.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AgenticToolCallResult; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AgenticToolCallResult? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AgenticToolCallResult; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallResult2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallResult2.Json.g.cs index 1d1364e..782ce1a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallResult2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AgenticToolCallResult2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AgenticToolCallResult2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AgenticToolCallResult2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AgenticToolCallResult2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKey.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKey.Json.g.cs index c023304..5edc0e2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKey.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKey.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKey; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKey? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKey; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateOrUpdateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateOrUpdateParams.Json.g.cs index d16b4d9..33f5464 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateOrUpdateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateOrUpdateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyCreateOrUpdateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyCreateOrUpdateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyCreateOrUpdateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateParams.Json.g.cs index c5464bb..1b37894 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyCreateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyCreateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyCreateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateParamsExpiresAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateParamsExpiresAt.Json.g.cs index d201088..4f1c94e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateParamsExpiresAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateParamsExpiresAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyCreateParamsExpiresAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyCreateParamsExpiresAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyCreateParamsExpiresAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateParamsScope.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateParamsScope.Json.g.cs index 9c2415c..d33c6a6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateParamsScope.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreateParamsScope.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyCreateParamsScope; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyCreateParamsScope? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyCreateParamsScope; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreated.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreated.Json.g.cs index 3374719..d39627a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreated.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreated.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyCreated; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyCreated? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyCreated; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreatedExpiresAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreatedExpiresAt.Json.g.cs index c83236e..808b4a2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreatedExpiresAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreatedExpiresAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyCreatedExpiresAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyCreatedExpiresAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyCreatedExpiresAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreatedLastActiveAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreatedLastActiveAt.Json.g.cs index e94d2b9..d780616 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreatedLastActiveAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreatedLastActiveAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyCreatedLastActiveAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyCreatedLastActiveAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyCreatedLastActiveAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreatedScope.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreatedScope.Json.g.cs index 5b262a6..94b83ce 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreatedScope.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyCreatedScope.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyCreatedScope; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyCreatedScope? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyCreatedScope; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyDeleted.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyDeleted.Json.g.cs index ec023be..11da18a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyDeleted.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyDeleted.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyDeleted; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyDeleted? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyDeleted; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyExpiresAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyExpiresAt.Json.g.cs index 2e79018..eba5364 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyExpiresAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyExpiresAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyExpiresAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyExpiresAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyExpiresAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyLastActiveAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyLastActiveAt.Json.g.cs index 913b5a9..01794fd 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyLastActiveAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyLastActiveAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyLastActiveAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyLastActiveAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyLastActiveAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyListResponse.Json.g.cs index 94fe86e..63a0078 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyListResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyScope.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyScope.Json.g.cs index af5faea..cdf1598 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyScope.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyScope.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyScope; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyScope? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyScope; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyUpdateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyUpdateParams.Json.g.cs index 26c81de..20817d4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyUpdateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyUpdateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyUpdateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyUpdateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyUpdateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyUpdateParamsExpiresAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyUpdateParamsExpiresAt.Json.g.cs index 787d654..4831d3d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyUpdateParamsExpiresAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyUpdateParamsExpiresAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyUpdateParamsExpiresAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyUpdateParamsExpiresAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyUpdateParamsExpiresAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyUpdateParamsName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyUpdateParamsName.Json.g.cs index 3031242..bfd4b66 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyUpdateParamsName.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ApiKeyUpdateParamsName.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ApiKeyUpdateParamsName; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ApiKeyUpdateParamsName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ApiKeyUpdateParamsName; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadata.Json.g.cs index eee793f..7bb2a2e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataAudioFormat.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataAudioFormat.Json.g.cs index b6913c8..3895a41 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataAudioFormat.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataAudioFormat.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioChunkGeneratedMetadataAudioFormat; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioChunkGeneratedMetadataAudioFormat? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioChunkGeneratedMetadataAudioFormat; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataBpm.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataBpm.Json.g.cs index d5e356d..2508baf 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataBpm.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataBpm.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioChunkGeneratedMetadataBpm; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioChunkGeneratedMetadataBpm? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioChunkGeneratedMetadataBpm; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataChannels.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataChannels.Json.g.cs index 7c772a8..4a2508c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataChannels.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataChannels.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioChunkGeneratedMetadataChannels; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioChunkGeneratedMetadataChannels? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioChunkGeneratedMetadataChannels; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataFileExtension.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataFileExtension.Json.g.cs index 35260a4..0b555bd 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataFileExtension.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataFileExtension.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioChunkGeneratedMetadataFileExtension? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataFileSize.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataFileSize.Json.g.cs index bf59e9b..5ede4ca 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataFileSize.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataFileSize.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioChunkGeneratedMetadataFileSize; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioChunkGeneratedMetadataFileSize? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioChunkGeneratedMetadataFileSize; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataSampleRate.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataSampleRate.Json.g.cs index 6962d08..9da40b3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataSampleRate.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataSampleRate.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioChunkGeneratedMetadataSampleRate; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioChunkGeneratedMetadataSampleRate? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioChunkGeneratedMetadataSampleRate; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataTotalDurationSeconds.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataTotalDurationSeconds.Json.g.cs index 243a331..3213ff4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataTotalDurationSeconds.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioChunkGeneratedMetadataTotalDurationSeconds.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioChunkGeneratedMetadataTotalDurationSeconds; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioChunkGeneratedMetadataTotalDurationSeconds? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioChunkGeneratedMetadataTotalDurationSeconds; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrl.Json.g.cs index f7b49f4..d729ac1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrl.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrl.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioUrl; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioUrl; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunk.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunk.Json.g.cs index 478cb18..2e55c6d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunk.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunk.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioUrlInputChunk; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioUrlInputChunk? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioUrlInputChunk; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkAudioUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkAudioUrl.Json.g.cs index 024a564..f20371c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkAudioUrl.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkAudioUrl.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioUrlInputChunkAudioUrl; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioUrlInputChunkAudioUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioUrlInputChunkAudioUrl; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkGeneratedMetadata.Json.g.cs index 20ef1dc..6685074 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioUrlInputChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs index 71dcf6e..926cb5e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioUrlInputChunkGeneratedMetadataVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkModel.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkModel.Json.g.cs index 4d63836..e18eab2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkModel.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkModel.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioUrlInputChunkModel; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioUrlInputChunkModel? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioUrlInputChunkModel; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkSummary.Json.g.cs index 478c9d7..d8b85cd 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioUrlInputChunkSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioUrlInputChunkSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioUrlInputChunkSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkTranscription.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkTranscription.Json.g.cs index a489dd0..04c09a9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkTranscription.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AudioUrlInputChunkTranscription.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AudioUrlInputChunkTranscription; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AudioUrlInputChunkTranscription? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AudioUrlInputChunkTranscription; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant1.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant1.Json.g.cs index bc158e2..e4dfe3e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant1.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant1.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AuthParamsVariant1?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AuthParamsVariant1? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AuthParamsVariant1?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant12.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant12.Json.g.cs index e0fff48..ea67ab5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant12.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant12.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AuthParamsVariant12?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AuthParamsVariant12? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AuthParamsVariant12?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant13.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant13.Json.g.cs index 0c559d3..26abdfb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant13.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthParamsVariant13.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AuthParamsVariant13?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AuthParamsVariant13? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AuthParamsVariant13?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeDataSourceResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeDataSourceResponse.Json.g.cs index ce55e98..b8f1984 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeDataSourceResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeDataSourceResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.AuthorizeDataSourceResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AuthorizeDataSourceResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AuthorizeDataSourceResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeGoogleDriveIntegrationResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeGoogleDriveIntegrationResponse.Json.g.cs new file mode 100644 index 0000000..46e947b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeGoogleDriveIntegrationResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class AuthorizeGoogleDriveIntegrationResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.AuthorizeGoogleDriveIntegrationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.AuthorizeGoogleDriveIntegrationResponse), + jsonSerializerContext) as global::Mixedbread.AuthorizeGoogleDriveIntegrationResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AuthorizeGoogleDriveIntegrationResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.AuthorizeGoogleDriveIntegrationResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.AuthorizeGoogleDriveIntegrationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AuthorizeGoogleDriveIntegrationResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeGoogleDriveIntegrationResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeGoogleDriveIntegrationResponse.g.cs new file mode 100644 index 0000000..5d639e0 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeGoogleDriveIntegrationResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class AuthorizeGoogleDriveIntegrationResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeGoogleDriveIntegrationStoreName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeGoogleDriveIntegrationStoreName.Json.g.cs new file mode 100644 index 0000000..3b31c8a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeGoogleDriveIntegrationStoreName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class AuthorizeGoogleDriveIntegrationStoreName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.AuthorizeGoogleDriveIntegrationStoreName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.AuthorizeGoogleDriveIntegrationStoreName), + jsonSerializerContext) as global::Mixedbread.AuthorizeGoogleDriveIntegrationStoreName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AuthorizeGoogleDriveIntegrationStoreName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.AuthorizeGoogleDriveIntegrationStoreName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.AuthorizeGoogleDriveIntegrationStoreName), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AuthorizeGoogleDriveIntegrationStoreName; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeGoogleDriveIntegrationStoreName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeGoogleDriveIntegrationStoreName.g.cs new file mode 100644 index 0000000..3e25f63 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeGoogleDriveIntegrationStoreName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Optional ingestion store name + /// + public sealed partial class AuthorizeGoogleDriveIntegrationStoreName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeSlackIntegrationResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeSlackIntegrationResponse.Json.g.cs new file mode 100644 index 0000000..af1ae2a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeSlackIntegrationResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class AuthorizeSlackIntegrationResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.AuthorizeSlackIntegrationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.AuthorizeSlackIntegrationResponse), + jsonSerializerContext) as global::Mixedbread.AuthorizeSlackIntegrationResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AuthorizeSlackIntegrationResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.AuthorizeSlackIntegrationResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.AuthorizeSlackIntegrationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AuthorizeSlackIntegrationResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeSlackIntegrationResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeSlackIntegrationResponse.g.cs new file mode 100644 index 0000000..fdb3681 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeSlackIntegrationResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class AuthorizeSlackIntegrationResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeSlackIntegrationStoreName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeSlackIntegrationStoreName.Json.g.cs new file mode 100644 index 0000000..c4e0374 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeSlackIntegrationStoreName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class AuthorizeSlackIntegrationStoreName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.AuthorizeSlackIntegrationStoreName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.AuthorizeSlackIntegrationStoreName), + jsonSerializerContext) as global::Mixedbread.AuthorizeSlackIntegrationStoreName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.AuthorizeSlackIntegrationStoreName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.AuthorizeSlackIntegrationStoreName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.AuthorizeSlackIntegrationStoreName), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.AuthorizeSlackIntegrationStoreName; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeSlackIntegrationStoreName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeSlackIntegrationStoreName.g.cs new file mode 100644 index 0000000..2672a70 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.AuthorizeSlackIntegrationStoreName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Optional ingestion store name + /// + public sealed partial class AuthorizeSlackIntegrationStoreName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BalanceInfo.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BalanceInfo.Json.g.cs index 25e1c77..21e600a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.BalanceInfo.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BalanceInfo.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.BalanceInfo; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BalanceInfo? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BalanceInfo; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BalanceInfoNextEffectiveDate.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BalanceInfoNextEffectiveDate.Json.g.cs index e632489..ce7d59b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.BalanceInfoNextEffectiveDate.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BalanceInfoNextEffectiveDate.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.BalanceInfoNextEffectiveDate; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BalanceInfoNextEffectiveDate? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BalanceInfoNextEffectiveDate; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BillingPeriodSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BillingPeriodSummary.Json.g.cs index 8bd0d20..b689625 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.BillingPeriodSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BillingPeriodSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.BillingPeriodSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BillingPeriodSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BillingPeriodSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BillingPeriodSummaryUsages.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BillingPeriodSummaryUsages.Json.g.cs index aecd6c1..7490b06 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.BillingPeriodSummaryUsages.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BillingPeriodSummaryUsages.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.BillingPeriodSummaryUsages; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BillingPeriodSummaryUsages? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BillingPeriodSummaryUsages; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyCreateFile.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyCreateFile.Json.g.cs index 24dc746..7130d42 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyCreateFile.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyCreateFile.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.BodyCreateFile; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BodyCreateFile? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BodyCreateFile; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyUpdateFile.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyUpdateFile.Json.g.cs index ff2afa3..bb91795 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyUpdateFile.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyUpdateFile.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.BodyUpdateFile; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BodyUpdateFile? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BodyUpdateFile; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyUploadStoreFile.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyUploadStoreFile.Json.g.cs index d8a0c33..be6de02 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyUploadStoreFile.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyUploadStoreFile.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.BodyUploadStoreFile; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BodyUploadStoreFile? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BodyUploadStoreFile; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyUploadStoreFileParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyUploadStoreFileParams.Json.g.cs index 37f29df..087a955 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyUploadStoreFileParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BodyUploadStoreFileParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.BodyUploadStoreFileParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BodyUploadStoreFileParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BodyUploadStoreFileParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Bucket.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Bucket.Json.g.cs new file mode 100644 index 0000000..4e9e911 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Bucket.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class Bucket + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.Bucket? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.Bucket), + jsonSerializerContext) as global::Mixedbread.Bucket; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.Bucket? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.Bucket? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.Bucket), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.Bucket; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Bucket.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Bucket.g.cs new file mode 100644 index 0000000..ebc89b9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Bucket.g.cs @@ -0,0 +1,248 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Service-level representation of a bucket. Credentials are never returned. + /// + public sealed partial class Bucket + { + /// + /// The ID of the bucket + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Creation time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// Last update time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { get; set; } + + /// + /// Display name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// Object storage provider + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.BucketProviderJsonConverter))] + public global::Mixedbread.BucketProvider Provider { get; set; } + + /// + /// The bucket name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Bucket1 { get; set; } + + /// + /// The bucket region + /// + [global::System.Text.Json.Serialization.JsonPropertyName("region")] + public string? Region { get; set; } + + /// + /// Custom S3-compatible endpoint + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endpoint_url")] + public string? EndpointUrl { get; set; } + + /// + /// Key prefix within the bucket + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Prefix { get; set; } + + /// + /// KMS key id/ARN used to encrypt writes (SSE-KMS) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sse_kms_key_id")] + public string? SseKmsKeyId { get; set; } + + /// + /// Authentication type + /// + [global::System.Text.Json.Serialization.JsonPropertyName("auth_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.BucketAuthTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.BucketAuthType AuthType { get; set; } + + /// + /// IAM role Mixedbread assumes (auth_type=assume_role); not a secret + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role_arn")] + public string? RoleArn { get; set; } + + /// + /// sts:ExternalId the role's trust policy must require (auth_type=assume_role); not a secret + /// + [global::System.Text.Json.Serialization.JsonPropertyName("external_id")] + public string? ExternalId { get; set; } + + /// + /// Validation status + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.BucketStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.BucketStatus Status { get; set; } + + /// + /// When the bucket was last validated + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_validated_at")] + public global::System.DateTime? LastValidatedAt { get; set; } + + /// + /// Whether secret credentials are stored (always false for assume-role buckets) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("has_credentials")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool HasCredentials { get; set; } + + /// + /// Increments on every credential rotation + /// + [global::System.Text.Json.Serialization.JsonPropertyName("credentials_version")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CredentialsVersion { get; set; } + + /// + /// The type of the object
+ /// Default Value: bucket + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("object")] + public string? Object { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The ID of the bucket + /// + /// + /// Creation time + /// + /// + /// Last update time + /// + /// + /// Display name + /// + /// + /// The bucket name + /// + /// + /// Key prefix within the bucket + /// + /// + /// Authentication type + /// + /// + /// Validation status + /// + /// + /// Whether secret credentials are stored (always false for assume-role buckets) + /// + /// + /// Increments on every credential rotation + /// + /// + /// Object storage provider + /// + /// + /// The bucket region + /// + /// + /// Custom S3-compatible endpoint + /// + /// + /// KMS key id/ARN used to encrypt writes (SSE-KMS) + /// + /// + /// IAM role Mixedbread assumes (auth_type=assume_role); not a secret + /// + /// + /// sts:ExternalId the role's trust policy must require (auth_type=assume_role); not a secret + /// + /// + /// When the bucket was last validated + /// + /// + /// The type of the object
+ /// Default Value: bucket + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public Bucket( + string id, + global::System.DateTime createdAt, + global::System.DateTime updatedAt, + string name, + string bucket1, + string prefix, + global::Mixedbread.BucketAuthType authType, + global::Mixedbread.BucketStatus status, + bool hasCredentials, + int credentialsVersion, + global::Mixedbread.BucketProvider provider, + string? region, + string? endpointUrl, + string? sseKmsKeyId, + string? roleArn, + string? externalId, + global::System.DateTime? lastValidatedAt, + string? @object) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Provider = provider; + this.Bucket1 = bucket1 ?? throw new global::System.ArgumentNullException(nameof(bucket1)); + this.Region = region; + this.EndpointUrl = endpointUrl; + this.Prefix = prefix ?? throw new global::System.ArgumentNullException(nameof(prefix)); + this.SseKmsKeyId = sseKmsKeyId; + this.AuthType = authType; + this.RoleArn = roleArn; + this.ExternalId = externalId; + this.Status = status; + this.LastValidatedAt = lastValidatedAt; + this.HasCredentials = hasCredentials; + this.CredentialsVersion = credentialsVersion; + this.Object = @object; + } + + /// + /// Initializes a new instance of the class. + /// + public Bucket() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAccessKeyCredentials.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAccessKeyCredentials.Json.g.cs new file mode 100644 index 0000000..c803f5e --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAccessKeyCredentials.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketAccessKeyCredentials + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketAccessKeyCredentials? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketAccessKeyCredentials), + jsonSerializerContext) as global::Mixedbread.BucketAccessKeyCredentials; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketAccessKeyCredentials? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketAccessKeyCredentials? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketAccessKeyCredentials), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketAccessKeyCredentials; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAccessKeyCredentials.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAccessKeyCredentials.g.cs new file mode 100644 index 0000000..deb2f5d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAccessKeyCredentials.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// AWS-style access key credentials for a customer bucket (write-only, never returned). + /// + public sealed partial class BucketAccessKeyCredentials + { + /// + /// Default Value: access_key + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// Access key id + /// + [global::System.Text.Json.Serialization.JsonPropertyName("access_key_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AccessKeyId { get; set; } + + /// + /// Secret access key + /// + [global::System.Text.Json.Serialization.JsonPropertyName("secret_access_key")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string SecretAccessKey { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Access key id + /// + /// + /// Secret access key + /// + /// + /// Default Value: access_key + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BucketAccessKeyCredentials( + string accessKeyId, + string secretAccessKey, + string? type) + { + this.Type = type; + this.AccessKeyId = accessKeyId ?? throw new global::System.ArgumentNullException(nameof(accessKeyId)); + this.SecretAccessKey = secretAccessKey ?? throw new global::System.ArgumentNullException(nameof(secretAccessKey)); + } + + /// + /// Initializes a new instance of the class. + /// + public BucketAccessKeyCredentials() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAssumeRoleCredentials.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAssumeRoleCredentials.Json.g.cs new file mode 100644 index 0000000..b449230 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAssumeRoleCredentials.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketAssumeRoleCredentials + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketAssumeRoleCredentials? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketAssumeRoleCredentials), + jsonSerializerContext) as global::Mixedbread.BucketAssumeRoleCredentials; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketAssumeRoleCredentials? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketAssumeRoleCredentials? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketAssumeRoleCredentials), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketAssumeRoleCredentials; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAssumeRoleCredentials.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAssumeRoleCredentials.g.cs new file mode 100644 index 0000000..1ea74f3 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAssumeRoleCredentials.g.cs @@ -0,0 +1,61 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Cross-account IAM role the platform assumes via STS (recommended for AWS).
+ /// Nothing secret is stored: the role ARN and the server-generated external id
+ /// are plain metadata, and access is granted/revoked entirely through the
+ /// role's trust policy in the customer's account. + ///
+ public sealed partial class BucketAssumeRoleCredentials + { + /// + /// Default Value: assume_role + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// ARN of the IAM role Mixedbread assumes + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role_arn")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string RoleArn { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// ARN of the IAM role Mixedbread assumes + /// + /// + /// Default Value: assume_role + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BucketAssumeRoleCredentials( + string roleArn, + string? type) + { + this.Type = type; + this.RoleArn = roleArn ?? throw new global::System.ArgumentNullException(nameof(roleArn)); + } + + /// + /// Initializes a new instance of the class. + /// + public BucketAssumeRoleCredentials() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAuthType.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAuthType.g.cs new file mode 100644 index 0000000..c657066 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketAuthType.g.cs @@ -0,0 +1,54 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// How omni authenticates against a customer bucket.
+ /// ASSUME_ROLE is the recommended default for AWS: nothing secret is stored,
+ /// every service assumes the customer's IAM role via STS on use. ACCESS_KEY
+ /// remains for S3-compatible providers that have no STS. + ///
+ public enum BucketAuthType + { + /// + /// + /// + AccessKey, + /// + /// + /// + AssumeRole, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BucketAuthTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BucketAuthType value) + { + return value switch + { + BucketAuthType.AccessKey => "access_key", + BucketAuthType.AssumeRole => "assume_role", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BucketAuthType? ToEnum(string value) + { + return value switch + { + "access_key" => BucketAuthType.AccessKey, + "assume_role" => BucketAuthType.AssumeRole, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParams.Json.g.cs new file mode 100644 index 0000000..939995b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParams.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketCreateParams + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketCreateParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketCreateParams), + jsonSerializerContext) as global::Mixedbread.BucketCreateParams; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketCreateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketCreateParams? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketCreateParams), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketCreateParams; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParams.g.cs new file mode 100644 index 0000000..b9192d0 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParams.g.cs @@ -0,0 +1,129 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Parameters for attaching a customer-owned bucket. + /// + public sealed partial class BucketCreateParams + { + /// + /// Display name for the bucket + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// Object storage provider
+ /// Default Value: aws_s3 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + public string? Provider { get; set; } + + /// + /// The bucket name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Bucket { get; set; } + + /// + /// The bucket region + /// + [global::System.Text.Json.Serialization.JsonPropertyName("region")] + public string? Region { get; set; } + + /// + /// Custom S3-compatible endpoint (omit for AWS) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endpoint_url")] + public string? EndpointUrl { get; set; } + + /// + /// Key prefix within the bucket + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] + public string? Prefix { get; set; } + + /// + /// KMS key id/ARN to encrypt writes with (SSE-KMS); omit for the bucket's default encryption + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sse_kms_key_id")] + public string? SseKmsKeyId { get; set; } + + /// + /// How Mixedbread authenticates against the bucket. `assume_role` is the recommended default for AWS; `access_key` is for S3-compatible providers with a custom endpoint. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("credentials")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.CredentialsJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.Credentials Credentials { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Display name for the bucket + /// + /// + /// The bucket name + /// + /// + /// How Mixedbread authenticates against the bucket. `assume_role` is the recommended default for AWS; `access_key` is for S3-compatible providers with a custom endpoint. + /// + /// + /// Object storage provider
+ /// Default Value: aws_s3 + /// + /// + /// The bucket region + /// + /// + /// Custom S3-compatible endpoint (omit for AWS) + /// + /// + /// Key prefix within the bucket + /// + /// + /// KMS key id/ARN to encrypt writes with (SSE-KMS); omit for the bucket's default encryption + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BucketCreateParams( + string name, + string bucket, + global::Mixedbread.Credentials credentials, + string? provider, + string? region, + string? endpointUrl, + string? prefix, + string? sseKmsKeyId) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Provider = provider; + this.Bucket = bucket ?? throw new global::System.ArgumentNullException(nameof(bucket)); + this.Region = region; + this.EndpointUrl = endpointUrl; + this.Prefix = prefix; + this.SseKmsKeyId = sseKmsKeyId; + this.Credentials = credentials; + } + + /// + /// Initializes a new instance of the class. + /// + public BucketCreateParams() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsCredentialsDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsCredentialsDiscriminator.Json.g.cs new file mode 100644 index 0000000..8dafe57 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsCredentialsDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketCreateParamsCredentialsDiscriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketCreateParamsCredentialsDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketCreateParamsCredentialsDiscriminator), + jsonSerializerContext) as global::Mixedbread.BucketCreateParamsCredentialsDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketCreateParamsCredentialsDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketCreateParamsCredentialsDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketCreateParamsCredentialsDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketCreateParamsCredentialsDiscriminator; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsCredentialsDiscriminator.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsCredentialsDiscriminator.g.cs new file mode 100644 index 0000000..8a8a4e0 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsCredentialsDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class BucketCreateParamsCredentialsDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.BucketCreateParamsCredentialsDiscriminatorTypeJsonConverter))] + public global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BucketCreateParamsCredentialsDiscriminator( + global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public BucketCreateParamsCredentialsDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsCredentialsDiscriminatorType.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsCredentialsDiscriminatorType.g.cs new file mode 100644 index 0000000..d3b76b9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsCredentialsDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public enum BucketCreateParamsCredentialsDiscriminatorType + { + /// + /// + /// + AccessKey, + /// + /// + /// + AssumeRole, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BucketCreateParamsCredentialsDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BucketCreateParamsCredentialsDiscriminatorType value) + { + return value switch + { + BucketCreateParamsCredentialsDiscriminatorType.AccessKey => "access_key", + BucketCreateParamsCredentialsDiscriminatorType.AssumeRole => "assume_role", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BucketCreateParamsCredentialsDiscriminatorType? ToEnum(string value) + { + return value switch + { + "access_key" => BucketCreateParamsCredentialsDiscriminatorType.AccessKey, + "assume_role" => BucketCreateParamsCredentialsDiscriminatorType.AssumeRole, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsEndpointUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsEndpointUrl.Json.g.cs new file mode 100644 index 0000000..41babb9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsEndpointUrl.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketCreateParamsEndpointUrl + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketCreateParamsEndpointUrl? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketCreateParamsEndpointUrl), + jsonSerializerContext) as global::Mixedbread.BucketCreateParamsEndpointUrl; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketCreateParamsEndpointUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketCreateParamsEndpointUrl? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketCreateParamsEndpointUrl), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketCreateParamsEndpointUrl; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsEndpointUrl.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsEndpointUrl.g.cs new file mode 100644 index 0000000..2f270e5 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsEndpointUrl.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Custom S3-compatible endpoint (omit for AWS) + /// + public sealed partial class BucketCreateParamsEndpointUrl + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsRegion.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsRegion.Json.g.cs new file mode 100644 index 0000000..a76dfc7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsRegion.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketCreateParamsRegion + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketCreateParamsRegion? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketCreateParamsRegion), + jsonSerializerContext) as global::Mixedbread.BucketCreateParamsRegion; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketCreateParamsRegion? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketCreateParamsRegion? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketCreateParamsRegion), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketCreateParamsRegion; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsRegion.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsRegion.g.cs new file mode 100644 index 0000000..a115591 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsRegion.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// The bucket region + /// + public sealed partial class BucketCreateParamsRegion + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsSseKmsKeyId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsSseKmsKeyId.Json.g.cs new file mode 100644 index 0000000..8e8a65a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsSseKmsKeyId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketCreateParamsSseKmsKeyId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketCreateParamsSseKmsKeyId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketCreateParamsSseKmsKeyId), + jsonSerializerContext) as global::Mixedbread.BucketCreateParamsSseKmsKeyId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketCreateParamsSseKmsKeyId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketCreateParamsSseKmsKeyId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketCreateParamsSseKmsKeyId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketCreateParamsSseKmsKeyId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsSseKmsKeyId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsSseKmsKeyId.g.cs new file mode 100644 index 0000000..ba4e439 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketCreateParamsSseKmsKeyId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// KMS key id/ARN to encrypt writes with (SSE-KMS); omit for the bucket's default encryption + /// + public sealed partial class BucketCreateParamsSseKmsKeyId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketEndpointUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketEndpointUrl.Json.g.cs new file mode 100644 index 0000000..9e35edb --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketEndpointUrl.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketEndpointUrl + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketEndpointUrl? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketEndpointUrl), + jsonSerializerContext) as global::Mixedbread.BucketEndpointUrl; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketEndpointUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketEndpointUrl? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketEndpointUrl), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketEndpointUrl; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketEndpointUrl.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketEndpointUrl.g.cs new file mode 100644 index 0000000..9e5aa3c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketEndpointUrl.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Custom S3-compatible endpoint + /// + public sealed partial class BucketEndpointUrl + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketExternalId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketExternalId.Json.g.cs new file mode 100644 index 0000000..b287c33 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketExternalId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketExternalId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketExternalId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketExternalId), + jsonSerializerContext) as global::Mixedbread.BucketExternalId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketExternalId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketExternalId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketExternalId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketExternalId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketExternalId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketExternalId.g.cs new file mode 100644 index 0000000..3da818d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketExternalId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// sts:ExternalId the role's trust policy must require (auth_type=assume_role); not a secret + /// + public sealed partial class BucketExternalId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketLastValidatedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketLastValidatedAt.Json.g.cs new file mode 100644 index 0000000..5b7b8a6 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketLastValidatedAt.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketLastValidatedAt + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketLastValidatedAt? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketLastValidatedAt), + jsonSerializerContext) as global::Mixedbread.BucketLastValidatedAt; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketLastValidatedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketLastValidatedAt? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketLastValidatedAt), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketLastValidatedAt; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketLastValidatedAt.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketLastValidatedAt.g.cs new file mode 100644 index 0000000..182873a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketLastValidatedAt.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// When the bucket was last validated + /// + public sealed partial class BucketLastValidatedAt + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketListResponse.Json.g.cs new file mode 100644 index 0000000..d5e08d0 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketListResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketListResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketListResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketListResponse), + jsonSerializerContext) as global::Mixedbread.BucketListResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketListResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketListResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketListResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketListResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketListResponse.g.cs new file mode 100644 index 0000000..b0a80c2 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketListResponse.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class BucketListResponse + { + /// + /// Response model for cursor-based pagination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pagination")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.CursorPaginationResponse Pagination { get; set; } + + /// + /// The object type of the response
+ /// Default Value: list + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("object")] + public string? Object { get; set; } + + /// + /// The list of buckets + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Response model for cursor-based pagination. + /// + /// + /// The list of buckets + /// + /// + /// The object type of the response
+ /// Default Value: list + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BucketListResponse( + global::Mixedbread.CursorPaginationResponse pagination, + global::System.Collections.Generic.IList data, + string? @object) + { + this.Pagination = pagination ?? throw new global::System.ArgumentNullException(nameof(pagination)); + this.Object = @object; + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public BucketListResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketProvider.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketProvider.g.cs new file mode 100644 index 0000000..5952960 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketProvider.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Object-storage provider backing a bring-your-own bucket. + /// + public enum BucketProvider + { + /// + /// + /// + AwsS3, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BucketProviderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BucketProvider value) + { + return value switch + { + BucketProvider.AwsS3 => "aws_s3", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BucketProvider? ToEnum(string value) + { + return value switch + { + "aws_s3" => BucketProvider.AwsS3, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRegion.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRegion.Json.g.cs new file mode 100644 index 0000000..8725292 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRegion.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketRegion + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketRegion? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketRegion), + jsonSerializerContext) as global::Mixedbread.BucketRegion; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketRegion? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketRegion? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketRegion), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketRegion; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRegion.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRegion.g.cs new file mode 100644 index 0000000..8be4751 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRegion.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// The bucket region + /// + public sealed partial class BucketRegion + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRoleArn.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRoleArn.Json.g.cs new file mode 100644 index 0000000..589bd74 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRoleArn.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketRoleArn + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketRoleArn? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketRoleArn), + jsonSerializerContext) as global::Mixedbread.BucketRoleArn; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketRoleArn? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketRoleArn? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketRoleArn), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketRoleArn; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRoleArn.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRoleArn.g.cs new file mode 100644 index 0000000..d4e3147 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRoleArn.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// IAM role Mixedbread assumes (auth_type=assume_role); not a secret + /// + public sealed partial class BucketRoleArn + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRotateCredentialsParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRotateCredentialsParams.Json.g.cs new file mode 100644 index 0000000..99eea73 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRotateCredentialsParams.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketRotateCredentialsParams + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketRotateCredentialsParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketRotateCredentialsParams), + jsonSerializerContext) as global::Mixedbread.BucketRotateCredentialsParams; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketRotateCredentialsParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketRotateCredentialsParams? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketRotateCredentialsParams), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketRotateCredentialsParams; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRotateCredentialsParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRotateCredentialsParams.g.cs new file mode 100644 index 0000000..1e87c65 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketRotateCredentialsParams.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Parameters for rotating a bucket's credentials. + /// + public sealed partial class BucketRotateCredentialsParams + { + /// + /// New bucket access credentials + /// + [global::System.Text.Json.Serialization.JsonPropertyName("credentials")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.BucketAccessKeyCredentials Credentials { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// New bucket access credentials + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BucketRotateCredentialsParams( + global::Mixedbread.BucketAccessKeyCredentials credentials) + { + this.Credentials = credentials ?? throw new global::System.ArgumentNullException(nameof(credentials)); + } + + /// + /// Initializes a new instance of the class. + /// + public BucketRotateCredentialsParams() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketSseKmsKeyId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketSseKmsKeyId.Json.g.cs new file mode 100644 index 0000000..3efdb78 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketSseKmsKeyId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class BucketSseKmsKeyId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.BucketSseKmsKeyId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.BucketSseKmsKeyId), + jsonSerializerContext) as global::Mixedbread.BucketSseKmsKeyId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.BucketSseKmsKeyId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.BucketSseKmsKeyId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.BucketSseKmsKeyId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.BucketSseKmsKeyId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketSseKmsKeyId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketSseKmsKeyId.g.cs new file mode 100644 index 0000000..dfff546 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketSseKmsKeyId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// KMS key id/ARN used to encrypt writes (SSE-KMS) + /// + public sealed partial class BucketSseKmsKeyId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketStatus.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketStatus.g.cs new file mode 100644 index 0000000..2a1a0d2 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.BucketStatus.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Validation lifecycle of a customer bucket. + /// + public enum BucketStatus + { + /// + /// + /// + Active, + /// + /// + /// + Error, + /// + /// + /// + Pending, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BucketStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BucketStatus value) + { + return value switch + { + BucketStatus.Active => "active", + BucketStatus.Error => "error", + BucketStatus.Pending => "pending", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BucketStatus? ToEnum(string value) + { + return value switch + { + "active" => BucketStatus.Active, + "error" => BucketStatus.Error, + "pending" => BucketStatus.Pending, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Chunk.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Chunk.Json.g.cs index c32d5ee..834965d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Chunk.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Chunk.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.Chunk; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.Chunk? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.Chunk; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkContent.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkContent.Json.g.cs index 04624b1..0a12500 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkContent.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkContent.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ChunkContent; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ChunkContent? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ChunkContent; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkElement.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkElement.Json.g.cs index d7b8961..d1d31b4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkElement.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkElement.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ChunkElement; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ChunkElement? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ChunkElement; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkElementImage.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkElementImage.Json.g.cs index f4a468c..aaadde1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkElementImage.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkElementImage.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ChunkElementImage; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ChunkElementImage? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ChunkElementImage; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkElementSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkElementSummary.Json.g.cs index 49da973..29f5805 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkElementSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkElementSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ChunkElementSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ChunkElementSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ChunkElementSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkSearchResultRule.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkSearchResultRule.Json.g.cs index e589669..ee4a76d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkSearchResultRule.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunkSearchResultRule.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ChunkSearchResultRule; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ChunkSearchResultRule? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ChunkSearchResultRule; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item.Json.g.cs index c1cc246..a4ee2bf 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ChunksVariant1Item?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ChunksVariant1Item? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ChunksVariant1Item?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item2.Json.g.cs index 97ea348..302cc06 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ChunksVariant1Item2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ChunksVariant1Item2?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ChunksVariant1Item2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ChunksVariant1Item2?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadata.Json.g.cs index e2a0ae4..eeefbd5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CodeChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CodeChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CodeChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataFileExtension.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataFileExtension.Json.g.cs index 45ff263..e1eb3fd 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataFileExtension.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataFileExtension.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CodeChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CodeChunkGeneratedMetadataFileExtension? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CodeChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataFileSize.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataFileSize.Json.g.cs index 3cbfd51..ab7db1e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataFileSize.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataFileSize.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CodeChunkGeneratedMetadataFileSize; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CodeChunkGeneratedMetadataFileSize? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CodeChunkGeneratedMetadataFileSize; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataLanguage.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataLanguage.Json.g.cs index 144395a..d351385 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataLanguage.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataLanguage.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CodeChunkGeneratedMetadataLanguage; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CodeChunkGeneratedMetadataLanguage? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CodeChunkGeneratedMetadataLanguage; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataWordCount.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataWordCount.Json.g.cs index 9c43b6e..f1f66e6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataWordCount.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CodeChunkGeneratedMetadataWordCount.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CodeChunkGeneratedMetadataWordCount; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CodeChunkGeneratedMetadataWordCount? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CodeChunkGeneratedMetadataWordCount; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CompleteMultipartUploadRequest.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CompleteMultipartUploadRequest.Json.g.cs index 4958220..811113d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CompleteMultipartUploadRequest.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CompleteMultipartUploadRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CompleteMultipartUploadRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CompleteMultipartUploadRequest? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CompleteMultipartUploadRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ConnectorListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ConnectorListResponse.Json.g.cs index 09cea63..689e310 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ConnectorListResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ConnectorListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ConnectorListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ConnectorListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ConnectorListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ContextualizationConfig.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ContextualizationConfig.Json.g.cs index 7f26e3e..5afd638 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ContextualizationConfig.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ContextualizationConfig.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ContextualizationConfig; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ContextualizationConfig? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ContextualizationConfig; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CostHistogramResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CostHistogramResponse.Json.g.cs index 40d1563..1102428 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CostHistogramResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CostHistogramResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CostHistogramResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CostHistogramResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CostHistogramResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CostInfo.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CostInfo.Json.g.cs index 73d99ab..f834a4d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CostInfo.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CostInfo.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CostInfo; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CostInfo? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CostInfo; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CreateChatCompletionResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CreateChatCompletionResponse.Json.g.cs index 5b51f2f..20f6ee4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CreateChatCompletionResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CreateChatCompletionResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CreateChatCompletionResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CreateChatCompletionResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CreateChatCompletionResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CreateMultipartUploadRequest.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CreateMultipartUploadRequest.Json.g.cs index 02d195e..0531cbc 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CreateMultipartUploadRequest.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CreateMultipartUploadRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CreateMultipartUploadRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CreateMultipartUploadRequest? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CreateMultipartUploadRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CreateMultipartUploadResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CreateMultipartUploadResponse.Json.g.cs index 8f0bce8..568e50b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CreateMultipartUploadResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CreateMultipartUploadResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CreateMultipartUploadResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CreateMultipartUploadResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CreateMultipartUploadResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CreatedJsonSchema.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CreatedJsonSchema.Json.g.cs index 51c68b5..b489473 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CreatedJsonSchema.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CreatedJsonSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CreatedJsonSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CreatedJsonSchema? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CreatedJsonSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CreatedJsonSchemaJsonSchema.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CreatedJsonSchemaJsonSchema.Json.g.cs index ebe12bc..466dfe7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CreatedJsonSchemaJsonSchema.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CreatedJsonSchemaJsonSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CreatedJsonSchemaJsonSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CreatedJsonSchemaJsonSchema? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CreatedJsonSchemaJsonSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Credentials.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Credentials.Json.g.cs new file mode 100644 index 0000000..c6dbf21 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Credentials.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public readonly partial struct Credentials + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.Credentials? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.Credentials), + jsonSerializerContext) as global::Mixedbread.Credentials?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.Credentials? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.Credentials? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.Credentials), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.Credentials?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Credentials.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Credentials.g.cs new file mode 100644 index 0000000..c6292c9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Credentials.g.cs @@ -0,0 +1,306 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Mixedbread +{ + /// + /// How Mixedbread authenticates against the bucket. `assume_role` is the recommended default for AWS; `access_key` is for S3-compatible providers with a custom endpoint. + /// + public readonly partial struct Credentials : global::System.IEquatable + { + /// + /// + /// + public global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType? Type { get; } + + /// + /// Cross-account IAM role the platform assumes via STS (recommended for AWS).
+ /// Nothing secret is stored: the role ARN and the server-generated external id
+ /// are plain metadata, and access is granted/revoked entirely through the
+ /// role's trust policy in the customer's account. + ///
+#if NET6_0_OR_GREATER + public global::Mixedbread.BucketAssumeRoleCredentials? AssumeRole { get; init; } +#else + public global::Mixedbread.BucketAssumeRoleCredentials? AssumeRole { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssumeRole))] +#endif + public bool IsAssumeRole => AssumeRole != null; + + /// + /// + /// + public bool TryPickAssumeRole( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Mixedbread.BucketAssumeRoleCredentials? value) + { + value = AssumeRole; + return IsAssumeRole; + } + + /// + /// + /// + public global::Mixedbread.BucketAssumeRoleCredentials PickAssumeRole() => IsAssumeRole + ? AssumeRole! + : throw new global::System.InvalidOperationException($"Expected union variant 'AssumeRole' but the value was {ToString()}."); + + /// + /// AWS-style access key credentials for a customer bucket (write-only, never returned). + /// +#if NET6_0_OR_GREATER + public global::Mixedbread.BucketAccessKeyCredentials? AccessKey { get; init; } +#else + public global::Mixedbread.BucketAccessKeyCredentials? AccessKey { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AccessKey))] +#endif + public bool IsAccessKey => AccessKey != null; + + /// + /// + /// + public bool TryPickAccessKey( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Mixedbread.BucketAccessKeyCredentials? value) + { + value = AccessKey; + return IsAccessKey; + } + + /// + /// + /// + public global::Mixedbread.BucketAccessKeyCredentials PickAccessKey() => IsAccessKey + ? AccessKey! + : throw new global::System.InvalidOperationException($"Expected union variant 'AccessKey' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator Credentials(global::Mixedbread.BucketAssumeRoleCredentials value) => new Credentials((global::Mixedbread.BucketAssumeRoleCredentials?)value); + + /// + /// + /// + public static implicit operator global::Mixedbread.BucketAssumeRoleCredentials?(Credentials @this) => @this.AssumeRole; + + /// + /// + /// + public Credentials(global::Mixedbread.BucketAssumeRoleCredentials? value) + { + AssumeRole = value; + } + + /// + /// + /// + public static Credentials FromAssumeRole(global::Mixedbread.BucketAssumeRoleCredentials? value) => new Credentials(value); + + /// + /// + /// + public static implicit operator Credentials(global::Mixedbread.BucketAccessKeyCredentials value) => new Credentials((global::Mixedbread.BucketAccessKeyCredentials?)value); + + /// + /// + /// + public static implicit operator global::Mixedbread.BucketAccessKeyCredentials?(Credentials @this) => @this.AccessKey; + + /// + /// + /// + public Credentials(global::Mixedbread.BucketAccessKeyCredentials? value) + { + AccessKey = value; + } + + /// + /// + /// + public static Credentials FromAccessKey(global::Mixedbread.BucketAccessKeyCredentials? value) => new Credentials(value); + + /// + /// + /// + public Credentials( + global::Mixedbread.BucketCreateParamsCredentialsDiscriminatorType? type, + global::Mixedbread.BucketAssumeRoleCredentials? assumeRole, + global::Mixedbread.BucketAccessKeyCredentials? accessKey + ) + { + Type = type; + + AssumeRole = assumeRole; + AccessKey = accessKey; + } + + /// + /// + /// + public object? Object => + AccessKey as object ?? + AssumeRole as object + ; + + /// + /// + /// + public override string? ToString() => + AssumeRole?.ToString() ?? + AccessKey?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsAssumeRole && !IsAccessKey || !IsAssumeRole && IsAccessKey; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? assumeRole = null, + global::System.Func? accessKey = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAssumeRole && assumeRole != null) + { + return assumeRole(AssumeRole!); + } + else if (IsAccessKey && accessKey != null) + { + return accessKey(AccessKey!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? assumeRole = null, + + global::System.Action? accessKey = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAssumeRole) + { + assumeRole?.Invoke(AssumeRole!); + } + else if (IsAccessKey) + { + accessKey?.Invoke(AccessKey!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? assumeRole = null, + global::System.Action? accessKey = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAssumeRole) + { + assumeRole?.Invoke(AssumeRole!); + } + else if (IsAccessKey) + { + accessKey?.Invoke(AccessKey!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + AssumeRole, + typeof(global::Mixedbread.BucketAssumeRoleCredentials), + AccessKey, + typeof(global::Mixedbread.BucketAccessKeyCredentials), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(Credentials other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(AssumeRole, other.AssumeRole) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AccessKey, other.AccessKey) + ; + } + + /// + /// + /// + public static bool operator ==(Credentials obj1, Credentials obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(Credentials obj1, Credentials obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is Credentials o && Equals(o); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponse.Json.g.cs index bc1cdbf..719cdca 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CursorPaginationResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CursorPaginationResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CursorPaginationResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponseFirstCursor.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponseFirstCursor.Json.g.cs index ed4f6fe..2648a88 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponseFirstCursor.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponseFirstCursor.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CursorPaginationResponseFirstCursor; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CursorPaginationResponseFirstCursor? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CursorPaginationResponseFirstCursor; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponseLastCursor.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponseLastCursor.Json.g.cs index 9058fe0..a85ab54 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponseLastCursor.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponseLastCursor.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CursorPaginationResponseLastCursor; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CursorPaginationResponseLastCursor? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CursorPaginationResponseLastCursor; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponseTotal.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponseTotal.Json.g.cs index 8dd57e7..8032031 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponseTotal.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.CursorPaginationResponseTotal.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.CursorPaginationResponseTotal; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.CursorPaginationResponseTotal? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.CursorPaginationResponseTotal; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DailyCostBucket.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DailyCostBucket.Json.g.cs index a490169..deb9f4f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DailyCostBucket.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DailyCostBucket.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DailyCostBucket; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DailyCostBucket? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DailyCostBucket; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DailyCostBucketCostPerMetric.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DailyCostBucketCostPerMetric.Json.g.cs index d413dda..14d5590 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DailyCostBucketCostPerMetric.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DailyCostBucketCostPerMetric.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DailyCostBucketCostPerMetric; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DailyCostBucketCostPerMetric? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DailyCostBucketCostPerMetric; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem.Json.g.cs index 92e0219..c3b8d2d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataItem?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataItem? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataItem?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem.g.cs index 4cea1ea..ec6ec61 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem.g.cs @@ -92,7 +92,7 @@ public bool TryPickSearch( /// Represents an agentic search trace in a vector store.
/// Unlike StoreSearchEvent, this captures the full sequence of tool calls the
/// agent issued (name, arguments, result) so developers can inspect what the
- /// agent did, along with the token usage and cost. + /// agent did, along with the token usage. ///
#if NET6_0_OR_GREATER public global::Mixedbread.StoreAgenticSearchEvent? AgenticSearch { get; init; } @@ -127,6 +127,45 @@ public bool TryPickAgenticSearch( public global::Mixedbread.StoreAgenticSearchEvent PickAgenticSearch() => IsAgenticSearch ? AgenticSearch! : throw new global::System.InvalidOperationException($"Expected union variant 'AgenticSearch' but the value was {ToString()}."); + + /// + /// Represents a grep event in a vector store.
+ /// Grep matches chunks against a regular expression rather than running a
+ /// semantic search, so it has no ranking, rewrite, or rerank fields. + ///
+#if NET6_0_OR_GREATER + public global::Mixedbread.StoreGrepEvent? Grep { get; init; } +#else + public global::Mixedbread.StoreGrepEvent? Grep { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Grep))] +#endif + public bool IsGrep => Grep != null; + + /// + /// + /// + public bool TryPickGrep( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Mixedbread.StoreGrepEvent? value) + { + value = Grep; + return IsGrep; + } + + /// + /// + /// + public global::Mixedbread.StoreGrepEvent PickGrep() => IsGrep + ? Grep! + : throw new global::System.InvalidOperationException($"Expected union variant 'Grep' but the value was {ToString()}."); /// /// /// @@ -196,6 +235,29 @@ public DataItem(global::Mixedbread.StoreAgenticSearchEvent? value) /// public static DataItem FromAgenticSearch(global::Mixedbread.StoreAgenticSearchEvent? value) => new DataItem(value); + /// + /// + /// + public static implicit operator DataItem(global::Mixedbread.StoreGrepEvent value) => new DataItem((global::Mixedbread.StoreGrepEvent?)value); + + /// + /// + /// + public static implicit operator global::Mixedbread.StoreGrepEvent?(DataItem @this) => @this.Grep; + + /// + /// + /// + public DataItem(global::Mixedbread.StoreGrepEvent? value) + { + Grep = value; + } + + /// + /// + /// + public static DataItem FromGrep(global::Mixedbread.StoreGrepEvent? value) => new DataItem(value); + /// /// /// @@ -203,7 +265,8 @@ public DataItem( global::Mixedbread.StoreEventListResponseDataItemDiscriminatorType? type, global::Mixedbread.StoreIngestionEvent? ingestion, global::Mixedbread.StoreSearchEvent? search, - global::Mixedbread.StoreAgenticSearchEvent? agenticSearch + global::Mixedbread.StoreAgenticSearchEvent? agenticSearch, + global::Mixedbread.StoreGrepEvent? grep ) { Type = type; @@ -211,12 +274,14 @@ public DataItem( Ingestion = ingestion; Search = search; AgenticSearch = agenticSearch; + Grep = grep; } /// /// /// public object? Object => + Grep as object ?? AgenticSearch as object ?? Search as object ?? Ingestion as object @@ -228,7 +293,8 @@ Ingestion as object public override string? ToString() => Ingestion?.ToString() ?? Search?.ToString() ?? - AgenticSearch?.ToString() + AgenticSearch?.ToString() ?? + Grep?.ToString() ; /// @@ -236,7 +302,7 @@ Ingestion as object /// public bool Validate() { - return IsIngestion && !IsSearch && !IsAgenticSearch || !IsIngestion && IsSearch && !IsAgenticSearch || !IsIngestion && !IsSearch && IsAgenticSearch; + return IsIngestion && !IsSearch && !IsAgenticSearch && !IsGrep || !IsIngestion && IsSearch && !IsAgenticSearch && !IsGrep || !IsIngestion && !IsSearch && IsAgenticSearch && !IsGrep || !IsIngestion && !IsSearch && !IsAgenticSearch && IsGrep; } /// @@ -246,6 +312,7 @@ public bool Validate() global::System.Func? ingestion = null, global::System.Func? search = null, global::System.Func? agenticSearch = null, + global::System.Func? grep = null, bool validate = true) { if (validate) @@ -265,6 +332,10 @@ public bool Validate() { return agenticSearch(AgenticSearch!); } + else if (IsGrep && grep != null) + { + return grep(Grep!); + } return default(TResult); } @@ -278,6 +349,8 @@ public void Match( global::System.Action? search = null, global::System.Action? agenticSearch = null, + + global::System.Action? grep = null, bool validate = true) { if (validate) @@ -297,6 +370,10 @@ public void Match( { agenticSearch?.Invoke(AgenticSearch!); } + else if (IsGrep) + { + grep?.Invoke(Grep!); + } } /// @@ -306,6 +383,7 @@ public void Switch( global::System.Action? ingestion = null, global::System.Action? search = null, global::System.Action? agenticSearch = null, + global::System.Action? grep = null, bool validate = true) { if (validate) @@ -325,6 +403,10 @@ public void Switch( { agenticSearch?.Invoke(AgenticSearch!); } + else if (IsGrep) + { + grep?.Invoke(Grep!); + } } /// @@ -340,6 +422,8 @@ public override int GetHashCode() typeof(global::Mixedbread.StoreSearchEvent), AgenticSearch, typeof(global::Mixedbread.StoreAgenticSearchEvent), + Grep, + typeof(global::Mixedbread.StoreGrepEvent), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -358,7 +442,8 @@ public bool Equals(DataItem other) return global::System.Collections.Generic.EqualityComparer.Default.Equals(Ingestion, other.Ingestion) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Search, other.Search) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AgenticSearch, other.AgenticSearch) + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgenticSearch, other.AgenticSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Grep, other.Grep) ; } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem2.Json.g.cs index 4a469e9..f85a0b4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataItem2?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataItem2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataItem2?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem3.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem3.Json.g.cs index 2830fa6..8c24741 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem3.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem3.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataItem3?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataItem3? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataItem3?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.Json.g.cs index 99fde7b..d24b02b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem4.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataItem4?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataItem4? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataItem4?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem5.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem5.Json.g.cs index d3d9cd0..dc6bbef 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem5.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataItem5.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataItem5?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataItem5? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataItem5?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSource.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSource.Json.g.cs index 84b87c2..2d1556f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSource.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSource.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSource; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSource? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSource; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceApiKeyParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceApiKeyParams.Json.g.cs index c05149d..1e177a5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceApiKeyParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceApiKeyParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceApiKeyParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceApiKeyParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceApiKeyParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceAuthParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceAuthParams.Json.g.cs index e316b54..f9c63e4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceAuthParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceAuthParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceAuthParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceAuthParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceAuthParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceAuthParamsVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceAuthParamsVariant1Discriminator.Json.g.cs index a725975..0361eb9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceAuthParamsVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceAuthParamsVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceAuthParamsVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceAuthParamsVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceAuthParamsVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnector.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnector.Json.g.cs index a4ab530..a03bb2a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnector.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnector.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnector; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnector? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnector; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorCreateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorCreateParams.Json.g.cs index cb0292c..7e4396b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorCreateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorCreateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorCreateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorCreateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorCreateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorCreateParamsMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorCreateParamsMetadata.Json.g.cs index 867dbc1..61c69be 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorCreateParamsMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorCreateParamsMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorCreateParamsMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorCreateParamsMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorCreateParamsMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorCreateParamsMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorCreateParamsMetadata2.Json.g.cs index d16e2b5..55d1ca2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorCreateParamsMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorCreateParamsMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorCreateParamsMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorCreateParamsMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorCreateParamsMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorDeleted.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorDeleted.Json.g.cs index 1ba6c6b..27eb999 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorDeleted.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorDeleted.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorDeleted; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorDeleted? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorDeleted; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorError.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorError.Json.g.cs index a3a3de1..9639ae2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorError.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorError.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorError; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorError? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorError; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorError2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorError2.Json.g.cs index 9cac2c1..2240558 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorError2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorError2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorError2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorError2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorError2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorFinishedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorFinishedAt.Json.g.cs index e6d2225..adc9594 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorFinishedAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorFinishedAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorFinishedAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorFinishedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorFinishedAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorLastSyncedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorLastSyncedAt.Json.g.cs index fac7471..025d483 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorLastSyncedAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorLastSyncedAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorLastSyncedAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorLastSyncedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorLastSyncedAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorMetadata.Json.g.cs index c224baa..d12f289 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorMetadata2.Json.g.cs index 4929606..eed3b40 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorStartedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorStartedAt.Json.g.cs index 11cff34..34a2453 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorStartedAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorStartedAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorStartedAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorStartedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorStartedAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParams.Json.g.cs index dc2b651..62bcad5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorUpdateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorUpdateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorUpdateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsMetadata.Json.g.cs index 11cda3e..b85277d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorUpdateParamsMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorUpdateParamsMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorUpdateParamsMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsMetadata2.Json.g.cs index 60b2b44..b7a5a6d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorUpdateParamsMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorUpdateParamsMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorUpdateParamsMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsName.Json.g.cs index 5bdc1dd..7c4b208 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsName.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsName.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorUpdateParamsName; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorUpdateParamsName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorUpdateParamsName; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsTriggerSync.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsTriggerSync.Json.g.cs index 78f97d1..51e65bf 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsTriggerSync.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceConnectorUpdateParamsTriggerSync.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceConnectorUpdateParamsTriggerSync; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceConnectorUpdateParamsTriggerSync? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceConnectorUpdateParamsTriggerSync; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceDeleted.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceDeleted.Json.g.cs index ddc7f18..1ab0544 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceDeleted.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceDeleted.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceDeleted; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceDeleted? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceDeleted; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallation.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallation.Json.g.cs new file mode 100644 index 0000000..f8e387a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallation.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class DataSourceInstallation + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceInstallation? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.DataSourceInstallation), + jsonSerializerContext) as global::Mixedbread.DataSourceInstallation; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceInstallation? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.DataSourceInstallation? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.DataSourceInstallation), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceInstallation; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallation.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallation.g.cs new file mode 100644 index 0000000..d1e9aeb --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallation.g.cs @@ -0,0 +1,118 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Provider-agnostic summary of a connected data source for the overview list. + /// + public sealed partial class DataSourceInstallation + { + /// + /// Integration installation ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("installation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string InstallationId { get; set; } + + /// + /// The integration provider identifier + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Provider { get; set; } + + /// + /// Human-readable connected account/workspace name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("display_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string DisplayName { get; set; } + + /// + /// The installation status + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Status { get; set; } + + /// + /// Mixedbread ingestion store ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_id")] + public string? StoreId { get; set; } + + /// + /// Mixedbread ingestion store name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_name")] + public string? StoreName { get; set; } + + /// + /// Number of selected ingestion items (channels/folders)
+ /// Default Value: 0 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("item_count")] + public int? ItemCount { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Integration installation ID + /// + /// + /// The integration provider identifier + /// + /// + /// Human-readable connected account/workspace name + /// + /// + /// The installation status + /// + /// + /// Mixedbread ingestion store ID + /// + /// + /// Mixedbread ingestion store name + /// + /// + /// Number of selected ingestion items (channels/folders)
+ /// Default Value: 0 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DataSourceInstallation( + string installationId, + string provider, + string displayName, + string status, + string? storeId, + string? storeName, + int? itemCount) + { + this.InstallationId = installationId ?? throw new global::System.ArgumentNullException(nameof(installationId)); + this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); + this.DisplayName = displayName ?? throw new global::System.ArgumentNullException(nameof(displayName)); + this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); + this.StoreId = storeId; + this.StoreName = storeName; + this.ItemCount = itemCount; + } + + /// + /// Initializes a new instance of the class. + /// + public DataSourceInstallation() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationListResponse.Json.g.cs new file mode 100644 index 0000000..446130c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationListResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class DataSourceInstallationListResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceInstallationListResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.DataSourceInstallationListResponse), + jsonSerializerContext) as global::Mixedbread.DataSourceInstallationListResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceInstallationListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.DataSourceInstallationListResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.DataSourceInstallationListResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceInstallationListResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationListResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationListResponse.g.cs new file mode 100644 index 0000000..08af737 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationListResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// List of all connected data sources across providers. + /// + public sealed partial class DataSourceInstallationListResponse + { + /// + /// Connected data sources + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Connected data sources + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DataSourceInstallationListResponse( + global::System.Collections.Generic.IList data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public DataSourceInstallationListResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationStoreId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationStoreId.Json.g.cs new file mode 100644 index 0000000..45836ac --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationStoreId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class DataSourceInstallationStoreId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceInstallationStoreId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.DataSourceInstallationStoreId), + jsonSerializerContext) as global::Mixedbread.DataSourceInstallationStoreId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceInstallationStoreId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.DataSourceInstallationStoreId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.DataSourceInstallationStoreId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceInstallationStoreId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationStoreId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationStoreId.g.cs new file mode 100644 index 0000000..fd26f3d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationStoreId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Mixedbread ingestion store ID + /// + public sealed partial class DataSourceInstallationStoreId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationStoreName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationStoreName.Json.g.cs new file mode 100644 index 0000000..5428834 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationStoreName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class DataSourceInstallationStoreName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceInstallationStoreName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.DataSourceInstallationStoreName), + jsonSerializerContext) as global::Mixedbread.DataSourceInstallationStoreName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceInstallationStoreName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.DataSourceInstallationStoreName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.DataSourceInstallationStoreName), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceInstallationStoreName; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationStoreName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationStoreName.g.cs new file mode 100644 index 0000000..d8a4038 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceInstallationStoreName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Mixedbread ingestion store name + /// + public sealed partial class DataSourceInstallationStoreName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceListResponse.Json.g.cs index 59fa138..7a8fa31 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceListResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceMetadata.Json.g.cs index 77e2445..e48588c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceMetadata2.Json.g.cs index d2c85e8..3c17403 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2Params.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2Params.Json.g.cs index 4ea0de3..bc7dda4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2Params.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2Params.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceOAuth2Params; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceOAuth2Params? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceOAuth2Params; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsAccessToken.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsAccessToken.Json.g.cs index e5c960a..9d56699 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsAccessToken.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsAccessToken.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceOAuth2ParamsAccessToken; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceOAuth2ParamsAccessToken? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceOAuth2ParamsAccessToken; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsAdditionalParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsAdditionalParams.Json.g.cs index 35f0992..f49d55f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsAdditionalParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsAdditionalParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceOAuth2ParamsAdditionalParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceOAuth2ParamsAdditionalParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceOAuth2ParamsAdditionalParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsAdditionalParams2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsAdditionalParams2.Json.g.cs index 7186990..28f0e69 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsAdditionalParams2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsAdditionalParams2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceOAuth2ParamsAdditionalParams2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceOAuth2ParamsAdditionalParams2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceOAuth2ParamsAdditionalParams2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsExpiresOn.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsExpiresOn.Json.g.cs index 79e7288..1c66e7c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsExpiresOn.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsExpiresOn.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceOAuth2ParamsExpiresOn; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceOAuth2ParamsExpiresOn? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceOAuth2ParamsExpiresOn; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsRefreshToken.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsRefreshToken.Json.g.cs index d0dbf23..4aae8fd 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsRefreshToken.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsRefreshToken.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceOAuth2ParamsRefreshToken; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceOAuth2ParamsRefreshToken? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceOAuth2ParamsRefreshToken; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsScope.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsScope.Json.g.cs index 2fc59aa..749b140 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsScope.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsScope.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceOAuth2ParamsScope; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceOAuth2ParamsScope? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceOAuth2ParamsScope; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsTokenType.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsTokenType.Json.g.cs index d22be75..522dc14 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsTokenType.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DataSourceOAuth2ParamsTokenType.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DataSourceOAuth2ParamsTokenType; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DataSourceOAuth2ParamsTokenType? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DataSourceOAuth2ParamsTokenType; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule.Json.g.cs index 9c3cba2..afa950a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DeletedRule?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DeletedRule? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DeletedRule?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule2.Json.g.cs index f3b13d4..196d52a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeletedRule2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DeletedRule2?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DeletedRule2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DeletedRule2?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParams.Json.g.cs index e23a906..884fe77 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DeprecatedStoreFileUpsertParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DeprecatedStoreFileUpsertParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DeprecatedStoreFileUpsertParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsExperimental.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsExperimental.Json.g.cs index 3e68a66..492205d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsExperimental.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsExperimental.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DeprecatedStoreFileUpsertParamsExperimental; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DeprecatedStoreFileUpsertParamsExperimental? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DeprecatedStoreFileUpsertParamsExperimental; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsExternalId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsExternalId.Json.g.cs index e404bdf..c6eb004 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsExternalId.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsExternalId.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DeprecatedStoreFileUpsertParamsExternalId; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DeprecatedStoreFileUpsertParamsExternalId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DeprecatedStoreFileUpsertParamsExternalId; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsMetadata.Json.g.cs index fd76a79..8224a0f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DeprecatedStoreFileUpsertParamsMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DeprecatedStoreFileUpsertParamsMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DeprecatedStoreFileUpsertParamsMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsMetadata2.Json.g.cs index e392cef..9febdb3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DeprecatedStoreFileUpsertParamsMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DeprecatedStoreFileUpsertParamsMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DeprecatedStoreFileUpsertParamsMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DeprecatedStoreFileUpsertParamsMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.DocumentParserResult.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.DocumentParserResult.Json.g.cs index 0418b66..18c5c99 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.DocumentParserResult.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.DocumentParserResult.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.DocumentParserResult; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.DocumentParserResult? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.DocumentParserResult; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Embedding.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Embedding.Json.g.cs index 61988fa..214c12a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Embedding.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Embedding.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.Embedding; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.Embedding? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.Embedding; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateParams.Json.g.cs index d559108..9518586 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.EmbeddingCreateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.EmbeddingCreateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.EmbeddingCreateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateParamsDimensions.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateParamsDimensions.Json.g.cs index a652089..75c847d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateParamsDimensions.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateParamsDimensions.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.EmbeddingCreateParamsDimensions; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.EmbeddingCreateParamsDimensions? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.EmbeddingCreateParamsDimensions; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateParamsPrompt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateParamsPrompt.Json.g.cs index 7406720..a2029a1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateParamsPrompt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateParamsPrompt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.EmbeddingCreateParamsPrompt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.EmbeddingCreateParamsPrompt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.EmbeddingCreateParamsPrompt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateResponse.Json.g.cs index 053b212..fac9ae1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.EmbeddingCreateResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.EmbeddingCreateResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.EmbeddingCreateResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateResponseDimensions.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateResponseDimensions.Json.g.cs index abab4e0..92071fa 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateResponseDimensions.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingCreateResponseDimensions.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.EmbeddingCreateResponseDimensions; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.EmbeddingCreateResponseDimensions? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.EmbeddingCreateResponseDimensions; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingItem.Json.g.cs index 4f367df..c188b90 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingItem.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.EmbeddingItem?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.EmbeddingItem? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.EmbeddingItem?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.EnhancedJsonSchema.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.EnhancedJsonSchema.Json.g.cs index c033341..30c57c9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.EnhancedJsonSchema.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.EnhancedJsonSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.EnhancedJsonSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.EnhancedJsonSchema? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.EnhancedJsonSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.EnhancedJsonSchemaJsonSchema.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.EnhancedJsonSchemaJsonSchema.Json.g.cs index e6c1049..de7b653 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.EnhancedJsonSchemaJsonSchema.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.EnhancedJsonSchemaJsonSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.EnhancedJsonSchemaJsonSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.EnhancedJsonSchemaJsonSchema? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.EnhancedJsonSchemaJsonSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ErrorResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ErrorResponse.Json.g.cs index 7b67cd6..d9c0f66 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ErrorResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ErrorResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ErrorResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ErrorResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ErrorResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExpiresAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExpiresAfter.Json.g.cs index 3df70e3..8484b7c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExpiresAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExpiresAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExpiresAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExpiresAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExpiresAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractContentCreateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractContentCreateParams.Json.g.cs index af27d29..fd7498c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractContentCreateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractContentCreateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractContentCreateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractContentCreateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractContentCreateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractContentCreateParamsInstructions.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractContentCreateParamsInstructions.Json.g.cs index f02a7a5..231b48b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractContentCreateParamsInstructions.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractContentCreateParamsInstructions.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractContentCreateParamsInstructions; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractContentCreateParamsInstructions? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractContentCreateParamsInstructions; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractContentCreateParamsJsonSchema.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractContentCreateParamsJsonSchema.Json.g.cs index 7f035c6..ff5d0ff 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractContentCreateParamsJsonSchema.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractContentCreateParamsJsonSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractContentCreateParamsJsonSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractContentCreateParamsJsonSchema? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractContentCreateParamsJsonSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractJobCreateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractJobCreateParams.Json.g.cs index 754c895..79d40af 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractJobCreateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractJobCreateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractJobCreateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractJobCreateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractJobCreateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractJobCreateParamsJsonSchema.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractJobCreateParamsJsonSchema.Json.g.cs index ecf15f9..e656735 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractJobCreateParamsJsonSchema.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractJobCreateParamsJsonSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractJobCreateParamsJsonSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractJobCreateParamsJsonSchema? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractJobCreateParamsJsonSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJob.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJob.Json.g.cs index 4fb269c..28e822f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJob.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJob.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractionJob; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractionJob? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractionJob; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobError.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobError.Json.g.cs index ac5ba7c..f1da58e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobError.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobError.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractionJobError; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractionJobError? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractionJobError; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobError2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobError2.Json.g.cs index bbf9022..090c21f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobError2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobError2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractionJobError2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractionJobError2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractionJobError2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobFinishedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobFinishedAt.Json.g.cs index 140d70e..0d5ad3c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobFinishedAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobFinishedAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractionJobFinishedAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractionJobFinishedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractionJobFinishedAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobJsonSchema.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobJsonSchema.Json.g.cs index ae5e77a..001ecb5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobJsonSchema.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobJsonSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractionJobJsonSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractionJobJsonSchema? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractionJobJsonSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobResult.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobResult.Json.g.cs index 1f7dfc3..b891525 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobResult.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobResult.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractionJobResult; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractionJobResult? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractionJobResult; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobStartedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobStartedAt.Json.g.cs index e61e89e..56674ff 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobStartedAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionJobStartedAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractionJobStartedAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractionJobStartedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractionJobStartedAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionResult.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionResult.Json.g.cs index ceeb0f9..5278d9a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionResult.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionResult.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractionResult; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractionResult? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractionResult; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionResultData.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionResultData.Json.g.cs index 42cb26b..ece7b7a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionResultData.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ExtractionResultData.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ExtractionResultData; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ExtractionResultData? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ExtractionResultData; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.FileCounts.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.FileCounts.Json.g.cs index fcffe72..5f4980c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.FileCounts.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.FileCounts.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.FileCounts; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.FileCounts? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.FileCounts; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.FileDeleted.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.FileDeleted.Json.g.cs index eaa712b..6b5f8c6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.FileDeleted.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.FileDeleted.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.FileDeleted; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.FileDeleted? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.FileDeleted; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.FileListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.FileListResponse.Json.g.cs index 3c3820d..6583da3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.FileListResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.FileListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.FileListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.FileListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.FileListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.FileObject.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.FileObject.Json.g.cs index b06202a..cbe49c1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.FileObject.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.FileObject.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.FileObject; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.FileObject? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.FileObject; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.FileSearchResultRule.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.FileSearchResultRule.Json.g.cs index f5bd955..f0a6ba0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.FileSearchResultRule.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.FileSearchResultRule.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.FileSearchResultRule; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.FileSearchResultRule? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.FileSearchResultRule; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant1.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant1.Json.g.cs index 3ce590c..afc88a7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant1.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant1.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.GeneratedMetadataVariant1?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GeneratedMetadataVariant1? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GeneratedMetadataVariant1?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant110.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant110.Json.g.cs index 7f43b76..a7ac190 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant110.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant110.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.GeneratedMetadataVariant110?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GeneratedMetadataVariant110? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GeneratedMetadataVariant110?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant111.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant111.Json.g.cs index 48f55e7..08db03e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant111.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant111.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.GeneratedMetadataVariant111?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GeneratedMetadataVariant111? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GeneratedMetadataVariant111?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant112.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant112.Json.g.cs index 76b7d5c..fabc862 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant112.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant112.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.GeneratedMetadataVariant112?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GeneratedMetadataVariant112? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GeneratedMetadataVariant112?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant12.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant12.Json.g.cs index ae4d5f9..b605ba8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant12.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant12.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.GeneratedMetadataVariant12?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GeneratedMetadataVariant12? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GeneratedMetadataVariant12?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant13.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant13.Json.g.cs index 1339e65..d207b0a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant13.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant13.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.GeneratedMetadataVariant13?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GeneratedMetadataVariant13? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GeneratedMetadataVariant13?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant14.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant14.Json.g.cs index ba3812b..efc6bdf 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant14.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant14.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.GeneratedMetadataVariant14?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GeneratedMetadataVariant14? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GeneratedMetadataVariant14?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant15.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant15.Json.g.cs index 6ee5ec2..68428f4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant15.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant15.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.GeneratedMetadataVariant15?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GeneratedMetadataVariant15? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GeneratedMetadataVariant15?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant16.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant16.Json.g.cs index f86e926..46bd53a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant16.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant16.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.GeneratedMetadataVariant16?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GeneratedMetadataVariant16? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GeneratedMetadataVariant16?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant17.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant17.Json.g.cs index 2c4e312..d282229 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant17.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant17.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.GeneratedMetadataVariant17?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GeneratedMetadataVariant17? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GeneratedMetadataVariant17?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant18.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant18.Json.g.cs index 2ee45de..c16d9cb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant18.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant18.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.GeneratedMetadataVariant18?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GeneratedMetadataVariant18? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GeneratedMetadataVariant18?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant19.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant19.Json.g.cs index cc26085..bfd1236 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant19.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GeneratedMetadataVariant19.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.GeneratedMetadataVariant19?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GeneratedMetadataVariant19? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GeneratedMetadataVariant19?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GetMxbaiJsonSchemaResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GetMxbaiJsonSchemaResponse.Json.g.cs index 7b3173a..e8e13e8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.GetMxbaiJsonSchemaResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GetMxbaiJsonSchemaResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.GetMxbaiJsonSchemaResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GetMxbaiJsonSchemaResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GetMxbaiJsonSchemaResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveEventsResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveEventsResponse.Json.g.cs new file mode 100644 index 0000000..97aec6b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveEventsResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveEventsResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveEventsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveEventsResponse), + jsonSerializerContext) as global::Mixedbread.GoogleDriveEventsResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveEventsResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveEventsResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveEventsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveEventsResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveEventsResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveEventsResponse.g.cs new file mode 100644 index 0000000..39887e0 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveEventsResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class GoogleDriveEventsResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolder.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolder.Json.g.cs new file mode 100644 index 0000000..d2ea58b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolder.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveFolder + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolder? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveFolder), + jsonSerializerContext) as global::Mixedbread.GoogleDriveFolder; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolder? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveFolder? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveFolder), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveFolder; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolder.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolder.g.cs new file mode 100644 index 0000000..64e10d4 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolder.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Google Drive folder exposed for connector configuration. + /// + public sealed partial class GoogleDriveFolder + { + /// + /// Google Drive folder ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Google Drive folder name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// Whether this folder is selected for store ingestion
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("is_selected")] + public bool? IsSelected { get; set; } + + /// + /// Google Drive web view link + /// + [global::System.Text.Json.Serialization.JsonPropertyName("web_view_link")] + public string? WebViewLink { get; set; } + + /// + /// Last successful sync time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_synced_at")] + public global::System.DateTime? LastSyncedAt { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Google Drive folder ID + /// + /// + /// Google Drive folder name + /// + /// + /// Whether this folder is selected for store ingestion
+ /// Default Value: false + /// + /// + /// Google Drive web view link + /// + /// + /// Last successful sync time + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GoogleDriveFolder( + string id, + string name, + bool? isSelected, + string? webViewLink, + global::System.DateTime? lastSyncedAt) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.IsSelected = isSelected; + this.WebViewLink = webViewLink; + this.LastSyncedAt = lastSyncedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public GoogleDriveFolder() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderLastSyncedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderLastSyncedAt.Json.g.cs new file mode 100644 index 0000000..894b456 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderLastSyncedAt.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveFolderLastSyncedAt + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderLastSyncedAt? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveFolderLastSyncedAt), + jsonSerializerContext) as global::Mixedbread.GoogleDriveFolderLastSyncedAt; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderLastSyncedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveFolderLastSyncedAt? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveFolderLastSyncedAt), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveFolderLastSyncedAt; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderLastSyncedAt.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderLastSyncedAt.g.cs new file mode 100644 index 0000000..3bc54c5 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderLastSyncedAt.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Last successful sync time + /// + public sealed partial class GoogleDriveFolderLastSyncedAt + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelection.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelection.Json.g.cs new file mode 100644 index 0000000..e9fe989 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelection.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveFolderSelection + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelection? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveFolderSelection), + jsonSerializerContext) as global::Mixedbread.GoogleDriveFolderSelection; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelection? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveFolderSelection? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveFolderSelection), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveFolderSelection; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelection.g.cs new file mode 100644 index 0000000..30eca8c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelection.g.cs @@ -0,0 +1,116 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Google Drive folder selection for a store connector. + /// + public sealed partial class GoogleDriveFolderSelection + { + /// + /// Whether Google Drive is installed for the organization + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_installed")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsInstalled { get; set; } + + /// + /// Google Drive installation ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("installation_id")] + public string? InstallationId { get; set; } + + /// + /// Connected Google account email + /// + [global::System.Text.Json.Serialization.JsonPropertyName("account_email")] + public string? AccountEmail { get; set; } + + /// + /// Mixedbread store ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_id")] + public string? StoreId { get; set; } + + /// + /// Mixedbread store name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_name")] + public string? StoreName { get; set; } + + /// + /// Whether the entire Drive (all current and future files) is synced automatically
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("auto_sync_all")] + public bool? AutoSyncAll { get; set; } + + /// + /// Available Google Drive folders + /// + [global::System.Text.Json.Serialization.JsonPropertyName("folders")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Folders { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Whether Google Drive is installed for the organization + /// + /// + /// Available Google Drive folders + /// + /// + /// Google Drive installation ID + /// + /// + /// Connected Google account email + /// + /// + /// Mixedbread store ID + /// + /// + /// Mixedbread store name + /// + /// + /// Whether the entire Drive (all current and future files) is synced automatically
+ /// Default Value: false + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GoogleDriveFolderSelection( + bool isInstalled, + global::System.Collections.Generic.IList folders, + string? installationId, + string? accountEmail, + string? storeId, + string? storeName, + bool? autoSyncAll) + { + this.IsInstalled = isInstalled; + this.InstallationId = installationId; + this.AccountEmail = accountEmail; + this.StoreId = storeId; + this.StoreName = storeName; + this.AutoSyncAll = autoSyncAll; + this.Folders = folders ?? throw new global::System.ArgumentNullException(nameof(folders)); + } + + /// + /// Initializes a new instance of the class. + /// + public GoogleDriveFolderSelection() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionAccountEmail.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionAccountEmail.Json.g.cs new file mode 100644 index 0000000..448b5f9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionAccountEmail.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveFolderSelectionAccountEmail + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionAccountEmail? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveFolderSelectionAccountEmail), + jsonSerializerContext) as global::Mixedbread.GoogleDriveFolderSelectionAccountEmail; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionAccountEmail? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveFolderSelectionAccountEmail? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveFolderSelectionAccountEmail), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveFolderSelectionAccountEmail; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionAccountEmail.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionAccountEmail.g.cs new file mode 100644 index 0000000..fa4d33c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionAccountEmail.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Connected Google account email + /// + public sealed partial class GoogleDriveFolderSelectionAccountEmail + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionInstallationId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionInstallationId.Json.g.cs new file mode 100644 index 0000000..101fdb0 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionInstallationId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveFolderSelectionInstallationId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionInstallationId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveFolderSelectionInstallationId), + jsonSerializerContext) as global::Mixedbread.GoogleDriveFolderSelectionInstallationId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionInstallationId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveFolderSelectionInstallationId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveFolderSelectionInstallationId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveFolderSelectionInstallationId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionInstallationId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionInstallationId.g.cs new file mode 100644 index 0000000..d8ac73a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionInstallationId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Google Drive installation ID + /// + public sealed partial class GoogleDriveFolderSelectionInstallationId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionResponse.Json.g.cs new file mode 100644 index 0000000..7bcde57 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveFolderSelectionResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveFolderSelectionResponse), + jsonSerializerContext) as global::Mixedbread.GoogleDriveFolderSelectionResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveFolderSelectionResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveFolderSelectionResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveFolderSelectionResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionResponse.g.cs new file mode 100644 index 0000000..7e66749 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Google Drive folder selection response. + /// + public sealed partial class GoogleDriveFolderSelectionResponse + { + /// + /// Google Drive folder selection + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.GoogleDriveFolderSelection Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Google Drive folder selection + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GoogleDriveFolderSelectionResponse( + global::Mixedbread.GoogleDriveFolderSelection data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public GoogleDriveFolderSelectionResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionStoreId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionStoreId.Json.g.cs new file mode 100644 index 0000000..840a09e --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionStoreId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveFolderSelectionStoreId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionStoreId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveFolderSelectionStoreId), + jsonSerializerContext) as global::Mixedbread.GoogleDriveFolderSelectionStoreId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionStoreId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveFolderSelectionStoreId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveFolderSelectionStoreId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveFolderSelectionStoreId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionStoreId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionStoreId.g.cs new file mode 100644 index 0000000..f885408 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionStoreId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Mixedbread store ID + /// + public sealed partial class GoogleDriveFolderSelectionStoreId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionStoreName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionStoreName.Json.g.cs new file mode 100644 index 0000000..7cef3d7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionStoreName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveFolderSelectionStoreName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionStoreName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveFolderSelectionStoreName), + jsonSerializerContext) as global::Mixedbread.GoogleDriveFolderSelectionStoreName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionStoreName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveFolderSelectionStoreName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveFolderSelectionStoreName), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveFolderSelectionStoreName; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionStoreName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionStoreName.g.cs new file mode 100644 index 0000000..11d2e6e --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionStoreName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Mixedbread store name + /// + public sealed partial class GoogleDriveFolderSelectionStoreName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdate.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdate.Json.g.cs new file mode 100644 index 0000000..74889c6 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdate.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveFolderSelectionUpdate + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionUpdate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveFolderSelectionUpdate), + jsonSerializerContext) as global::Mixedbread.GoogleDriveFolderSelectionUpdate; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionUpdate? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveFolderSelectionUpdate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveFolderSelectionUpdate), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveFolderSelectionUpdate; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdate.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdate.g.cs new file mode 100644 index 0000000..f24f761 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdate.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Result of updating Google Drive folder selection. + /// + public sealed partial class GoogleDriveFolderSelectionUpdate + { + /// + /// Mixedbread store ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string StoreId { get; set; } + + /// + /// Selected Google Drive folder IDs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("selected_folder_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList SelectedFolderIds { get; set; } + + /// + /// Folders queued for backfill ingestion + /// + [global::System.Text.Json.Serialization.JsonPropertyName("backfill_folder_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList BackfillFolderIds { get; set; } + + /// + /// Folder IDs skipped with a reason + /// + [global::System.Text.Json.Serialization.JsonPropertyName("skipped_folders")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.Dictionary SkippedFolders { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Mixedbread store ID + /// + /// + /// Selected Google Drive folder IDs + /// + /// + /// Folders queued for backfill ingestion + /// + /// + /// Folder IDs skipped with a reason + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GoogleDriveFolderSelectionUpdate( + string storeId, + global::System.Collections.Generic.IList selectedFolderIds, + global::System.Collections.Generic.IList backfillFolderIds, + global::System.Collections.Generic.Dictionary skippedFolders) + { + this.StoreId = storeId ?? throw new global::System.ArgumentNullException(nameof(storeId)); + this.SelectedFolderIds = selectedFolderIds ?? throw new global::System.ArgumentNullException(nameof(selectedFolderIds)); + this.BackfillFolderIds = backfillFolderIds ?? throw new global::System.ArgumentNullException(nameof(backfillFolderIds)); + this.SkippedFolders = skippedFolders ?? throw new global::System.ArgumentNullException(nameof(skippedFolders)); + } + + /// + /// Initializes a new instance of the class. + /// + public GoogleDriveFolderSelectionUpdate() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateParams.Json.g.cs new file mode 100644 index 0000000..fbf691d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateParams.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveFolderSelectionUpdateParams + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionUpdateParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveFolderSelectionUpdateParams), + jsonSerializerContext) as global::Mixedbread.GoogleDriveFolderSelectionUpdateParams; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionUpdateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveFolderSelectionUpdateParams? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveFolderSelectionUpdateParams), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveFolderSelectionUpdateParams; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateParams.g.cs new file mode 100644 index 0000000..5886797 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateParams.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Parameters for selecting Google Drive folders for store ingestion. + /// + public sealed partial class GoogleDriveFolderSelectionUpdateParams + { + /// + /// Google Drive installation ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("installation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid InstallationId { get; set; } + + /// + /// Google Drive folder IDs to ingest into the store + /// + [global::System.Text.Json.Serialization.JsonPropertyName("folder_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList FolderIds { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Google Drive installation ID + /// + /// + /// Google Drive folder IDs to ingest into the store + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GoogleDriveFolderSelectionUpdateParams( + global::System.Guid installationId, + global::System.Collections.Generic.IList folderIds) + { + this.InstallationId = installationId; + this.FolderIds = folderIds ?? throw new global::System.ArgumentNullException(nameof(folderIds)); + } + + /// + /// Initializes a new instance of the class. + /// + public GoogleDriveFolderSelectionUpdateParams() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateResponse.Json.g.cs new file mode 100644 index 0000000..dfb1858 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveFolderSelectionUpdateResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionUpdateResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveFolderSelectionUpdateResponse), + jsonSerializerContext) as global::Mixedbread.GoogleDriveFolderSelectionUpdateResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionUpdateResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveFolderSelectionUpdateResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveFolderSelectionUpdateResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveFolderSelectionUpdateResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateResponse.g.cs new file mode 100644 index 0000000..5be7fc7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Google Drive folder selection update response. + /// + public sealed partial class GoogleDriveFolderSelectionUpdateResponse + { + /// + /// Google Drive folder selection update + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.GoogleDriveFolderSelectionUpdate Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Google Drive folder selection update + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GoogleDriveFolderSelectionUpdateResponse( + global::Mixedbread.GoogleDriveFolderSelectionUpdate data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public GoogleDriveFolderSelectionUpdateResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateSkippedFolders.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateSkippedFolders.Json.g.cs new file mode 100644 index 0000000..68f891e --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateSkippedFolders.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveFolderSelectionUpdateSkippedFolders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionUpdateSkippedFolders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveFolderSelectionUpdateSkippedFolders), + jsonSerializerContext) as global::Mixedbread.GoogleDriveFolderSelectionUpdateSkippedFolders; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderSelectionUpdateSkippedFolders? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveFolderSelectionUpdateSkippedFolders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveFolderSelectionUpdateSkippedFolders), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveFolderSelectionUpdateSkippedFolders; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateSkippedFolders.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateSkippedFolders.g.cs new file mode 100644 index 0000000..c5dadc2 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderSelectionUpdateSkippedFolders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Folder IDs skipped with a reason + /// + public sealed partial class GoogleDriveFolderSelectionUpdateSkippedFolders + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderWebViewLink.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderWebViewLink.Json.g.cs new file mode 100644 index 0000000..8adefc7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderWebViewLink.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveFolderWebViewLink + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderWebViewLink? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveFolderWebViewLink), + jsonSerializerContext) as global::Mixedbread.GoogleDriveFolderWebViewLink; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveFolderWebViewLink? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveFolderWebViewLink? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveFolderWebViewLink), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveFolderWebViewLink; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderWebViewLink.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderWebViewLink.g.cs new file mode 100644 index 0000000..1788519 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveFolderWebViewLink.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Google Drive web view link + /// + public sealed partial class GoogleDriveFolderWebViewLink + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationConfigUpdateBody.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationConfigUpdateBody.Json.g.cs new file mode 100644 index 0000000..e9d2ad1 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationConfigUpdateBody.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveInstallationConfigUpdateBody + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationConfigUpdateBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveInstallationConfigUpdateBody), + jsonSerializerContext) as global::Mixedbread.GoogleDriveInstallationConfigUpdateBody; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationConfigUpdateBody? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveInstallationConfigUpdateBody? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveInstallationConfigUpdateBody), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveInstallationConfigUpdateBody; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationConfigUpdateBody.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationConfigUpdateBody.g.cs new file mode 100644 index 0000000..8cd7e5b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationConfigUpdateBody.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Request body for updating a Google Drive installation's data source config. + /// + public sealed partial class GoogleDriveInstallationConfigUpdateBody + { + /// + /// Whether the entire Drive (all current and future files) is synced automatically + /// + [global::System.Text.Json.Serialization.JsonPropertyName("auto_sync_all")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool AutoSyncAll { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Whether the entire Drive (all current and future files) is synced automatically + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GoogleDriveInstallationConfigUpdateBody( + bool autoSyncAll) + { + this.AutoSyncAll = autoSyncAll; + } + + /// + /// Initializes a new instance of the class. + /// + public GoogleDriveInstallationConfigUpdateBody() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverview.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverview.Json.g.cs new file mode 100644 index 0000000..ba37662 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverview.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveInstallationOverview + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationOverview? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveInstallationOverview), + jsonSerializerContext) as global::Mixedbread.GoogleDriveInstallationOverview; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationOverview? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveInstallationOverview? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveInstallationOverview), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveInstallationOverview; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverview.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverview.g.cs new file mode 100644 index 0000000..e734afd --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverview.g.cs @@ -0,0 +1,129 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Summary of a connected Google Drive account for the data sources overview. + /// + public sealed partial class GoogleDriveInstallationOverview + { + /// + /// Google Drive installation ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("installation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string InstallationId { get; set; } + + /// + /// Connected Google account email + /// + [global::System.Text.Json.Serialization.JsonPropertyName("account_email")] + public string? AccountEmail { get; set; } + + /// + /// Connected Google account name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("account_name")] + public string? AccountName { get; set; } + + /// + /// The installation status + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Status { get; set; } + + /// + /// Mixedbread ingestion store ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_id")] + public string? StoreId { get; set; } + + /// + /// Mixedbread ingestion store name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_name")] + public string? StoreName { get; set; } + + /// + /// Number of Google Drive folders selected for ingestion
+ /// Default Value: 0 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("syncing_folder_count")] + public int? SyncingFolderCount { get; set; } + + /// + /// Whether the entire Drive is synced automatically
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("auto_sync_all")] + public bool? AutoSyncAll { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Google Drive installation ID + /// + /// + /// The installation status + /// + /// + /// Connected Google account email + /// + /// + /// Connected Google account name + /// + /// + /// Mixedbread ingestion store ID + /// + /// + /// Mixedbread ingestion store name + /// + /// + /// Number of Google Drive folders selected for ingestion
+ /// Default Value: 0 + /// + /// + /// Whether the entire Drive is synced automatically
+ /// Default Value: false + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GoogleDriveInstallationOverview( + string installationId, + string status, + string? accountEmail, + string? accountName, + string? storeId, + string? storeName, + int? syncingFolderCount, + bool? autoSyncAll) + { + this.InstallationId = installationId ?? throw new global::System.ArgumentNullException(nameof(installationId)); + this.AccountEmail = accountEmail; + this.AccountName = accountName; + this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); + this.StoreId = storeId; + this.StoreName = storeName; + this.SyncingFolderCount = syncingFolderCount; + this.AutoSyncAll = autoSyncAll; + } + + /// + /// Initializes a new instance of the class. + /// + public GoogleDriveInstallationOverview() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewAccountEmail.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewAccountEmail.Json.g.cs new file mode 100644 index 0000000..29a4158 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewAccountEmail.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveInstallationOverviewAccountEmail + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationOverviewAccountEmail? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveInstallationOverviewAccountEmail), + jsonSerializerContext) as global::Mixedbread.GoogleDriveInstallationOverviewAccountEmail; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationOverviewAccountEmail? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveInstallationOverviewAccountEmail? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveInstallationOverviewAccountEmail), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveInstallationOverviewAccountEmail; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewAccountEmail.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewAccountEmail.g.cs new file mode 100644 index 0000000..5cdb61c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewAccountEmail.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Connected Google account email + /// + public sealed partial class GoogleDriveInstallationOverviewAccountEmail + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewAccountName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewAccountName.Json.g.cs new file mode 100644 index 0000000..2a2c163 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewAccountName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveInstallationOverviewAccountName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationOverviewAccountName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveInstallationOverviewAccountName), + jsonSerializerContext) as global::Mixedbread.GoogleDriveInstallationOverviewAccountName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationOverviewAccountName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveInstallationOverviewAccountName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveInstallationOverviewAccountName), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveInstallationOverviewAccountName; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewAccountName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewAccountName.g.cs new file mode 100644 index 0000000..cc389e0 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewAccountName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Connected Google account name + /// + public sealed partial class GoogleDriveInstallationOverviewAccountName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewListResponse.Json.g.cs new file mode 100644 index 0000000..4e725df --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewListResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveInstallationOverviewListResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationOverviewListResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveInstallationOverviewListResponse), + jsonSerializerContext) as global::Mixedbread.GoogleDriveInstallationOverviewListResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationOverviewListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveInstallationOverviewListResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveInstallationOverviewListResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveInstallationOverviewListResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewListResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewListResponse.g.cs new file mode 100644 index 0000000..311277b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewListResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// List of connected Google Drive accounts for the data sources overview. + /// + public sealed partial class GoogleDriveInstallationOverviewListResponse + { + /// + /// Connected Google Drive accounts + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Connected Google Drive accounts + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GoogleDriveInstallationOverviewListResponse( + global::System.Collections.Generic.IList data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public GoogleDriveInstallationOverviewListResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewStoreId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewStoreId.Json.g.cs new file mode 100644 index 0000000..d3d5a8a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewStoreId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveInstallationOverviewStoreId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationOverviewStoreId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveInstallationOverviewStoreId), + jsonSerializerContext) as global::Mixedbread.GoogleDriveInstallationOverviewStoreId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationOverviewStoreId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveInstallationOverviewStoreId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveInstallationOverviewStoreId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveInstallationOverviewStoreId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewStoreId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewStoreId.g.cs new file mode 100644 index 0000000..f361c2a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewStoreId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Mixedbread ingestion store ID + /// + public sealed partial class GoogleDriveInstallationOverviewStoreId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewStoreName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewStoreName.Json.g.cs new file mode 100644 index 0000000..5b5e12a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewStoreName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveInstallationOverviewStoreName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationOverviewStoreName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveInstallationOverviewStoreName), + jsonSerializerContext) as global::Mixedbread.GoogleDriveInstallationOverviewStoreName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveInstallationOverviewStoreName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveInstallationOverviewStoreName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveInstallationOverviewStoreName), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveInstallationOverviewStoreName; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewStoreName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewStoreName.g.cs new file mode 100644 index 0000000..4a8e015 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveInstallationOverviewStoreName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Mixedbread ingestion store name + /// + public sealed partial class GoogleDriveInstallationOverviewStoreName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackCode.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackCode.Json.g.cs new file mode 100644 index 0000000..8880d67 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackCode.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveOauthCallbackCode + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveOauthCallbackCode? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveOauthCallbackCode), + jsonSerializerContext) as global::Mixedbread.GoogleDriveOauthCallbackCode; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveOauthCallbackCode? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveOauthCallbackCode? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveOauthCallbackCode), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveOauthCallbackCode; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackCode.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackCode.g.cs new file mode 100644 index 0000000..2733cb1 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackCode.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Google OAuth authorization code + /// + public sealed partial class GoogleDriveOauthCallbackCode + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackError.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackError.Json.g.cs new file mode 100644 index 0000000..ceb2523 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackError.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveOauthCallbackError + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveOauthCallbackError? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveOauthCallbackError), + jsonSerializerContext) as global::Mixedbread.GoogleDriveOauthCallbackError; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveOauthCallbackError? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveOauthCallbackError? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveOauthCallbackError), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveOauthCallbackError; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackError.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackError.g.cs new file mode 100644 index 0000000..8732fdd --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackError.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Google OAuth error + /// + public sealed partial class GoogleDriveOauthCallbackError + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackResponse.Json.g.cs new file mode 100644 index 0000000..7418ebe --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveOauthCallbackResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveOauthCallbackResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveOauthCallbackResponse), + jsonSerializerContext) as global::Mixedbread.GoogleDriveOauthCallbackResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveOauthCallbackResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveOauthCallbackResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveOauthCallbackResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveOauthCallbackResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackResponse.g.cs new file mode 100644 index 0000000..96f438d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveOauthCallbackResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class GoogleDriveOauthCallbackResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSync.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSync.Json.g.cs new file mode 100644 index 0000000..9475554 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSync.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveSync + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveSync? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveSync), + jsonSerializerContext) as global::Mixedbread.GoogleDriveSync; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveSync? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveSync? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveSync), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveSync; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSync.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSync.g.cs new file mode 100644 index 0000000..06b544e --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSync.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Result of triggering a Google Drive sync. + /// + public sealed partial class GoogleDriveSync + { + /// + /// Google Drive installation ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("installation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string InstallationId { get; set; } + + /// + /// Whether an incremental sync was queued + /// + [global::System.Text.Json.Serialization.JsonPropertyName("queued")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Queued { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Google Drive installation ID + /// + /// + /// Whether an incremental sync was queued + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GoogleDriveSync( + string installationId, + bool queued) + { + this.InstallationId = installationId ?? throw new global::System.ArgumentNullException(nameof(installationId)); + this.Queued = queued; + } + + /// + /// Initializes a new instance of the class. + /// + public GoogleDriveSync() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSyncParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSyncParams.Json.g.cs new file mode 100644 index 0000000..833dc41 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSyncParams.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveSyncParams + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveSyncParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveSyncParams), + jsonSerializerContext) as global::Mixedbread.GoogleDriveSyncParams; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveSyncParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveSyncParams? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveSyncParams), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveSyncParams; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSyncParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSyncParams.g.cs new file mode 100644 index 0000000..1b3bf7b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSyncParams.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Parameters for manually syncing a Google Drive connector. + /// + public sealed partial class GoogleDriveSyncParams + { + /// + /// Google Drive installation ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("installation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid InstallationId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Google Drive installation ID + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GoogleDriveSyncParams( + global::System.Guid installationId) + { + this.InstallationId = installationId; + } + + /// + /// Initializes a new instance of the class. + /// + public GoogleDriveSyncParams() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSyncResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSyncResponse.Json.g.cs new file mode 100644 index 0000000..88a3665 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSyncResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class GoogleDriveSyncResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveSyncResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.GoogleDriveSyncResponse), + jsonSerializerContext) as global::Mixedbread.GoogleDriveSyncResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.GoogleDriveSyncResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.GoogleDriveSyncResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.GoogleDriveSyncResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.GoogleDriveSyncResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSyncResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSyncResponse.g.cs new file mode 100644 index 0000000..535de94 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.GoogleDriveSyncResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Google Drive manual sync response. + /// + public sealed partial class GoogleDriveSyncResponse + { + /// + /// Google Drive manual sync result + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.GoogleDriveSync Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Google Drive manual sync result + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GoogleDriveSyncResponse( + global::Mixedbread.GoogleDriveSync data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public GoogleDriveSyncResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.HTTPValidationError.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.HTTPValidationError.Json.g.cs index 160c086..aab42a7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.HTTPValidationError.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.HTTPValidationError.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.HTTPValidationError; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.HTTPValidationError? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.HTTPValidationError; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.HandleSlackCommandResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.HandleSlackCommandResponse.Json.g.cs new file mode 100644 index 0000000..be9b46d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.HandleSlackCommandResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class HandleSlackCommandResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.HandleSlackCommandResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.HandleSlackCommandResponse), + jsonSerializerContext) as global::Mixedbread.HandleSlackCommandResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.HandleSlackCommandResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.HandleSlackCommandResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.HandleSlackCommandResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.HandleSlackCommandResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.HandleSlackCommandResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.HandleSlackCommandResponse.g.cs new file mode 100644 index 0000000..22f9623 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.HandleSlackCommandResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class HandleSlackCommandResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.HandleSlackEventResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.HandleSlackEventResponse.Json.g.cs new file mode 100644 index 0000000..b4e97a9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.HandleSlackEventResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class HandleSlackEventResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.HandleSlackEventResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.HandleSlackEventResponse), + jsonSerializerContext) as global::Mixedbread.HandleSlackEventResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.HandleSlackEventResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.HandleSlackEventResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.HandleSlackEventResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.HandleSlackEventResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.HandleSlackEventResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.HandleSlackEventResponse.g.cs new file mode 100644 index 0000000..9009e1c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.HandleSlackEventResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class HandleSlackEventResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadata.Json.g.cs index 5d08a52..fcf1064 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataFileExtension.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataFileExtension.Json.g.cs index 3a56d93..a2d9481 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataFileExtension.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataFileExtension.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageChunkGeneratedMetadataFileExtension? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataFileSize.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataFileSize.Json.g.cs index e3334b8..91fae89 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataFileSize.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataFileSize.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageChunkGeneratedMetadataFileSize; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageChunkGeneratedMetadataFileSize? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageChunkGeneratedMetadataFileSize; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataHeight.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataHeight.Json.g.cs index 5fe00e1..2ab7ba2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataHeight.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataHeight.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageChunkGeneratedMetadataHeight; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageChunkGeneratedMetadataHeight? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageChunkGeneratedMetadataHeight; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataWidth.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataWidth.Json.g.cs index 11dde3f..5a8d581 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataWidth.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageChunkGeneratedMetadataWidth.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageChunkGeneratedMetadataWidth; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageChunkGeneratedMetadataWidth? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageChunkGeneratedMetadataWidth; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInput.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInput.Json.g.cs index 5a4cb48..47de57d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInput.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageUrlInput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageUrlInput? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageUrlInput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInput2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInput2.Json.g.cs index ce24891..7e122e8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInput2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInput2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageUrlInput2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageUrlInput2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageUrlInput2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunk.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunk.Json.g.cs index 9c8ce82..12aeb11 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunk.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunk.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageUrlInputChunk; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageUrlInputChunk? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageUrlInputChunk; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkGeneratedMetadata.Json.g.cs index b236a35..4d805eb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageUrlInputChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs index fbfa74b..8f9484e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageUrlInputChunkGeneratedMetadataVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkImageUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkImageUrl.Json.g.cs index 975b0a3..771dc42 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkImageUrl.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkImageUrl.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageUrlInputChunkImageUrl; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageUrlInputChunkImageUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageUrlInputChunkImageUrl; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkModel.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkModel.Json.g.cs index 3424adf..88ac8dd 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkModel.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkModel.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageUrlInputChunkModel; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageUrlInputChunkModel? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageUrlInputChunkModel; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkOcrText.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkOcrText.Json.g.cs index 3d990f3..747a363 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkOcrText.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkOcrText.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageUrlInputChunkOcrText; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageUrlInputChunkOcrText? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageUrlInputChunkOcrText; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkSummary.Json.g.cs index 1f4419f..11be83c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlInputChunkSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageUrlInputChunkSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageUrlInputChunkSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageUrlInputChunkSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlOutput.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlOutput.Json.g.cs index 75e1e7a..18a6b0b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlOutput.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ImageUrlOutput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ImageUrlOutput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ImageUrlOutput? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ImageUrlOutput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.InfoResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.InfoResponse.Json.g.cs index 3538f1d..a4b5ba7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.InfoResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.InfoResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.InfoResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.InfoResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.InfoResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.InnerErrorResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.InnerErrorResponse.Json.g.cs index 389b3d2..006c85f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.InnerErrorResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.InnerErrorResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.InnerErrorResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.InnerErrorResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.InnerErrorResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallation.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallation.Json.g.cs new file mode 100644 index 0000000..cf96d15 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallation.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class IntegrationInstallation + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallation? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.IntegrationInstallation), + jsonSerializerContext) as global::Mixedbread.IntegrationInstallation; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallation? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.IntegrationInstallation? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.IntegrationInstallation), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.IntegrationInstallation; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallation.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallation.g.cs new file mode 100644 index 0000000..43d0e15 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallation.g.cs @@ -0,0 +1,164 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Service-level representation of an installed provider integration. + /// + public sealed partial class IntegrationInstallation + { + /// + /// The integration installation ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// The creation time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// The last update time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { get; set; } + + /// + /// The organization ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("organization_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string OrganizationId { get; set; } + + /// + /// The integration provider identifier + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Provider { get; set; } + + /// + /// The provider workspace/account ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("external_account_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ExternalAccountId { get; set; } + + /// + /// The provider workspace/account name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("external_account_name")] + public string? ExternalAccountName { get; set; } + + /// + /// The Mixedbread user who installed the provider + /// + [global::System.Text.Json.Serialization.JsonPropertyName("installed_by_user_id")] + public string? InstalledByUserId { get; set; } + + /// + /// The installation status + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Status { get; set; } + + /// + /// Granted provider scopes + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scopes")] + public global::System.Collections.Generic.IList? Scopes { get; set; } + + /// + /// Provider-specific metadata + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Metadata { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The integration installation ID + /// + /// + /// The creation time + /// + /// + /// The last update time + /// + /// + /// The organization ID + /// + /// + /// The integration provider identifier + /// + /// + /// The provider workspace/account ID + /// + /// + /// The installation status + /// + /// + /// Provider-specific metadata + /// + /// + /// The provider workspace/account name + /// + /// + /// The Mixedbread user who installed the provider + /// + /// + /// Granted provider scopes + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public IntegrationInstallation( + string id, + global::System.DateTime createdAt, + global::System.DateTime updatedAt, + string organizationId, + string provider, + string externalAccountId, + string status, + object metadata, + string? externalAccountName, + string? installedByUserId, + global::System.Collections.Generic.IList? scopes) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.OrganizationId = organizationId ?? throw new global::System.ArgumentNullException(nameof(organizationId)); + this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); + this.ExternalAccountId = externalAccountId ?? throw new global::System.ArgumentNullException(nameof(externalAccountId)); + this.ExternalAccountName = externalAccountName; + this.InstalledByUserId = installedByUserId; + this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); + this.Scopes = scopes; + this.Metadata = metadata ?? throw new global::System.ArgumentNullException(nameof(metadata)); + } + + /// + /// Initializes a new instance of the class. + /// + public IntegrationInstallation() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationExternalAccountName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationExternalAccountName.Json.g.cs new file mode 100644 index 0000000..ffae507 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationExternalAccountName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class IntegrationInstallationExternalAccountName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallationExternalAccountName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.IntegrationInstallationExternalAccountName), + jsonSerializerContext) as global::Mixedbread.IntegrationInstallationExternalAccountName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallationExternalAccountName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.IntegrationInstallationExternalAccountName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.IntegrationInstallationExternalAccountName), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.IntegrationInstallationExternalAccountName; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationExternalAccountName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationExternalAccountName.g.cs new file mode 100644 index 0000000..d32e89d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationExternalAccountName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// The provider workspace/account name + /// + public sealed partial class IntegrationInstallationExternalAccountName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationInstalledByUserId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationInstalledByUserId.Json.g.cs new file mode 100644 index 0000000..b7fa2b7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationInstalledByUserId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class IntegrationInstallationInstalledByUserId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallationInstalledByUserId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.IntegrationInstallationInstalledByUserId), + jsonSerializerContext) as global::Mixedbread.IntegrationInstallationInstalledByUserId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallationInstalledByUserId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.IntegrationInstallationInstalledByUserId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.IntegrationInstallationInstalledByUserId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.IntegrationInstallationInstalledByUserId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationInstalledByUserId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationInstalledByUserId.g.cs new file mode 100644 index 0000000..96b6ab4 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationInstalledByUserId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// The Mixedbread user who installed the provider + /// + public sealed partial class IntegrationInstallationInstalledByUserId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationListResponse.Json.g.cs new file mode 100644 index 0000000..1b3d4f7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationListResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class IntegrationInstallationListResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallationListResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.IntegrationInstallationListResponse), + jsonSerializerContext) as global::Mixedbread.IntegrationInstallationListResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallationListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.IntegrationInstallationListResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.IntegrationInstallationListResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.IntegrationInstallationListResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationListResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationListResponse.g.cs new file mode 100644 index 0000000..5914b37 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationListResponse.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// List of integration installations with pagination. + /// + public sealed partial class IntegrationInstallationListResponse + { + /// + /// Integration installations + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// Pagination information + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pagination")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.CursorPaginationResponse Pagination { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Integration installations + /// + /// + /// Pagination information + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public IntegrationInstallationListResponse( + global::System.Collections.Generic.IList data, + global::Mixedbread.CursorPaginationResponse pagination) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.Pagination = pagination ?? throw new global::System.ArgumentNullException(nameof(pagination)); + } + + /// + /// Initializes a new instance of the class. + /// + public IntegrationInstallationListResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationMetadata.Json.g.cs new file mode 100644 index 0000000..8cd606f --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationMetadata.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class IntegrationInstallationMetadata + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallationMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.IntegrationInstallationMetadata), + jsonSerializerContext) as global::Mixedbread.IntegrationInstallationMetadata; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallationMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.IntegrationInstallationMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.IntegrationInstallationMetadata), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.IntegrationInstallationMetadata; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationMetadata.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationMetadata.g.cs new file mode 100644 index 0000000..3b64d32 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationMetadata.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Provider-specific metadata + /// + public sealed partial class IntegrationInstallationMetadata + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationResponse.Json.g.cs new file mode 100644 index 0000000..5862db8 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class IntegrationInstallationResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.IntegrationInstallationResponse), + jsonSerializerContext) as global::Mixedbread.IntegrationInstallationResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallationResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.IntegrationInstallationResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.IntegrationInstallationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.IntegrationInstallationResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationResponse.g.cs new file mode 100644 index 0000000..110a1fe --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Integration installation response. + /// + public sealed partial class IntegrationInstallationResponse + { + /// + /// Integration installation + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.IntegrationInstallation Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Integration installation + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public IntegrationInstallationResponse( + global::Mixedbread.IntegrationInstallation data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public IntegrationInstallationResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationScopes.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationScopes.Json.g.cs new file mode 100644 index 0000000..30f0c6b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationScopes.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class IntegrationInstallationScopes + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallationScopes? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.IntegrationInstallationScopes), + jsonSerializerContext) as global::Mixedbread.IntegrationInstallationScopes; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationInstallationScopes? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.IntegrationInstallationScopes? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.IntegrationInstallationScopes), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.IntegrationInstallationScopes; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationScopes.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationScopes.g.cs new file mode 100644 index 0000000..b9c0ed6 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationInstallationScopes.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Granted provider scopes + /// + public sealed partial class IntegrationInstallationScopes + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderListResponse.Json.g.cs new file mode 100644 index 0000000..4f51bdf --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderListResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class IntegrationProviderListResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationProviderListResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.IntegrationProviderListResponse), + jsonSerializerContext) as global::Mixedbread.IntegrationProviderListResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationProviderListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.IntegrationProviderListResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.IntegrationProviderListResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.IntegrationProviderListResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderListResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderListResponse.g.cs new file mode 100644 index 0000000..1d4f816 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderListResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// List of supported integration providers. + /// + public sealed partial class IntegrationProviderListResponse + { + /// + /// Supported integration providers + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Supported integration providers + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public IntegrationProviderListResponse( + global::System.Collections.Generic.IList data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public IntegrationProviderListResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifest.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifest.Json.g.cs new file mode 100644 index 0000000..37bb476 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class IntegrationProviderManifest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationProviderManifest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.IntegrationProviderManifest), + jsonSerializerContext) as global::Mixedbread.IntegrationProviderManifest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationProviderManifest? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.IntegrationProviderManifest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.IntegrationProviderManifest), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.IntegrationProviderManifest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifest.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifest.g.cs new file mode 100644 index 0000000..20ebd16 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifest.g.cs @@ -0,0 +1,108 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Provider metadata exposed to product surfaces. + /// + public sealed partial class IntegrationProviderManifest + { + /// + /// The integration provider identifier + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestProviderJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.IntegrationProviderManifestProvider Provider { get; set; } + + /// + /// Human-readable provider name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("display_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string DisplayName { get; set; } + + /// + /// Primary authorization method + /// + [global::System.Text.Json.Serialization.JsonPropertyName("auth_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.IntegrationProviderManifestAuthTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.IntegrationProviderManifestAuthType AuthType { get; set; } + + /// + /// Supported integration capabilities + /// + [global::System.Text.Json.Serialization.JsonPropertyName("capabilities")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Capabilities { get; set; } + + /// + /// Provider scopes required for the initial install + /// + [global::System.Text.Json.Serialization.JsonPropertyName("required_scopes")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList RequiredScopes { get; set; } + + /// + /// The backend subsystem used for ingestion, if ingestion is supported + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ingestion_backing")] + public global::Mixedbread.IntegrationProviderManifestIngestionBacking2? IngestionBacking { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The integration provider identifier + /// + /// + /// Human-readable provider name + /// + /// + /// Primary authorization method + /// + /// + /// Supported integration capabilities + /// + /// + /// Provider scopes required for the initial install + /// + /// + /// The backend subsystem used for ingestion, if ingestion is supported + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public IntegrationProviderManifest( + global::Mixedbread.IntegrationProviderManifestProvider provider, + string displayName, + global::Mixedbread.IntegrationProviderManifestAuthType authType, + global::System.Collections.Generic.IList capabilities, + global::System.Collections.Generic.IList requiredScopes, + global::Mixedbread.IntegrationProviderManifestIngestionBacking2? ingestionBacking) + { + this.Provider = provider; + this.DisplayName = displayName ?? throw new global::System.ArgumentNullException(nameof(displayName)); + this.AuthType = authType; + this.Capabilities = capabilities ?? throw new global::System.ArgumentNullException(nameof(capabilities)); + this.RequiredScopes = requiredScopes ?? throw new global::System.ArgumentNullException(nameof(requiredScopes)); + this.IngestionBacking = ingestionBacking; + } + + /// + /// Initializes a new instance of the class. + /// + public IntegrationProviderManifest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestAuthType.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestAuthType.g.cs new file mode 100644 index 0000000..741bb98 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestAuthType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Primary authorization method + /// + public enum IntegrationProviderManifestAuthType + { + /// + /// + /// + ApiKey, + /// + /// + /// + BotToken, + /// + /// + /// + Oauth2, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IntegrationProviderManifestAuthTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IntegrationProviderManifestAuthType value) + { + return value switch + { + IntegrationProviderManifestAuthType.ApiKey => "api_key", + IntegrationProviderManifestAuthType.BotToken => "bot_token", + IntegrationProviderManifestAuthType.Oauth2 => "oauth2", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IntegrationProviderManifestAuthType? ToEnum(string value) + { + return value switch + { + "api_key" => IntegrationProviderManifestAuthType.ApiKey, + "bot_token" => IntegrationProviderManifestAuthType.BotToken, + "oauth2" => IntegrationProviderManifestAuthType.Oauth2, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestCapabilitie.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestCapabilitie.g.cs new file mode 100644 index 0000000..e6bba21 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestCapabilitie.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public enum IntegrationProviderManifestCapabilitie + { + /// + /// + /// + ExternalAction, + /// + /// + /// + IngestToStore, + /// + /// + /// + Notify, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IntegrationProviderManifestCapabilitieExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IntegrationProviderManifestCapabilitie value) + { + return value switch + { + IntegrationProviderManifestCapabilitie.ExternalAction => "external_action", + IntegrationProviderManifestCapabilitie.IngestToStore => "ingest_to_store", + IntegrationProviderManifestCapabilitie.Notify => "notify", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IntegrationProviderManifestCapabilitie? ToEnum(string value) + { + return value switch + { + "external_action" => IntegrationProviderManifestCapabilitie.ExternalAction, + "ingest_to_store" => IntegrationProviderManifestCapabilitie.IngestToStore, + "notify" => IntegrationProviderManifestCapabilitie.Notify, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestIngestionBacking.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestIngestionBacking.Json.g.cs new file mode 100644 index 0000000..7c57059 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestIngestionBacking.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class IntegrationProviderManifestIngestionBacking + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationProviderManifestIngestionBacking? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.IntegrationProviderManifestIngestionBacking), + jsonSerializerContext) as global::Mixedbread.IntegrationProviderManifestIngestionBacking; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.IntegrationProviderManifestIngestionBacking? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.IntegrationProviderManifestIngestionBacking? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.IntegrationProviderManifestIngestionBacking), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.IntegrationProviderManifestIngestionBacking; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestIngestionBacking.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestIngestionBacking.g.cs new file mode 100644 index 0000000..93715e6 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestIngestionBacking.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// The backend subsystem used for ingestion, if ingestion is supported + /// + public sealed partial class IntegrationProviderManifestIngestionBacking + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestIngestionBacking2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestIngestionBacking2.g.cs new file mode 100644 index 0000000..f2464fb --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestIngestionBacking2.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public enum IntegrationProviderManifestIngestionBacking2 + { + /// + /// + /// + DataSourceConnector, + /// + /// + /// + IntegrationJob, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IntegrationProviderManifestIngestionBacking2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IntegrationProviderManifestIngestionBacking2 value) + { + return value switch + { + IntegrationProviderManifestIngestionBacking2.DataSourceConnector => "data_source_connector", + IntegrationProviderManifestIngestionBacking2.IntegrationJob => "integration_job", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IntegrationProviderManifestIngestionBacking2? ToEnum(string value) + { + return value switch + { + "data_source_connector" => IntegrationProviderManifestIngestionBacking2.DataSourceConnector, + "integration_job" => IntegrationProviderManifestIngestionBacking2.IntegrationJob, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestProvider.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestProvider.g.cs new file mode 100644 index 0000000..b6db748 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.IntegrationProviderManifestProvider.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// The integration provider identifier + /// + public enum IntegrationProviderManifestProvider + { + /// + /// + /// + GoogleDrive, + /// + /// + /// + Linear, + /// + /// + /// + Notion, + /// + /// + /// + Slack, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IntegrationProviderManifestProviderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IntegrationProviderManifestProvider value) + { + return value switch + { + IntegrationProviderManifestProvider.GoogleDrive => "google_drive", + IntegrationProviderManifestProvider.Linear => "linear", + IntegrationProviderManifestProvider.Notion => "notion", + IntegrationProviderManifestProvider.Slack => "slack", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IntegrationProviderManifestProvider? ToEnum(string value) + { + return value switch + { + "google_drive" => IntegrationProviderManifestProvider.GoogleDrive, + "linear" => IntegrationProviderManifestProvider.Linear, + "notion" => IntegrationProviderManifestProvider.Notion, + "slack" => IntegrationProviderManifestProvider.Slack, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.Json.g.cs index 55a69fc..d21709d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ItemsItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ItemsItem?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ItemsItem? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ItemsItem?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaCreateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaCreateParams.Json.g.cs index 7ea1320..2c6f40a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaCreateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaCreateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.JsonSchemaCreateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.JsonSchemaCreateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.JsonSchemaCreateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaEnhanceParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaEnhanceParams.Json.g.cs index e9d5dfd..46f2a94 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaEnhanceParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaEnhanceParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.JsonSchemaEnhanceParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.JsonSchemaEnhanceParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.JsonSchemaEnhanceParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaEnhanceParamsJsonSchema.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaEnhanceParamsJsonSchema.Json.g.cs index d660766..c3b7785 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaEnhanceParamsJsonSchema.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaEnhanceParamsJsonSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.JsonSchemaEnhanceParamsJsonSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.JsonSchemaEnhanceParamsJsonSchema? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.JsonSchemaEnhanceParamsJsonSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaValidateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaValidateParams.Json.g.cs index 7e5f3bb..0c4dcd9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaValidateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaValidateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.JsonSchemaValidateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.JsonSchemaValidateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.JsonSchemaValidateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaValidateParamsJsonSchema.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaValidateParamsJsonSchema.Json.g.cs index 4fcd3cc..64519d5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaValidateParamsJsonSchema.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.JsonSchemaValidateParamsJsonSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.JsonSchemaValidateParamsJsonSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.JsonSchemaValidateParamsJsonSchema? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.JsonSchemaValidateParamsJsonSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParams.Json.g.cs index 334388a..587dd77 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.LinearDataSourceCreateOrUpdateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.LinearDataSourceCreateOrUpdateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.LinearDataSourceCreateOrUpdateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsAuthParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsAuthParams.Json.g.cs index 19ec8d9..966f36b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsAuthParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsAuthParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator.Json.g.cs index b0e6098..ff9da2e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsMetadata.Json.g.cs index 97cb1c1..b82f0e0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.LinearDataSourceCreateOrUpdateParamsMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.LinearDataSourceCreateOrUpdateParamsMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.LinearDataSourceCreateOrUpdateParamsMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsMetadata2.Json.g.cs index 08d9288..ea08dd6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.LinearDataSourceCreateOrUpdateParamsMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.LinearDataSourceCreateOrUpdateParamsMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.LinearDataSourceCreateOrUpdateParamsMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.LinearDataSourceCreateOrUpdateParamsMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListBucketsAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListBucketsAfter.Json.g.cs new file mode 100644 index 0000000..ca8b4fa --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListBucketsAfter.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class ListBucketsAfter + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.ListBucketsAfter? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.ListBucketsAfter), + jsonSerializerContext) as global::Mixedbread.ListBucketsAfter; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListBucketsAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.ListBucketsAfter? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.ListBucketsAfter), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListBucketsAfter; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListBucketsAfter.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListBucketsAfter.g.cs new file mode 100644 index 0000000..9c7c44d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListBucketsAfter.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Cursor for forward pagination - get items after this position. Use last_cursor from previous response. + /// + public sealed partial class ListBucketsAfter + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListBucketsBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListBucketsBefore.Json.g.cs new file mode 100644 index 0000000..08f1edf --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListBucketsBefore.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class ListBucketsBefore + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.ListBucketsBefore? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.ListBucketsBefore), + jsonSerializerContext) as global::Mixedbread.ListBucketsBefore; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListBucketsBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.ListBucketsBefore? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.ListBucketsBefore), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListBucketsBefore; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListBucketsBefore.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListBucketsBefore.g.cs new file mode 100644 index 0000000..3f07a7c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListBucketsBefore.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Cursor for backward pagination - get items before this position. Use first_cursor from previous response. + /// + public sealed partial class ListBucketsBefore + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListConnectorsAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListConnectorsAfter.Json.g.cs index 3e9380a..b956b56 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListConnectorsAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListConnectorsAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListConnectorsAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListConnectorsAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListConnectorsAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListConnectorsBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListConnectorsBefore.Json.g.cs index 937e80f..9dfeec6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListConnectorsBefore.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListConnectorsBefore.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListConnectorsBefore; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListConnectorsBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListConnectorsBefore; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListDataSourcesAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListDataSourcesAfter.Json.g.cs index d5c7301..99ede8d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListDataSourcesAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListDataSourcesAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListDataSourcesAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListDataSourcesAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListDataSourcesAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListDataSourcesBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListDataSourcesBefore.Json.g.cs index ca29db9..83710ce 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListDataSourcesBefore.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListDataSourcesBefore.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListDataSourcesBefore; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListDataSourcesBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListDataSourcesBefore; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListFilesAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListFilesAfter.Json.g.cs index 0c24b21..4691ce0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListFilesAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListFilesAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListFilesAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListFilesAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListFilesAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListFilesBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListFilesBefore.Json.g.cs index e5f4d9d..7b8a0b3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListFilesBefore.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListFilesBefore.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListFilesBefore; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListFilesBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListFilesBefore; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListFilesQ.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListFilesQ.Json.g.cs index d4cfe05..606521f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListFilesQ.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListFilesQ.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListFilesQ; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListFilesQ? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListFilesQ; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListIntegrationInstallationsAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListIntegrationInstallationsAfter.Json.g.cs new file mode 100644 index 0000000..f3d3120 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListIntegrationInstallationsAfter.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class ListIntegrationInstallationsAfter + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.ListIntegrationInstallationsAfter? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.ListIntegrationInstallationsAfter), + jsonSerializerContext) as global::Mixedbread.ListIntegrationInstallationsAfter; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListIntegrationInstallationsAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.ListIntegrationInstallationsAfter? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.ListIntegrationInstallationsAfter), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListIntegrationInstallationsAfter; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListIntegrationInstallationsAfter.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListIntegrationInstallationsAfter.g.cs new file mode 100644 index 0000000..9c520f8 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListIntegrationInstallationsAfter.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Cursor for forward pagination - get items after this position. Use last_cursor from previous response. + /// + public sealed partial class ListIntegrationInstallationsAfter + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListIntegrationInstallationsBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListIntegrationInstallationsBefore.Json.g.cs new file mode 100644 index 0000000..e9b5343 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListIntegrationInstallationsBefore.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class ListIntegrationInstallationsBefore + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.ListIntegrationInstallationsBefore? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.ListIntegrationInstallationsBefore), + jsonSerializerContext) as global::Mixedbread.ListIntegrationInstallationsBefore; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListIntegrationInstallationsBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.ListIntegrationInstallationsBefore? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.ListIntegrationInstallationsBefore), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListIntegrationInstallationsBefore; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListIntegrationInstallationsBefore.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListIntegrationInstallationsBefore.g.cs new file mode 100644 index 0000000..54117a5 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListIntegrationInstallationsBefore.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Cursor for backward pagination - get items before this position. Use first_cursor from previous response. + /// + public sealed partial class ListIntegrationInstallationsBefore + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsAfter.Json.g.cs index ed91906..f2c076f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListParsingJobsAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListParsingJobsAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListParsingJobsAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsBefore.Json.g.cs index 0dbf3f9..8a9226a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsBefore.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsBefore.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListParsingJobsBefore; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListParsingJobsBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListParsingJobsBefore; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsQ.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsQ.Json.g.cs index ac33e75..91e5bd6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsQ.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsQ.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListParsingJobsQ; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListParsingJobsQ? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListParsingJobsQ; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsStatuses.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsStatuses.Json.g.cs index cd4eccb..cfbaeaa 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsStatuses.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListParsingJobsStatuses.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListParsingJobsStatuses; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListParsingJobsStatuses? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListParsingJobsStatuses; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsAfter.Json.g.cs index a5c938a..b7a1c19 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListStoreEventsAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListStoreEventsAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListStoreEventsAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsBefore.Json.g.cs index 654edb3..6d3807c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsBefore.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsBefore.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListStoreEventsBefore; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListStoreEventsBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListStoreEventsBefore; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsEventType.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsEventType.g.cs index a0c94df..6125853 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsEventType.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsEventType.g.cs @@ -15,6 +15,10 @@ public enum ListStoreEventsEventType /// /// /// + Grep, + /// + /// + /// Ingestion, /// /// @@ -35,6 +39,7 @@ public static string ToValueString(this ListStoreEventsEventType value) return value switch { ListStoreEventsEventType.AgenticSearch => "agentic_search", + ListStoreEventsEventType.Grep => "grep", ListStoreEventsEventType.Ingestion => "ingestion", ListStoreEventsEventType.Search => "search", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -48,6 +53,7 @@ public static string ToValueString(this ListStoreEventsEventType value) return value switch { "agentic_search" => ListStoreEventsEventType.AgenticSearch, + "grep" => ListStoreEventsEventType.Grep, "ingestion" => ListStoreEventsEventType.Ingestion, "search" => ListStoreEventsEventType.Search, _ => null, diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsFilterAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsFilterAfter.Json.g.cs index 3576016..0ee2e46 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsFilterAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsFilterAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListStoreEventsFilterAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListStoreEventsFilterAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListStoreEventsFilterAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsFilterBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsFilterBefore.Json.g.cs index 036974e..3b7a11e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsFilterBefore.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreEventsFilterBefore.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListStoreEventsFilterBefore; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListStoreEventsFilterBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListStoreEventsFilterBefore; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreFilesAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreFilesAfter.Json.g.cs index 95dbd7b..70afafe 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreFilesAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreFilesAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListStoreFilesAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListStoreFilesAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListStoreFilesAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreFilesBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreFilesBefore.Json.g.cs index dba2dc3..1634690 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreFilesBefore.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreFilesBefore.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListStoreFilesBefore; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListStoreFilesBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListStoreFilesBefore; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreFilesStatuses.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreFilesStatuses.Json.g.cs index ffacfa7..0e70066 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreFilesStatuses.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoreFilesStatuses.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListStoreFilesStatuses; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListStoreFilesStatuses? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListStoreFilesStatuses; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoresAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoresAfter.Json.g.cs index c1a7d39..1d0e7f2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoresAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoresAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListStoresAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListStoresAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListStoresAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoresBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoresBefore.Json.g.cs index ceea13e..e62c936 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoresBefore.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoresBefore.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListStoresBefore; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListStoresBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListStoresBefore; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoresQ.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoresQ.Json.g.cs index 1f4df90..ca43d9a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoresQ.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListStoresQ.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListStoresQ; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListStoresQ? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListStoresQ; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoreFilesAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoreFilesAfter.Json.g.cs index 1044201..075b1d4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoreFilesAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoreFilesAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListVectorStoreFilesAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListVectorStoreFilesAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListVectorStoreFilesAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoreFilesBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoreFilesBefore.Json.g.cs index 1fdb7af..77716c8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoreFilesBefore.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoreFilesBefore.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListVectorStoreFilesBefore; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListVectorStoreFilesBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListVectorStoreFilesBefore; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoreFilesStatuses.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoreFilesStatuses.Json.g.cs index c04d356..91c188f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoreFilesStatuses.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoreFilesStatuses.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListVectorStoreFilesStatuses; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListVectorStoreFilesStatuses? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListVectorStoreFilesStatuses; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoresAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoresAfter.Json.g.cs index a54dbae..7642230 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoresAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoresAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListVectorStoresAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListVectorStoresAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListVectorStoresAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoresBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoresBefore.Json.g.cs index 2854c04..8c1c7d2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoresBefore.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoresBefore.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListVectorStoresBefore; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListVectorStoresBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListVectorStoresBefore; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoresQ.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoresQ.Json.g.cs index a57310a..de8dae7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoresQ.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ListVectorStoresQ.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ListVectorStoresQ; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ListVectorStoresQ? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ListVectorStoresQ; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadata.Json.g.cs index 5e11988..d88b319 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MarkdownChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MarkdownChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MarkdownChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataFileExtension.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataFileExtension.Json.g.cs index d70f801..92a1d84 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataFileExtension.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataFileExtension.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MarkdownChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MarkdownChunkGeneratedMetadataFileExtension? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MarkdownChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataFileSize.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataFileSize.Json.g.cs index 2496dfa..c51329e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataFileSize.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataFileSize.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MarkdownChunkGeneratedMetadataFileSize; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MarkdownChunkGeneratedMetadataFileSize? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MarkdownChunkGeneratedMetadataFileSize; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataFrontmatter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataFrontmatter.Json.g.cs index de96e46..8b74965 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataFrontmatter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataFrontmatter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MarkdownChunkGeneratedMetadataFrontmatter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MarkdownChunkGeneratedMetadataFrontmatter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MarkdownChunkGeneratedMetadataFrontmatter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataLanguage.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataLanguage.Json.g.cs index d103c4d..0baf312 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataLanguage.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataLanguage.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MarkdownChunkGeneratedMetadataLanguage; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MarkdownChunkGeneratedMetadataLanguage? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MarkdownChunkGeneratedMetadataLanguage; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataWordCount.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataWordCount.Json.g.cs index f642cc1..601efae 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataWordCount.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownChunkGeneratedMetadataWordCount.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MarkdownChunkGeneratedMetadataWordCount; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MarkdownChunkGeneratedMetadataWordCount? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MarkdownChunkGeneratedMetadataWordCount; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownHeading.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownHeading.Json.g.cs index fa5768f..2d8f1ad 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownHeading.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MarkdownHeading.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MarkdownHeading; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MarkdownHeading? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MarkdownHeading; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPagination.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPagination.Json.g.cs index 478b073..84561b7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPagination.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPagination.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MetadataCursorPagination; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MetadataCursorPagination? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MetadataCursorPagination; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPaginationAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPaginationAfter.Json.g.cs index f3c016b..1b312e9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPaginationAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPaginationAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MetadataCursorPaginationAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MetadataCursorPaginationAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MetadataCursorPaginationAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPaginationBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPaginationBefore.Json.g.cs index 6effe77..b793279 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPaginationBefore.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPaginationBefore.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MetadataCursorPaginationBefore; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MetadataCursorPaginationBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MetadataCursorPaginationBefore; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPaginationStatuses.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPaginationStatuses.Json.g.cs index 51d6c4d..5f639bc 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPaginationStatuses.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataCursorPaginationStatuses.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MetadataCursorPaginationStatuses; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MetadataCursorPaginationStatuses? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MetadataCursorPaginationStatuses; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacets.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacets.Json.g.cs index 9c49672..4274b08 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacets.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacets.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MetadataFacets; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MetadataFacets? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MetadataFacets; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsFacets.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsFacets.Json.g.cs index 0a21502..260de35 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsFacets.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsFacets.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MetadataFacetsFacets; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MetadataFacetsFacets? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MetadataFacetsFacets; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsFacets2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsFacets2.Json.g.cs index 4292db5..47c038f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsFacets2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsFacets2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MetadataFacetsFacets2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MetadataFacetsFacets2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MetadataFacetsFacets2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParams.Json.g.cs index 0f8ca17..6727875 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MetadataFacetsParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MetadataFacetsParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MetadataFacetsParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParamsFacets.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParamsFacets.Json.g.cs index 8d55c4e..c5ec294 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParamsFacets.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParamsFacets.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MetadataFacetsParamsFacets; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MetadataFacetsParamsFacets? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MetadataFacetsParamsFacets; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParamsQuery.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParamsQuery.Json.g.cs index be54559..9e50c2c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParamsQuery.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MetadataFacetsParamsQuery.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MetadataFacetsParamsQuery; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MetadataFacetsParamsQuery? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MetadataFacetsParamsQuery; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiEncodingEmbedding.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiEncodingEmbedding.Json.g.cs index fb82a64..5457f35 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiEncodingEmbedding.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiEncodingEmbedding.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MultiEncodingEmbedding; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MultiEncodingEmbedding? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MultiEncodingEmbedding; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQuery.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQuery.Json.g.cs index 28c0a54..77d6aeb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQuery.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQuery.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MultiModalQuery?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MultiModalQuery? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MultiModalQuery?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQueryVariant2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQueryVariant2.Json.g.cs index 0fb0150..c19461a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQueryVariant2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQueryVariant2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MultiModalQueryVariant2?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MultiModalQueryVariant2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MultiModalQueryVariant2?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQueryVariant2Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQueryVariant2Discriminator.Json.g.cs index 09e40bf..1d477d8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQueryVariant2Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQueryVariant2Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MultiModalQueryVariant2Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MultiModalQueryVariant2Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MultiModalQueryVariant2Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadDetailResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadDetailResponse.Json.g.cs index d4cdb29..fd92689 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadDetailResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadDetailResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MultipartUploadDetailResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MultipartUploadDetailResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MultipartUploadDetailResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadListResponse.Json.g.cs index bfc2c53..1af1816 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadListResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MultipartUploadListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MultipartUploadListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MultipartUploadListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadObject.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadObject.Json.g.cs index fbd911d..f0431bd 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadObject.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadObject.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MultipartUploadObject; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MultipartUploadObject? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MultipartUploadObject; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadPart.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadPart.Json.g.cs index f3b1bab..6a0dae4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadPart.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadPart.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MultipartUploadPart; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MultipartUploadPart? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MultipartUploadPart; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadPartUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadPartUrl.Json.g.cs index 23aa47c..d78b41c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadPartUrl.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipartUploadPartUrl.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MultipartUploadPartUrl; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MultipartUploadPartUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MultipartUploadPartUrl; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipleEncodingsEmbeddingItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipleEncodingsEmbeddingItem.Json.g.cs index ab8db22..130a091 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipleEncodingsEmbeddingItem.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultipleEncodingsEmbeddingItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MultipleEncodingsEmbeddingItem; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MultipleEncodingsEmbeddingItem? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MultipleEncodingsEmbeddingItem; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk.Json.g.cs index 01f97b2..07408d9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkAudioUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkAudioUrl.Json.g.cs index 26dfff3..07fad4a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkAudioUrl.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkAudioUrl.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkAudioUrl; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkAudioUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkAudioUrl; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadata.Json.g.cs index 0704667..5112b7b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs index 726974d..1cc38b7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata.Json.g.cs index 8b0553f..7d2f170 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata2.Json.g.cs index d219873..8821d29 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkModel.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkModel.Json.g.cs index 125c6a9..32978ea 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkModel.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkModel.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkModel; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkModel? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkModel; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary.Json.g.cs index 12288f9..bda2c81 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkTranscription.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkTranscription.Json.g.cs index 14a5968..8c8fcd0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkTranscription.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkTranscription.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkTranscription; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkTranscription? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunkTranscription; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk.Json.g.cs index 57738ea..25df87c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadata.Json.g.cs index 7f2171a..fde36aa 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs index f1da3ab..78db09a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkImageUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkImageUrl.Json.g.cs index 79b1d42..92c8223 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkImageUrl.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkImageUrl.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkImageUrl; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkImageUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkImageUrl; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata.Json.g.cs index 32d5df0..9173770 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata2.Json.g.cs index 35a0d29..cd65d78 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkModel.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkModel.Json.g.cs index 14e7a7c..ad23839 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkModel.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkModel.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkModel; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkModel? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkModel; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkOcrText.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkOcrText.Json.g.cs index b728273..f4baaf8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkOcrText.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkOcrText.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkOcrText; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkOcrText? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkOcrText; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkSummary.Json.g.cs index 29c7d57..ab58f45 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunkSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.Json.g.cs index bb7a594..1f32500 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkContext.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkContext.Json.g.cs index 1b622d2..c2da674 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkContext.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkContext.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkContext; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkContext? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkContext; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadata.Json.g.cs index 19c9a9d..b659241 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs index 07b5fd1..1cf83f5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata.Json.g.cs index 1672694..de3b5b3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata2.Json.g.cs index 58affb0..2a4f488 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkModel.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkModel.Json.g.cs index 40c741c..d7d1a93 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkModel.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkModel.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkModel; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkModel? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkModel; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkSummary.Json.g.cs index 9e9b262..55c728f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkText.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkText.Json.g.cs index 4e0ea37..b02f66b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkText.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkText.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkText; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkText? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunkText; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk.Json.g.cs index fed447d..7f575e3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadata.Json.g.cs index 4c7831d..97add64 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs index d685fc4..25e2099 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata.Json.g.cs index b4eb766..ca97583 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata2.Json.g.cs index c713589..ad2b111 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkModel.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkModel.Json.g.cs index 92e52c6..a902f27 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkModel.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkModel.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkModel; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkModel? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkModel; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkSummary.Json.g.cs index 8f49fd8..e33c1a1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkTranscription.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkTranscription.Json.g.cs index 8a77248..17491b5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkTranscription.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkTranscription.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkTranscription; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkTranscription? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkTranscription; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkVideoUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkVideoUrl.Json.g.cs index 9430fc8..358490c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkVideoUrl.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkVideoUrl.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkVideoUrl; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkVideoUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunkVideoUrl; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParams.Json.g.cs index 48aaa75..991e5c7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminator.Json.g.cs index 3a125f9..d7f75c1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleCreateParamsRuleDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleDeleted.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleDeleted.Json.g.cs index 8f4391e..0bcf90f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleDeleted.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleDeleted.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleDeleted; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleDeleted? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleDeleted; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponse.Json.g.cs index 8dc9a31..4e8a7f2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminator.Json.g.cs index 55d9a14..0656302 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleResponseRuleDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParams.Json.g.cs index 93fe90f..f0a98ed 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminator.Json.g.cs index 08fd1ba..9cda9e5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleteParamsRuleDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleted.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleted.Json.g.cs index aefafff..baa67bb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleted.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleted.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleted; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleted? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeleted; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator.Json.g.cs index 987fb2f..3072f7c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParams.Json.g.cs index 7f9482a..4586def 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsQuery.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsQuery.Json.g.cs index 41b535f..e650aa4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsQuery.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsQuery.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsQuery; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsQuery? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsQuery; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRules.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRules.Json.g.cs index a5d2569..9a1f07c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRules.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRules.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRules; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRules? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRules; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator.Json.g.cs index 21c2227..dab344f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParams.Json.g.cs index 4ddde7b..5de88e5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminator.Json.g.cs index dcf2b22..ff550fc 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleCreateParamsRuleDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleDeleted.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleDeleted.Json.g.cs index 5195c04..d7df00a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleDeleted.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleDeleted.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleDeleted; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleDeleted? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleDeleted; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponse.Json.g.cs index aebb4cd..9d2e35d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminator.Json.g.cs index a8ea69d..f92af5c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleResponseRuleDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParams.Json.g.cs index 42b3900..8dce92d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminator.Json.g.cs index 2230644..af51224 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleteParamsRuleDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleted.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleted.Json.g.cs index 2e6673a..0dcc2e3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleted.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleted.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleted; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleted? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeleted; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator.Json.g.cs index 0e10b40..0f661e2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParams.Json.g.cs index 7810ea3..c694ca7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsQuery.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsQuery.Json.g.cs index 337b1e5..41e3aff 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsQuery.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsQuery.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsQuery; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsQuery? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsQuery; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRules.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRules.Json.g.cs index ad5a4b3..ce07b5c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRules.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRules.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRules; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRules? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRules; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator.Json.g.cs index 401a7a5..da1235b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleUpdateParamsRulesVariant1ItemDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk.Json.g.cs index 1973446..503c4db 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkAudioUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkAudioUrl.Json.g.cs index c97ee2d..a4133bc 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkAudioUrl.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkAudioUrl.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkAudioUrl; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkAudioUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkAudioUrl; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkExternalId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkExternalId.Json.g.cs index 2269aec..8b9b7c2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkExternalId.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkExternalId.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkExternalId; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkExternalId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkExternalId; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadata.Json.g.cs index 0d7de08..1d97e77 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs index 8121a77..73e9ff6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata.Json.g.cs index c77377b..eb94f4e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata2.Json.g.cs index b817ae4..dc3babf 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkModel.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkModel.Json.g.cs index 42ca800..2ff5c10 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkModel.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkModel.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkModel; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkModel? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkModel; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary.Json.g.cs index 1119b59..63b6b63 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkTranscription.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkTranscription.Json.g.cs index a771b12..4ecbac5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkTranscription.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkTranscription.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkTranscription; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkTranscription? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunkTranscription; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk.Json.g.cs index 0213adc..c13400d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkExternalId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkExternalId.Json.g.cs index 702723c..54b7e06 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkExternalId.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkExternalId.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkExternalId; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkExternalId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkExternalId; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadata.Json.g.cs index 45de8d0..3937363 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs index db6a229..76ca3fc 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkImageUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkImageUrl.Json.g.cs index 88fe388..761a191 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkImageUrl.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkImageUrl.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkImageUrl; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkImageUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkImageUrl; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata.Json.g.cs index ac285c3..ea8d00c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata2.Json.g.cs index 2d110da..35df44c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkModel.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkModel.Json.g.cs index 02d42a7..c636d13 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkModel.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkModel.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkModel; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkModel? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkModel; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkOcrText.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkOcrText.Json.g.cs index 877476b..3ba7608 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkOcrText.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkOcrText.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkOcrText; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkOcrText? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkOcrText; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkSummary.Json.g.cs index bcd9a02..e4f6148 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunkSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk.Json.g.cs index 40de81a..8fc6169 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkContext.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkContext.Json.g.cs index 21e28f6..b61563a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkContext.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkContext.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkContext; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkContext? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkContext; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkExternalId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkExternalId.Json.g.cs index 740153c..23b68b8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkExternalId.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkExternalId.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkExternalId; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkExternalId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkExternalId; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadata.Json.g.cs index a4b29c4..fd753c5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs index e7ca52c..981a6c3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata.Json.g.cs index 1f282e6..2150ef5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata2.Json.g.cs index 5e9996b..34cbe1d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkModel.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkModel.Json.g.cs index 8d8e484..14a12a1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkModel.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkModel.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkModel; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkModel? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkModel; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkSummary.Json.g.cs index 27aac74..182aaa3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkText.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkText.Json.g.cs index 6265150..f00e970 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkText.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkText.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkText; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkText? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunkText; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk.Json.g.cs index 7d50ffb..85c72b6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkExternalId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkExternalId.Json.g.cs index dee1d78..70587d4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkExternalId.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkExternalId.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkExternalId; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkExternalId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkExternalId; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadata.Json.g.cs index 326fc17..09cd631 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs index 371ed26..c6fea97 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata.Json.g.cs index 3a54afa..4b7a3bc 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata2.Json.g.cs index efa3b59..dd5ea47 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkModel.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkModel.Json.g.cs index 2606878..7878957 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkModel.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkModel.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkModel; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkModel? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkModel; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkSummary.Json.g.cs index 9817727..df1c01e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkTranscription.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkTranscription.Json.g.cs index eb708d6..5b1da74 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkTranscription.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkTranscription.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkTranscription; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkTranscription? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkTranscription; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkVideoUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkVideoUrl.Json.g.cs index 7668b22..82a2d0f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkVideoUrl.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkVideoUrl.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkVideoUrl; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkVideoUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunkVideoUrl; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParams.Json.g.cs index 2286468..b95abe2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.NotionDataSourceCreateOrUpdateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.NotionDataSourceCreateOrUpdateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.NotionDataSourceCreateOrUpdateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsAuthParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsAuthParams.Json.g.cs index 7bbf97c..a0623e4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsAuthParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsAuthParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator.Json.g.cs index c972bc6..608713b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsMetadata.Json.g.cs index 5646421..d383ec7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.NotionDataSourceCreateOrUpdateParamsMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.NotionDataSourceCreateOrUpdateParamsMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.NotionDataSourceCreateOrUpdateParamsMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsMetadata2.Json.g.cs index 6c050dd..05fc4d1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.NotionDataSourceCreateOrUpdateParamsMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.NotionDataSourceCreateOrUpdateParamsMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.NotionDataSourceCreateOrUpdateParamsMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.NotionDataSourceCreateOrUpdateParamsMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.OAuth2CreateOrUpdateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.OAuth2CreateOrUpdateParams.Json.g.cs index 805d6b3..de24c20 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.OAuth2CreateOrUpdateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.OAuth2CreateOrUpdateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.OAuth2CreateOrUpdateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.OAuth2CreateOrUpdateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.OAuth2CreateOrUpdateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Oauth2CallbackError.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Oauth2CallbackError.Json.g.cs index 9d5121e..d5d3f24 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Oauth2CallbackError.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Oauth2CallbackError.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.Oauth2CallbackError; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.Oauth2CallbackError? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.Oauth2CallbackError; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Oauth2CallbackErrorDescription.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Oauth2CallbackErrorDescription.Json.g.cs index b2d381d..43c6c9b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Oauth2CallbackErrorDescription.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Oauth2CallbackErrorDescription.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.Oauth2CallbackErrorDescription; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.Oauth2CallbackErrorDescription? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.Oauth2CallbackErrorDescription; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Oauth2CallbackResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Oauth2CallbackResponse.Json.g.cs index c3bf3ac..c31675f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Oauth2CallbackResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Oauth2CallbackResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.Oauth2CallbackResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.Oauth2CallbackResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.Oauth2CallbackResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadata.Json.g.cs index 03473f3..7b28d9c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.PDFChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.PDFChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.PDFChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadataFileExtension.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadataFileExtension.Json.g.cs index 11ec7e9..878cb7e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadataFileExtension.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadataFileExtension.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.PDFChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.PDFChunkGeneratedMetadataFileExtension? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.PDFChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadataTotalPages.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadataTotalPages.Json.g.cs index e753867..4d7474a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadataTotalPages.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadataTotalPages.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.PDFChunkGeneratedMetadataTotalPages; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.PDFChunkGeneratedMetadataTotalPages? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.PDFChunkGeneratedMetadataTotalPages; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadataTotalSize.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadataTotalSize.Json.g.cs index 796003b..29635ad 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadataTotalSize.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.PDFChunkGeneratedMetadataTotalSize.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.PDFChunkGeneratedMetadataTotalSize; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.PDFChunkGeneratedMetadataTotalSize? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.PDFChunkGeneratedMetadataTotalSize; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.PaginationWithTotal.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.PaginationWithTotal.Json.g.cs index 12c3ee6..bc7c8bf 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.PaginationWithTotal.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.PaginationWithTotal.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.PaginationWithTotal; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.PaginationWithTotal? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.PaginationWithTotal; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJob.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJob.Json.g.cs index f8849df..6a5e217 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJob.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJob.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJob; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJob? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJob; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobCreateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobCreateParams.Json.g.cs index 524d563..949a8da 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobCreateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobCreateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobCreateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobCreateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobCreateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobCreateParamsElementTypes.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobCreateParamsElementTypes.Json.g.cs index 194e484..e95ab77 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobCreateParamsElementTypes.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobCreateParamsElementTypes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobCreateParamsElementTypes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobCreateParamsElementTypes? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobCreateParamsElementTypes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobDeleted.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobDeleted.Json.g.cs index 9dccd7c..76599cb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobDeleted.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobDeleted.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobDeleted; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobDeleted? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobDeleted; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobError.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobError.Json.g.cs index 1b72e5c..d4bdb7d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobError.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobError.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobError; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobError? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobError; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobError2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobError2.Json.g.cs index 528bac3..cba67fa 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobError2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobError2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobError2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobError2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobError2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobFilename.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobFilename.Json.g.cs index b362db3..81aaeb8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobFilename.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobFilename.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobFilename; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobFilename? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobFilename; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobFinishedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobFinishedAt.Json.g.cs index bbc4a42..ad91961 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobFinishedAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobFinishedAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobFinishedAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobFinishedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobFinishedAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItem.Json.g.cs index 9b645c3..00bd89c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItem.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobListItem; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobListItem? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobListItem; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemError.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemError.Json.g.cs index a5ff5c6..a66e5ba 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemError.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemError.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobListItemError; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobListItemError? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobListItemError; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemError2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemError2.Json.g.cs index 5723edb..2490a09 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemError2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemError2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobListItemError2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobListItemError2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobListItemError2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemFilename.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemFilename.Json.g.cs index d462db5..ef74bf1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemFilename.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemFilename.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobListItemFilename; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobListItemFilename? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobListItemFilename; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemFinishedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemFinishedAt.Json.g.cs index ef93259..ebf8b5e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemFinishedAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemFinishedAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobListItemFinishedAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobListItemFinishedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobListItemFinishedAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemStartedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemStartedAt.Json.g.cs index 5c7d2d4..5e280be 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemStartedAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemStartedAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobListItemStartedAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobListItemStartedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobListItemStartedAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemUpdatedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemUpdatedAt.Json.g.cs index 695efd3..2034030 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemUpdatedAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListItemUpdatedAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobListItemUpdatedAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobListItemUpdatedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobListItemUpdatedAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListResponse.Json.g.cs index a646a91..08c10eb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobResult.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobResult.Json.g.cs index 4729d70..9b10d23 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobResult.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobResult.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobResult; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobResult? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobResult; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobStartedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobStartedAt.Json.g.cs index 98d4e73..f7bec0a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobStartedAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobStartedAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobStartedAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobStartedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobStartedAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobUpdatedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobUpdatedAt.Json.g.cs index f088a82..832aa8b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobUpdatedAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ParsingJobUpdatedAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ParsingJobUpdatedAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ParsingJobUpdatedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ParsingJobUpdatedAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Period.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Period.Json.g.cs index a13cb94..d0dec41 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Period.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Period.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.Period; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.Period? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.Period; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.PhaseCostInfo.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.PhaseCostInfo.Json.g.cs index 710fc3e..fd2fda5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.PhaseCostInfo.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.PhaseCostInfo.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.PhaseCostInfo; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.PhaseCostInfo? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.PhaseCostInfo; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ProductCostInfo.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ProductCostInfo.Json.g.cs index 3a79fbf..9f7d69a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ProductCostInfo.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ProductCostInfo.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ProductCostInfo; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ProductCostInfo? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ProductCostInfo; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceMetadataFilter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceMetadataFilter.Json.g.cs index 925e661..cee9b81 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceMetadataFilter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceMetadataFilter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.QueryEnhanceMetadataFilter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceMetadataFilter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceMetadataFilter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParams.Json.g.cs index 79240a7..0364a1a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.QueryEnhanceParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParamsInstructions.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParamsInstructions.Json.g.cs index 4849562..0a9a581 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParamsInstructions.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceParamsInstructions.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.QueryEnhanceParamsInstructions; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceParamsInstructions? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceParamsInstructions; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItem.Json.g.cs index 77af9a8..9c78000 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItem.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.QueryEnhanceQueryItem; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceQueryItem? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceQueryItem; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemMetadataFilters.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemMetadataFilters.Json.g.cs index 473bdde..5457f90 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemMetadataFilters.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceQueryItemMetadataFilters.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.QueryEnhanceQueryItemMetadataFilters; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceQueryItemMetadataFilters? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceQueryItemMetadataFilters; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResults.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResults.Json.g.cs index d059cdb..775ced9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResults.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResults.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.QueryEnhanceResults; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceResults? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceResults; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminator.Json.g.cs index 533dd68..be772bf 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceResultsItemDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.QueryEnhanceResultsItemDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceResultsItemDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceResultsItemDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItem.Json.g.cs index 877ea16..cfbb32d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItem.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.QueryEnhanceSortItem; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceSortItem? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceSortItem; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemMetadataFilters.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemMetadataFilters.Json.g.cs index b3299d4..cd02d38 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemMetadataFilters.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryEnhanceSortItemMetadataFilters.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.QueryEnhanceSortItemMetadataFilters; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.QueryEnhanceSortItemMetadataFilters? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryEnhanceSortItemMetadataFilters; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryRegexSubstitutionRule.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryRegexSubstitutionRule.Json.g.cs index 7396791..f179ffb 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryRegexSubstitutionRule.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryRegexSubstitutionRule.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.QueryRegexSubstitutionRule; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.QueryRegexSubstitutionRule? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryRegexSubstitutionRule; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryStringSubstitutionRule.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryStringSubstitutionRule.Json.g.cs index 0cc3bcc..ddd7918 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryStringSubstitutionRule.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QueryStringSubstitutionRule.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.QueryStringSubstitutionRule; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.QueryStringSubstitutionRule? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QueryStringSubstitutionRule; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.QuestionAnsweringOptions.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.QuestionAnsweringOptions.Json.g.cs index 075fde5..4ab2523 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.QuestionAnsweringOptions.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.QuestionAnsweringOptions.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.QuestionAnsweringOptions; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.QuestionAnsweringOptions? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.QuestionAnsweringOptions; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RankedDocument.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RankedDocument.Json.g.cs index 76edada..c2f969a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RankedDocument.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RankedDocument.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RankedDocument; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RankedDocument? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RankedDocument; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RankedDocumentInput.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RankedDocumentInput.Json.g.cs index 084dbec..a539343 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RankedDocumentInput.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RankedDocumentInput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RankedDocumentInput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RankedDocumentInput? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RankedDocumentInput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RankedDocumentInput2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RankedDocumentInput2.Json.g.cs index 5672dc0..83270fd 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RankedDocumentInput2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RankedDocumentInput2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RankedDocumentInput2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RankedDocumentInput2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RankedDocumentInput2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ReingestAllStoresResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ReingestAllStoresResponse.Json.g.cs index 626526b..5dc4933 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ReingestAllStoresResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ReingestAllStoresResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ReingestAllStoresResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ReingestAllStoresResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ReingestAllStoresResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ReingestAllStoresStatuses.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ReingestAllStoresStatuses.Json.g.cs index 487411c..ddf8aac 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ReingestAllStoresStatuses.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ReingestAllStoresStatuses.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ReingestAllStoresStatuses; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ReingestAllStoresStatuses? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ReingestAllStoresStatuses; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankConfig.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankConfig.Json.g.cs index cf712d5..9b537c4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankConfig.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankConfig.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RerankConfig; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RerankConfig? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RerankConfig; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankConfigTopK.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankConfigTopK.Json.g.cs index b9de331..8381cea 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankConfigTopK.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankConfigTopK.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RerankConfigTopK; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RerankConfigTopK? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RerankConfigTopK; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParams.Json.g.cs index 8dfb892..6d83663 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RerankParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RerankParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RerankParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParamsInputItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParamsInputItem.Json.g.cs index 6eea5b4..8a0a28a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParamsInputItem.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParamsInputItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RerankParamsInputItem; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RerankParamsInputItem? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RerankParamsInputItem; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParamsInputItemItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParamsInputItemItem.Json.g.cs index d92cebb..06f4607 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParamsInputItemItem.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParamsInputItemItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RerankParamsInputItemItem; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RerankParamsInputItemItem? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RerankParamsInputItemItem; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParamsRankFields.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParamsRankFields.Json.g.cs index a19032e..811c967 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParamsRankFields.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankParamsRankFields.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RerankParamsRankFields; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RerankParamsRankFields? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RerankParamsRankFields; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankResponse.Json.g.cs index bbe5df1..0ec78c0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RerankResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RerankResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RerankResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RerankResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule.Json.g.cs index 74bb1a5..29b00aa 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.Rule?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.Rule? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.Rule?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule2.Json.g.cs index ee2d76a..7cc1a09 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Rule2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.Rule2?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.Rule2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.Rule2?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem.Json.g.cs index f75938f..db23fd7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RulesItem?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RulesItem? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RulesItem?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem2.Json.g.cs index 9161760..0e2bf3a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RulesItem2?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RulesItem2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RulesItem2?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem3.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem3.Json.g.cs index ae4b7b4..3493c4d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem3.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem3.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RulesItem3?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RulesItem3? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RulesItem3?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem4.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem4.Json.g.cs index 52526ba..c37745f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem4.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesItem4.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RulesItem4?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RulesItem4? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RulesItem4?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item.Json.g.cs index dab2739..41bfec1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RulesVariant1Item?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RulesVariant1Item? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RulesVariant1Item?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item2.Json.g.cs index d9055b4..1e674cd 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.RulesVariant1Item2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.RulesVariant1Item2?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.RulesVariant1Item2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.RulesVariant1Item2?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Scope.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Scope.Json.g.cs index a5c11c2..72fcc51 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Scope.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Scope.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.Scope; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.Scope? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.Scope; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ScopeResourceType.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ScopeResourceType.Json.g.cs index db4f50a..aae1472 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ScopeResourceType.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ScopeResourceType.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ScopeResourceType; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ScopeResourceType? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ScopeResourceType; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPagination.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPagination.Json.g.cs index 056f1b1..a592de7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPagination.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPagination.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchCursorPagination; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchCursorPagination? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchCursorPagination; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationAfter.Json.g.cs index 6584c0e..2ddcef6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchCursorPaginationAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchCursorPaginationAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchCursorPaginationAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationBefore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationBefore.Json.g.cs index 53ab19d..5e43af0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationBefore.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationBefore.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchCursorPaginationBefore; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchCursorPaginationBefore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchCursorPaginationBefore; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationQ.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationQ.Json.g.cs index 06884ff..29f744b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationQ.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationQ.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchCursorPaginationQ; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchCursorPaginationQ? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchCursorPaginationQ; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationStatuses.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationStatuses.Json.g.cs index 58e067f..c3585ab 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationStatuses.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchCursorPaginationStatuses.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchCursorPaginationStatuses; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchCursorPaginationStatuses? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchCursorPaginationStatuses; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterCondition.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterCondition.Json.g.cs index 68bb391..37728ef 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterCondition.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterCondition.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchFilterCondition; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterCondition? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterCondition; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterConditionValue.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterConditionValue.Json.g.cs index e851f17..08d11e1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterConditionValue.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterConditionValue.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchFilterConditionValue; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterConditionValue? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterConditionValue; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInput.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInput.Json.g.cs index 5b75486..0f61ed5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInput.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchFilterInput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterInput? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterInput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAll.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAll.Json.g.cs index 3b53414..33d0d68 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAll.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAll.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchFilterInputAll; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterInputAll? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterInputAll; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAny.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAny.Json.g.cs index 5c1a65d..35ac4db 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAny.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputAny.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchFilterInputAny; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterInputAny? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterInputAny; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputNone.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputNone.Json.g.cs index 6650ab2..9c9439a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputNone.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterInputNone.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchFilterInputNone; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterInputNone? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterInputNone; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutput.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutput.Json.g.cs index 78c34bc..2fd4f72 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutput.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchFilterOutput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterOutput? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterOutput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAll.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAll.Json.g.cs index 14606e5..c820d15 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAll.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAll.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchFilterOutputAll; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterOutputAll? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterOutputAll; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAny.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAny.Json.g.cs index d0c3962..9f91e1a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAny.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputAny.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchFilterOutputAny; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterOutputAny? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterOutputAny; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputNone.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputNone.Json.g.cs index 792d1cf..7052b40 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputNone.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SearchFilterOutputNone.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SearchFilterOutputNone; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SearchFilterOutputNone? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SearchFilterOutputNone; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannel.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannel.Json.g.cs new file mode 100644 index 0000000..b29d7c0 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannel.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannel), + jsonSerializerContext) as global::Mixedbread.SlackChannel; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannel? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannel), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannel; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannel.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannel.g.cs new file mode 100644 index 0000000..9d6ef21 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannel.g.cs @@ -0,0 +1,256 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack public channel exposed for connector configuration. + /// + public sealed partial class SlackChannel + { + /// + /// Slack channel ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Slack channel name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// Whether the Slack channel is archived + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_archived")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsArchived { get; set; } + + /// + /// Whether the Slack app bot is a member + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_member")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsMember { get; set; } + + /// + /// Whether this channel is selected for store ingestion + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_selected")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsSelected { get; set; } + + /// + /// Approximate Slack channel member count + /// + [global::System.Text.Json.Serialization.JsonPropertyName("num_members")] + public int? NumMembers { get; set; } + + /// + /// Current Slack ingestion status
+ /// Default Value: not_syncing + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sync_status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.SlackChannelSyncStatusJsonConverter))] + public global::Mixedbread.SlackChannelSyncStatus? SyncStatus { get; set; } + + /// + /// Last successful Slack sync time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_synced_at")] + public global::System.DateTime? LastSyncedAt { get; set; } + + /// + /// Last Slack sync error + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sync_error")] + public string? SyncError { get; set; } + + /// + /// Most recent Slack history import status + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_status")] + public global::Mixedbread.SlackChannelLastSyncStatus2? LastSyncStatus { get; set; } + + /// + /// Most recent Slack history import start time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_started_at")] + public global::System.DateTime? LastSyncStartedAt { get; set; } + + /// + /// Most recent Slack history import completion time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_completed_at")] + public global::System.DateTime? LastSyncCompletedAt { get; set; } + + /// + /// Messages fetched in the last Slack history import + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_message_count")] + public int? LastSyncMessageCount { get; set; } + + /// + /// Store files written in the last Slack history import + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_store_file_count")] + public int? LastSyncStoreFileCount { get; set; } + + /// + /// Most recent Slack history import run ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_run_id")] + public string? LastSyncRunId { get; set; } + + /// + /// Number of active Slack history imports for this channel
+ /// Default Value: 0 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("syncs_in_progress")] + public int? SyncsInProgress { get; set; } + + /// + /// Most recent Slack item-level sync warning + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_warning")] + public string? LastSyncWarning { get; set; } + + /// + /// Number of Slack items that failed in the most recent import
+ /// Default Value: 0 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_failed_item_count")] + public int? LastSyncFailedItemCount { get; set; } + + /// + /// Bounded Slack item failures from the most recent import + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_failed_items")] + public global::System.Collections.Generic.IList? LastSyncFailedItems { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Slack channel ID + /// + /// + /// Slack channel name + /// + /// + /// Whether the Slack channel is archived + /// + /// + /// Whether the Slack app bot is a member + /// + /// + /// Whether this channel is selected for store ingestion + /// + /// + /// Approximate Slack channel member count + /// + /// + /// Current Slack ingestion status
+ /// Default Value: not_syncing + /// + /// + /// Last successful Slack sync time + /// + /// + /// Last Slack sync error + /// + /// + /// Most recent Slack history import status + /// + /// + /// Most recent Slack history import start time + /// + /// + /// Most recent Slack history import completion time + /// + /// + /// Messages fetched in the last Slack history import + /// + /// + /// Store files written in the last Slack history import + /// + /// + /// Most recent Slack history import run ID + /// + /// + /// Number of active Slack history imports for this channel
+ /// Default Value: 0 + /// + /// + /// Most recent Slack item-level sync warning + /// + /// + /// Number of Slack items that failed in the most recent import
+ /// Default Value: 0 + /// + /// + /// Bounded Slack item failures from the most recent import + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackChannel( + string id, + string name, + bool isArchived, + bool isMember, + bool isSelected, + int? numMembers, + global::Mixedbread.SlackChannelSyncStatus? syncStatus, + global::System.DateTime? lastSyncedAt, + string? syncError, + global::Mixedbread.SlackChannelLastSyncStatus2? lastSyncStatus, + global::System.DateTime? lastSyncStartedAt, + global::System.DateTime? lastSyncCompletedAt, + int? lastSyncMessageCount, + int? lastSyncStoreFileCount, + string? lastSyncRunId, + int? syncsInProgress, + string? lastSyncWarning, + int? lastSyncFailedItemCount, + global::System.Collections.Generic.IList? lastSyncFailedItems) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.IsArchived = isArchived; + this.IsMember = isMember; + this.IsSelected = isSelected; + this.NumMembers = numMembers; + this.SyncStatus = syncStatus; + this.LastSyncedAt = lastSyncedAt; + this.SyncError = syncError; + this.LastSyncStatus = lastSyncStatus; + this.LastSyncStartedAt = lastSyncStartedAt; + this.LastSyncCompletedAt = lastSyncCompletedAt; + this.LastSyncMessageCount = lastSyncMessageCount; + this.LastSyncStoreFileCount = lastSyncStoreFileCount; + this.LastSyncRunId = lastSyncRunId; + this.SyncsInProgress = syncsInProgress; + this.LastSyncWarning = lastSyncWarning; + this.LastSyncFailedItemCount = lastSyncFailedItemCount; + this.LastSyncFailedItems = lastSyncFailedItems; + } + + /// + /// Initializes a new instance of the class. + /// + public SlackChannel() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncCompletedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncCompletedAt.Json.g.cs new file mode 100644 index 0000000..17324e5 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncCompletedAt.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelLastSyncCompletedAt + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncCompletedAt? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelLastSyncCompletedAt), + jsonSerializerContext) as global::Mixedbread.SlackChannelLastSyncCompletedAt; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncCompletedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelLastSyncCompletedAt? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelLastSyncCompletedAt), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelLastSyncCompletedAt; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncCompletedAt.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncCompletedAt.g.cs new file mode 100644 index 0000000..b324b7b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncCompletedAt.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Most recent Slack history import completion time + /// + public sealed partial class SlackChannelLastSyncCompletedAt + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncFailedItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncFailedItem.Json.g.cs new file mode 100644 index 0000000..4f0fd38 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncFailedItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelLastSyncFailedItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncFailedItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelLastSyncFailedItem), + jsonSerializerContext) as global::Mixedbread.SlackChannelLastSyncFailedItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncFailedItem? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelLastSyncFailedItem? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelLastSyncFailedItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelLastSyncFailedItem; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncFailedItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncFailedItem.g.cs new file mode 100644 index 0000000..c25bf64 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncFailedItem.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class SlackChannelLastSyncFailedItem + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncMessageCount.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncMessageCount.Json.g.cs new file mode 100644 index 0000000..f1b198f --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncMessageCount.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelLastSyncMessageCount + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncMessageCount? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelLastSyncMessageCount), + jsonSerializerContext) as global::Mixedbread.SlackChannelLastSyncMessageCount; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncMessageCount? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelLastSyncMessageCount? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelLastSyncMessageCount), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelLastSyncMessageCount; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncMessageCount.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncMessageCount.g.cs new file mode 100644 index 0000000..3c69fb6 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncMessageCount.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Messages fetched in the last Slack history import + /// + public sealed partial class SlackChannelLastSyncMessageCount + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncRunId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncRunId.Json.g.cs new file mode 100644 index 0000000..d963af7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncRunId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelLastSyncRunId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncRunId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelLastSyncRunId), + jsonSerializerContext) as global::Mixedbread.SlackChannelLastSyncRunId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncRunId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelLastSyncRunId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelLastSyncRunId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelLastSyncRunId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncRunId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncRunId.g.cs new file mode 100644 index 0000000..1bdb3e4 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncRunId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Most recent Slack history import run ID + /// + public sealed partial class SlackChannelLastSyncRunId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStartedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStartedAt.Json.g.cs new file mode 100644 index 0000000..1bb0c38 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStartedAt.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelLastSyncStartedAt + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncStartedAt? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelLastSyncStartedAt), + jsonSerializerContext) as global::Mixedbread.SlackChannelLastSyncStartedAt; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncStartedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelLastSyncStartedAt? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelLastSyncStartedAt), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelLastSyncStartedAt; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStartedAt.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStartedAt.g.cs new file mode 100644 index 0000000..5ac19fe --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStartedAt.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Most recent Slack history import start time + /// + public sealed partial class SlackChannelLastSyncStartedAt + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStatus.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStatus.Json.g.cs new file mode 100644 index 0000000..1496185 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStatus.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelLastSyncStatus + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncStatus? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelLastSyncStatus), + jsonSerializerContext) as global::Mixedbread.SlackChannelLastSyncStatus; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncStatus? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelLastSyncStatus? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelLastSyncStatus), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelLastSyncStatus; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStatus.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStatus.g.cs new file mode 100644 index 0000000..2d16c3d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStatus.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Most recent Slack history import status + /// + public sealed partial class SlackChannelLastSyncStatus + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStatus2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStatus2.g.cs new file mode 100644 index 0000000..6bffb14 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStatus2.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public enum SlackChannelLastSyncStatus2 + { + /// + /// + /// + Completed, + /// + /// + /// + Error, + /// + /// + /// + InProgress, + /// + /// + /// + Queued, + /// + /// + /// + Skipped, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SlackChannelLastSyncStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SlackChannelLastSyncStatus2 value) + { + return value switch + { + SlackChannelLastSyncStatus2.Completed => "completed", + SlackChannelLastSyncStatus2.Error => "error", + SlackChannelLastSyncStatus2.InProgress => "in_progress", + SlackChannelLastSyncStatus2.Queued => "queued", + SlackChannelLastSyncStatus2.Skipped => "skipped", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SlackChannelLastSyncStatus2? ToEnum(string value) + { + return value switch + { + "completed" => SlackChannelLastSyncStatus2.Completed, + "error" => SlackChannelLastSyncStatus2.Error, + "in_progress" => SlackChannelLastSyncStatus2.InProgress, + "queued" => SlackChannelLastSyncStatus2.Queued, + "skipped" => SlackChannelLastSyncStatus2.Skipped, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStoreFileCount.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStoreFileCount.Json.g.cs new file mode 100644 index 0000000..7474255 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStoreFileCount.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelLastSyncStoreFileCount + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncStoreFileCount? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelLastSyncStoreFileCount), + jsonSerializerContext) as global::Mixedbread.SlackChannelLastSyncStoreFileCount; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncStoreFileCount? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelLastSyncStoreFileCount? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelLastSyncStoreFileCount), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelLastSyncStoreFileCount; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStoreFileCount.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStoreFileCount.g.cs new file mode 100644 index 0000000..8dcc845 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncStoreFileCount.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Store files written in the last Slack history import + /// + public sealed partial class SlackChannelLastSyncStoreFileCount + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncWarning.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncWarning.Json.g.cs new file mode 100644 index 0000000..ba5637c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncWarning.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelLastSyncWarning + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncWarning? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelLastSyncWarning), + jsonSerializerContext) as global::Mixedbread.SlackChannelLastSyncWarning; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncWarning? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelLastSyncWarning? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelLastSyncWarning), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelLastSyncWarning; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncWarning.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncWarning.g.cs new file mode 100644 index 0000000..736d5ec --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncWarning.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Most recent Slack item-level sync warning + /// + public sealed partial class SlackChannelLastSyncWarning + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncedAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncedAt.Json.g.cs new file mode 100644 index 0000000..4580cfd --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncedAt.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelLastSyncedAt + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncedAt? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelLastSyncedAt), + jsonSerializerContext) as global::Mixedbread.SlackChannelLastSyncedAt; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelLastSyncedAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelLastSyncedAt? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelLastSyncedAt), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelLastSyncedAt; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncedAt.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncedAt.g.cs new file mode 100644 index 0000000..946e4c8 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelLastSyncedAt.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Last successful Slack sync time + /// + public sealed partial class SlackChannelLastSyncedAt + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelNumMembers.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelNumMembers.Json.g.cs new file mode 100644 index 0000000..8e8f0cc --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelNumMembers.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelNumMembers + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelNumMembers? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelNumMembers), + jsonSerializerContext) as global::Mixedbread.SlackChannelNumMembers; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelNumMembers? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelNumMembers? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelNumMembers), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelNumMembers; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelNumMembers.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelNumMembers.g.cs new file mode 100644 index 0000000..9398200 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelNumMembers.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Approximate Slack channel member count + /// + public sealed partial class SlackChannelNumMembers + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelection.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelection.Json.g.cs new file mode 100644 index 0000000..d7c587a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelection.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSelection + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelection? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSelection), + jsonSerializerContext) as global::Mixedbread.SlackChannelSelection; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelection? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSelection? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSelection), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSelection; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelection.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelection.g.cs new file mode 100644 index 0000000..8e1e241 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelection.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack channel selection for a store connector. + /// + public sealed partial class SlackChannelSelection + { + /// + /// Whether Slack is installed for the organization + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_installed")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsInstalled { get; set; } + + /// + /// Slack installation ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("installation_id")] + public string? InstallationId { get; set; } + + /// + /// Slack team ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("team_id")] + public string? TeamId { get; set; } + + /// + /// Slack team name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("team_name")] + public string? TeamName { get; set; } + + /// + /// Mixedbread store ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_id")] + public string? StoreId { get; set; } + + /// + /// Mixedbread store name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_name")] + public string? StoreName { get; set; } + + /// + /// Whether all current and future Slack channels are synced automatically
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("auto_sync_all_channels")] + public bool? AutoSyncAllChannels { get; set; } + + /// + /// Available public Slack channels + /// + [global::System.Text.Json.Serialization.JsonPropertyName("channels")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Channels { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Whether Slack is installed for the organization + /// + /// + /// Available public Slack channels + /// + /// + /// Slack installation ID + /// + /// + /// Slack team ID + /// + /// + /// Slack team name + /// + /// + /// Mixedbread store ID + /// + /// + /// Mixedbread store name + /// + /// + /// Whether all current and future Slack channels are synced automatically
+ /// Default Value: false + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackChannelSelection( + bool isInstalled, + global::System.Collections.Generic.IList channels, + string? installationId, + string? teamId, + string? teamName, + string? storeId, + string? storeName, + bool? autoSyncAllChannels) + { + this.IsInstalled = isInstalled; + this.InstallationId = installationId; + this.TeamId = teamId; + this.TeamName = teamName; + this.StoreId = storeId; + this.StoreName = storeName; + this.AutoSyncAllChannels = autoSyncAllChannels; + this.Channels = channels ?? throw new global::System.ArgumentNullException(nameof(channels)); + } + + /// + /// Initializes a new instance of the class. + /// + public SlackChannelSelection() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionInstallationId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionInstallationId.Json.g.cs new file mode 100644 index 0000000..44d6d43 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionInstallationId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSelectionInstallationId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionInstallationId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSelectionInstallationId), + jsonSerializerContext) as global::Mixedbread.SlackChannelSelectionInstallationId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionInstallationId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSelectionInstallationId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSelectionInstallationId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSelectionInstallationId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionInstallationId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionInstallationId.g.cs new file mode 100644 index 0000000..a7fb4ee --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionInstallationId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack installation ID + /// + public sealed partial class SlackChannelSelectionInstallationId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionResponse.Json.g.cs new file mode 100644 index 0000000..f120ec4 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSelectionResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSelectionResponse), + jsonSerializerContext) as global::Mixedbread.SlackChannelSelectionResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSelectionResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSelectionResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSelectionResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionResponse.g.cs new file mode 100644 index 0000000..688f5f6 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack channel selection response. + /// + public sealed partial class SlackChannelSelectionResponse + { + /// + /// Slack channel selection + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.SlackChannelSelection Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Slack channel selection + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackChannelSelectionResponse( + global::Mixedbread.SlackChannelSelection data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public SlackChannelSelectionResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionStoreId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionStoreId.Json.g.cs new file mode 100644 index 0000000..0a0482a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionStoreId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSelectionStoreId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionStoreId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSelectionStoreId), + jsonSerializerContext) as global::Mixedbread.SlackChannelSelectionStoreId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionStoreId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSelectionStoreId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSelectionStoreId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSelectionStoreId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionStoreId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionStoreId.g.cs new file mode 100644 index 0000000..f1bff92 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionStoreId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Mixedbread store ID + /// + public sealed partial class SlackChannelSelectionStoreId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionStoreName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionStoreName.Json.g.cs new file mode 100644 index 0000000..42cf47a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionStoreName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSelectionStoreName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionStoreName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSelectionStoreName), + jsonSerializerContext) as global::Mixedbread.SlackChannelSelectionStoreName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionStoreName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSelectionStoreName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSelectionStoreName), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSelectionStoreName; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionStoreName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionStoreName.g.cs new file mode 100644 index 0000000..fe8d59b --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionStoreName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Mixedbread store name + /// + public sealed partial class SlackChannelSelectionStoreName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionTeamId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionTeamId.Json.g.cs new file mode 100644 index 0000000..d2bc6a0 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionTeamId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSelectionTeamId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionTeamId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSelectionTeamId), + jsonSerializerContext) as global::Mixedbread.SlackChannelSelectionTeamId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionTeamId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSelectionTeamId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSelectionTeamId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSelectionTeamId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionTeamId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionTeamId.g.cs new file mode 100644 index 0000000..1a37d20 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionTeamId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack team ID + /// + public sealed partial class SlackChannelSelectionTeamId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionTeamName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionTeamName.Json.g.cs new file mode 100644 index 0000000..1bd53dc --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionTeamName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSelectionTeamName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionTeamName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSelectionTeamName), + jsonSerializerContext) as global::Mixedbread.SlackChannelSelectionTeamName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionTeamName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSelectionTeamName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSelectionTeamName), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSelectionTeamName; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionTeamName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionTeamName.g.cs new file mode 100644 index 0000000..8621e35 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionTeamName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack team name + /// + public sealed partial class SlackChannelSelectionTeamName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdate.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdate.Json.g.cs new file mode 100644 index 0000000..00631be --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdate.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSelectionUpdate + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionUpdate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSelectionUpdate), + jsonSerializerContext) as global::Mixedbread.SlackChannelSelectionUpdate; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionUpdate? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSelectionUpdate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSelectionUpdate), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSelectionUpdate; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdate.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdate.g.cs new file mode 100644 index 0000000..49130c8 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdate.g.cs @@ -0,0 +1,95 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Result of updating Slack channel selection. + /// + public sealed partial class SlackChannelSelectionUpdate + { + /// + /// Mixedbread store ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string StoreId { get; set; } + + /// + /// Selected Slack channel IDs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("selected_channel_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList SelectedChannelIds { get; set; } + + /// + /// Slack channels the app joined while saving + /// + [global::System.Text.Json.Serialization.JsonPropertyName("joined_channel_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList JoinedChannelIds { get; set; } + + /// + /// Slack channels queued for historical ingestion + /// + [global::System.Text.Json.Serialization.JsonPropertyName("backfill_channel_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList BackfillChannelIds { get; set; } + + /// + /// Slack channel IDs skipped by Slack error + /// + [global::System.Text.Json.Serialization.JsonPropertyName("skipped_channels")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.Dictionary SkippedChannels { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Mixedbread store ID + /// + /// + /// Selected Slack channel IDs + /// + /// + /// Slack channels the app joined while saving + /// + /// + /// Slack channels queued for historical ingestion + /// + /// + /// Slack channel IDs skipped by Slack error + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackChannelSelectionUpdate( + string storeId, + global::System.Collections.Generic.IList selectedChannelIds, + global::System.Collections.Generic.IList joinedChannelIds, + global::System.Collections.Generic.IList backfillChannelIds, + global::System.Collections.Generic.Dictionary skippedChannels) + { + this.StoreId = storeId ?? throw new global::System.ArgumentNullException(nameof(storeId)); + this.SelectedChannelIds = selectedChannelIds ?? throw new global::System.ArgumentNullException(nameof(selectedChannelIds)); + this.JoinedChannelIds = joinedChannelIds ?? throw new global::System.ArgumentNullException(nameof(joinedChannelIds)); + this.BackfillChannelIds = backfillChannelIds ?? throw new global::System.ArgumentNullException(nameof(backfillChannelIds)); + this.SkippedChannels = skippedChannels ?? throw new global::System.ArgumentNullException(nameof(skippedChannels)); + } + + /// + /// Initializes a new instance of the class. + /// + public SlackChannelSelectionUpdate() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateParams.Json.g.cs new file mode 100644 index 0000000..d991b15 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateParams.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSelectionUpdateParams + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionUpdateParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSelectionUpdateParams), + jsonSerializerContext) as global::Mixedbread.SlackChannelSelectionUpdateParams; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionUpdateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSelectionUpdateParams? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSelectionUpdateParams), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSelectionUpdateParams; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateParams.g.cs new file mode 100644 index 0000000..de19794 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateParams.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Parameters for selecting Slack channels for store ingestion. + /// + public sealed partial class SlackChannelSelectionUpdateParams + { + /// + /// Slack installation ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("installation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid InstallationId { get; set; } + + /// + /// Slack channel IDs to ingest into the store + /// + [global::System.Text.Json.Serialization.JsonPropertyName("channel_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList ChannelIds { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Slack installation ID + /// + /// + /// Slack channel IDs to ingest into the store + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackChannelSelectionUpdateParams( + global::System.Guid installationId, + global::System.Collections.Generic.IList channelIds) + { + this.InstallationId = installationId; + this.ChannelIds = channelIds ?? throw new global::System.ArgumentNullException(nameof(channelIds)); + } + + /// + /// Initializes a new instance of the class. + /// + public SlackChannelSelectionUpdateParams() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateResponse.Json.g.cs new file mode 100644 index 0000000..c5a8904 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSelectionUpdateResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionUpdateResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSelectionUpdateResponse), + jsonSerializerContext) as global::Mixedbread.SlackChannelSelectionUpdateResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionUpdateResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSelectionUpdateResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSelectionUpdateResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSelectionUpdateResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateResponse.g.cs new file mode 100644 index 0000000..a1afc6e --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack channel selection update response. + /// + public sealed partial class SlackChannelSelectionUpdateResponse + { + /// + /// Slack channel selection update + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.SlackChannelSelectionUpdate Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Slack channel selection update + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackChannelSelectionUpdateResponse( + global::Mixedbread.SlackChannelSelectionUpdate data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public SlackChannelSelectionUpdateResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateSkippedChannels.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateSkippedChannels.Json.g.cs new file mode 100644 index 0000000..07eb7c8 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateSkippedChannels.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSelectionUpdateSkippedChannels + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionUpdateSkippedChannels? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSelectionUpdateSkippedChannels), + jsonSerializerContext) as global::Mixedbread.SlackChannelSelectionUpdateSkippedChannels; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSelectionUpdateSkippedChannels? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSelectionUpdateSkippedChannels? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSelectionUpdateSkippedChannels), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSelectionUpdateSkippedChannels; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateSkippedChannels.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateSkippedChannels.g.cs new file mode 100644 index 0000000..f008631 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSelectionUpdateSkippedChannels.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack channel IDs skipped by Slack error + /// + public sealed partial class SlackChannelSelectionUpdateSkippedChannels + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSync.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSync.Json.g.cs new file mode 100644 index 0000000..8f27b9f --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSync.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSync + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSync? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSync), + jsonSerializerContext) as global::Mixedbread.SlackChannelSync; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSync? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSync? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSync), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSync; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSync.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSync.g.cs new file mode 100644 index 0000000..46a51fc --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSync.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Result of manually syncing selected Slack channels. + /// + public sealed partial class SlackChannelSync + { + /// + /// Mixedbread store ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string StoreId { get; set; } + + /// + /// Slack channel IDs queued for historical sync + /// + [global::System.Text.Json.Serialization.JsonPropertyName("queued_channel_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList QueuedChannelIds { get; set; } + + /// + /// Slack channel IDs skipped by validation + /// + [global::System.Text.Json.Serialization.JsonPropertyName("skipped_channels")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.Dictionary SkippedChannels { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Mixedbread store ID + /// + /// + /// Slack channel IDs queued for historical sync + /// + /// + /// Slack channel IDs skipped by validation + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackChannelSync( + string storeId, + global::System.Collections.Generic.IList queuedChannelIds, + global::System.Collections.Generic.Dictionary skippedChannels) + { + this.StoreId = storeId ?? throw new global::System.ArgumentNullException(nameof(storeId)); + this.QueuedChannelIds = queuedChannelIds ?? throw new global::System.ArgumentNullException(nameof(queuedChannelIds)); + this.SkippedChannels = skippedChannels ?? throw new global::System.ArgumentNullException(nameof(skippedChannels)); + } + + /// + /// Initializes a new instance of the class. + /// + public SlackChannelSync() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncError.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncError.Json.g.cs new file mode 100644 index 0000000..2a3004c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncError.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSyncError + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSyncError? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSyncError), + jsonSerializerContext) as global::Mixedbread.SlackChannelSyncError; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSyncError? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSyncError? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSyncError), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSyncError; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncError.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncError.g.cs new file mode 100644 index 0000000..da5f9d0 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncError.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Last Slack sync error + /// + public sealed partial class SlackChannelSyncError + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncParams.Json.g.cs new file mode 100644 index 0000000..8901998 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncParams.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSyncParams + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSyncParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSyncParams), + jsonSerializerContext) as global::Mixedbread.SlackChannelSyncParams; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSyncParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSyncParams? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSyncParams), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSyncParams; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncParams.g.cs new file mode 100644 index 0000000..0b88047 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncParams.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Parameters for manually syncing selected Slack channels. + /// + public sealed partial class SlackChannelSyncParams + { + /// + /// Slack installation ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("installation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid InstallationId { get; set; } + + /// + /// Slack channel IDs to sync. Defaults to all selected channels. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("channel_ids")] + public global::System.Collections.Generic.IList? ChannelIds { get; set; } + + /// + /// Only retry Slack items that failed in the most recent import.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("retry_failed_only")] + public bool? RetryFailedOnly { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Slack installation ID + /// + /// + /// Slack channel IDs to sync. Defaults to all selected channels. + /// + /// + /// Only retry Slack items that failed in the most recent import.
+ /// Default Value: false + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackChannelSyncParams( + global::System.Guid installationId, + global::System.Collections.Generic.IList? channelIds, + bool? retryFailedOnly) + { + this.InstallationId = installationId; + this.ChannelIds = channelIds; + this.RetryFailedOnly = retryFailedOnly; + } + + /// + /// Initializes a new instance of the class. + /// + public SlackChannelSyncParams() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncParamsChannelIds.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncParamsChannelIds.Json.g.cs new file mode 100644 index 0000000..2177d4c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncParamsChannelIds.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSyncParamsChannelIds + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSyncParamsChannelIds? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSyncParamsChannelIds), + jsonSerializerContext) as global::Mixedbread.SlackChannelSyncParamsChannelIds; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSyncParamsChannelIds? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSyncParamsChannelIds? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSyncParamsChannelIds), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSyncParamsChannelIds; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncParamsChannelIds.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncParamsChannelIds.g.cs new file mode 100644 index 0000000..48b1805 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncParamsChannelIds.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack channel IDs to sync. Defaults to all selected channels. + /// + public sealed partial class SlackChannelSyncParamsChannelIds + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncResponse.Json.g.cs new file mode 100644 index 0000000..05e6fe7 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSyncResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSyncResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSyncResponse), + jsonSerializerContext) as global::Mixedbread.SlackChannelSyncResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSyncResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSyncResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSyncResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSyncResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncResponse.g.cs new file mode 100644 index 0000000..f0e37ad --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack channel manual sync response. + /// + public sealed partial class SlackChannelSyncResponse + { + /// + /// Slack channel manual sync result + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Mixedbread.SlackChannelSync Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Slack channel manual sync result + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackChannelSyncResponse( + global::Mixedbread.SlackChannelSync data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public SlackChannelSyncResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncSkippedChannels.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncSkippedChannels.Json.g.cs new file mode 100644 index 0000000..dacb511 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncSkippedChannels.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackChannelSyncSkippedChannels + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSyncSkippedChannels? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackChannelSyncSkippedChannels), + jsonSerializerContext) as global::Mixedbread.SlackChannelSyncSkippedChannels; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackChannelSyncSkippedChannels? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackChannelSyncSkippedChannels? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackChannelSyncSkippedChannels), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackChannelSyncSkippedChannels; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncSkippedChannels.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncSkippedChannels.g.cs new file mode 100644 index 0000000..ea7c492 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncSkippedChannels.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack channel IDs skipped by validation + /// + public sealed partial class SlackChannelSyncSkippedChannels + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncStatus.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncStatus.g.cs new file mode 100644 index 0000000..d7b8ef3 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackChannelSyncStatus.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Current Slack ingestion status
+ /// Default Value: not_syncing + ///
+ public enum SlackChannelSyncStatus + { + /// + /// + /// + Error, + /// + /// + /// + NotSyncing, + /// + /// + /// + Syncing, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SlackChannelSyncStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SlackChannelSyncStatus value) + { + return value switch + { + SlackChannelSyncStatus.Error => "error", + SlackChannelSyncStatus.NotSyncing => "not_syncing", + SlackChannelSyncStatus.Syncing => "syncing", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SlackChannelSyncStatus? ToEnum(string value) + { + return value switch + { + "error" => SlackChannelSyncStatus.Error, + "not_syncing" => SlackChannelSyncStatus.NotSyncing, + "syncing" => SlackChannelSyncStatus.Syncing, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationConfigUpdateBody.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationConfigUpdateBody.Json.g.cs new file mode 100644 index 0000000..7117469 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationConfigUpdateBody.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackInstallationConfigUpdateBody + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackInstallationConfigUpdateBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackInstallationConfigUpdateBody), + jsonSerializerContext) as global::Mixedbread.SlackInstallationConfigUpdateBody; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackInstallationConfigUpdateBody? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackInstallationConfigUpdateBody? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackInstallationConfigUpdateBody), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackInstallationConfigUpdateBody; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationConfigUpdateBody.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationConfigUpdateBody.g.cs new file mode 100644 index 0000000..ef1d02f --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationConfigUpdateBody.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Request body for updating a Slack installation's data source config. + /// + public sealed partial class SlackInstallationConfigUpdateBody + { + /// + /// Whether all current and future Slack channels are synced automatically + /// + [global::System.Text.Json.Serialization.JsonPropertyName("auto_sync_all_channels")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool AutoSyncAllChannels { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Whether all current and future Slack channels are synced automatically + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackInstallationConfigUpdateBody( + bool autoSyncAllChannels) + { + this.AutoSyncAllChannels = autoSyncAllChannels; + } + + /// + /// Initializes a new instance of the class. + /// + public SlackInstallationConfigUpdateBody() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverview.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverview.Json.g.cs new file mode 100644 index 0000000..1088817 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverview.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackInstallationOverview + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackInstallationOverview? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackInstallationOverview), + jsonSerializerContext) as global::Mixedbread.SlackInstallationOverview; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackInstallationOverview? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackInstallationOverview? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackInstallationOverview), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackInstallationOverview; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverview.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverview.g.cs new file mode 100644 index 0000000..771d609 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverview.g.cs @@ -0,0 +1,130 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Summary of a connected Slack workspace for the data sources overview. + /// + public sealed partial class SlackInstallationOverview + { + /// + /// Slack installation ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("installation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string InstallationId { get; set; } + + /// + /// Slack team ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("team_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string TeamId { get; set; } + + /// + /// Slack team name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("team_name")] + public string? TeamName { get; set; } + + /// + /// The installation status + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Status { get; set; } + + /// + /// Mixedbread ingestion store ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_id")] + public string? StoreId { get; set; } + + /// + /// Mixedbread ingestion store name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_name")] + public string? StoreName { get; set; } + + /// + /// Number of Slack channels selected for ingestion
+ /// Default Value: 0 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("syncing_channel_count")] + public int? SyncingChannelCount { get; set; } + + /// + /// Whether all current and future Slack channels are synced automatically
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("auto_sync_all_channels")] + public bool? AutoSyncAllChannels { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Slack installation ID + /// + /// + /// Slack team ID + /// + /// + /// The installation status + /// + /// + /// Slack team name + /// + /// + /// Mixedbread ingestion store ID + /// + /// + /// Mixedbread ingestion store name + /// + /// + /// Number of Slack channels selected for ingestion
+ /// Default Value: 0 + /// + /// + /// Whether all current and future Slack channels are synced automatically
+ /// Default Value: false + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackInstallationOverview( + string installationId, + string teamId, + string status, + string? teamName, + string? storeId, + string? storeName, + int? syncingChannelCount, + bool? autoSyncAllChannels) + { + this.InstallationId = installationId ?? throw new global::System.ArgumentNullException(nameof(installationId)); + this.TeamId = teamId ?? throw new global::System.ArgumentNullException(nameof(teamId)); + this.TeamName = teamName; + this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); + this.StoreId = storeId; + this.StoreName = storeName; + this.SyncingChannelCount = syncingChannelCount; + this.AutoSyncAllChannels = autoSyncAllChannels; + } + + /// + /// Initializes a new instance of the class. + /// + public SlackInstallationOverview() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewListResponse.Json.g.cs new file mode 100644 index 0000000..a324696 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewListResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackInstallationOverviewListResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackInstallationOverviewListResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackInstallationOverviewListResponse), + jsonSerializerContext) as global::Mixedbread.SlackInstallationOverviewListResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackInstallationOverviewListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackInstallationOverviewListResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackInstallationOverviewListResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackInstallationOverviewListResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewListResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewListResponse.g.cs new file mode 100644 index 0000000..525c8ab --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewListResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// List of connected Slack workspaces for the data sources overview. + /// + public sealed partial class SlackInstallationOverviewListResponse + { + /// + /// Connected Slack workspaces + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Connected Slack workspaces + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackInstallationOverviewListResponse( + global::System.Collections.Generic.IList data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public SlackInstallationOverviewListResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewStoreId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewStoreId.Json.g.cs new file mode 100644 index 0000000..d554268 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewStoreId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackInstallationOverviewStoreId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackInstallationOverviewStoreId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackInstallationOverviewStoreId), + jsonSerializerContext) as global::Mixedbread.SlackInstallationOverviewStoreId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackInstallationOverviewStoreId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackInstallationOverviewStoreId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackInstallationOverviewStoreId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackInstallationOverviewStoreId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewStoreId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewStoreId.g.cs new file mode 100644 index 0000000..7ec9662 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewStoreId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Mixedbread ingestion store ID + /// + public sealed partial class SlackInstallationOverviewStoreId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewStoreName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewStoreName.Json.g.cs new file mode 100644 index 0000000..d44f44e --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewStoreName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackInstallationOverviewStoreName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackInstallationOverviewStoreName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackInstallationOverviewStoreName), + jsonSerializerContext) as global::Mixedbread.SlackInstallationOverviewStoreName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackInstallationOverviewStoreName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackInstallationOverviewStoreName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackInstallationOverviewStoreName), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackInstallationOverviewStoreName; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewStoreName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewStoreName.g.cs new file mode 100644 index 0000000..7afe13e --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewStoreName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Mixedbread ingestion store name + /// + public sealed partial class SlackInstallationOverviewStoreName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewTeamName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewTeamName.Json.g.cs new file mode 100644 index 0000000..a44ee47 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewTeamName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackInstallationOverviewTeamName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackInstallationOverviewTeamName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackInstallationOverviewTeamName), + jsonSerializerContext) as global::Mixedbread.SlackInstallationOverviewTeamName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackInstallationOverviewTeamName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackInstallationOverviewTeamName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackInstallationOverviewTeamName), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackInstallationOverviewTeamName; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewTeamName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewTeamName.g.cs new file mode 100644 index 0000000..99559b0 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackInstallationOverviewTeamName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack team name + /// + public sealed partial class SlackInstallationOverviewTeamName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManifestResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManifestResponse.Json.g.cs new file mode 100644 index 0000000..53ccb65 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManifestResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackManifestResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackManifestResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackManifestResponse), + jsonSerializerContext) as global::Mixedbread.SlackManifestResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackManifestResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackManifestResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackManifestResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackManifestResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManifestResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManifestResponse.g.cs new file mode 100644 index 0000000..9e29917 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManifestResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Rendered Slack app manifest for bring-your-own-app setup. + /// + public sealed partial class SlackManifestResponse + { + /// + /// Slack app manifest YAML pre-filled with this deployment's URLs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("manifest")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Manifest { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Slack app manifest YAML pre-filled with this deployment's URLs + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackManifestResponse( + string manifest) + { + this.Manifest = manifest ?? throw new global::System.ArgumentNullException(nameof(manifest)); + } + + /// + /// Initializes a new instance of the class. + /// + public SlackManifestResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManualConnectBody.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManualConnectBody.Json.g.cs new file mode 100644 index 0000000..5862487 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManualConnectBody.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackManualConnectBody + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackManualConnectBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackManualConnectBody), + jsonSerializerContext) as global::Mixedbread.SlackManualConnectBody; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackManualConnectBody? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackManualConnectBody? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackManualConnectBody), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackManualConnectBody; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManualConnectBody.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManualConnectBody.g.cs new file mode 100644 index 0000000..3117344 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManualConnectBody.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Request body for connecting Slack with a customer-provided app (bot token + signing secret). + /// + public sealed partial class SlackManualConnectBody + { + /// + /// Slack bot user OAuth token (xoxb-…) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bot_token")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string BotToken { get; set; } + + /// + /// Slack app signing secret + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signing_secret")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string SigningSecret { get; set; } + + /// + /// Optional ingestion store name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_name")] + public string? StoreName { get; set; } + + /// + /// Automatically sync all current and future channels
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("auto_sync_all")] + public bool? AutoSyncAll { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Slack bot user OAuth token (xoxb-…) + /// + /// + /// Slack app signing secret + /// + /// + /// Optional ingestion store name + /// + /// + /// Automatically sync all current and future channels
+ /// Default Value: false + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SlackManualConnectBody( + string botToken, + string signingSecret, + string? storeName, + bool? autoSyncAll) + { + this.BotToken = botToken ?? throw new global::System.ArgumentNullException(nameof(botToken)); + this.SigningSecret = signingSecret ?? throw new global::System.ArgumentNullException(nameof(signingSecret)); + this.StoreName = storeName; + this.AutoSyncAll = autoSyncAll; + } + + /// + /// Initializes a new instance of the class. + /// + public SlackManualConnectBody() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManualConnectBodyStoreName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManualConnectBodyStoreName.Json.g.cs new file mode 100644 index 0000000..1ad28f3 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManualConnectBodyStoreName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackManualConnectBodyStoreName + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackManualConnectBodyStoreName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackManualConnectBodyStoreName), + jsonSerializerContext) as global::Mixedbread.SlackManualConnectBodyStoreName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackManualConnectBodyStoreName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackManualConnectBodyStoreName? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackManualConnectBodyStoreName), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackManualConnectBodyStoreName; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManualConnectBodyStoreName.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManualConnectBodyStoreName.g.cs new file mode 100644 index 0000000..f3252d3 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackManualConnectBodyStoreName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Optional ingestion store name + /// + public sealed partial class SlackManualConnectBodyStoreName + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackCode.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackCode.Json.g.cs new file mode 100644 index 0000000..477368a --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackCode.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackOauthCallbackCode + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackOauthCallbackCode? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackOauthCallbackCode), + jsonSerializerContext) as global::Mixedbread.SlackOauthCallbackCode; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackOauthCallbackCode? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackOauthCallbackCode? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackOauthCallbackCode), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackOauthCallbackCode; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackCode.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackCode.g.cs new file mode 100644 index 0000000..5e6ccf9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackCode.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack OAuth authorization code + /// + public sealed partial class SlackOauthCallbackCode + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackError.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackError.Json.g.cs new file mode 100644 index 0000000..d5603ce --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackError.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackOauthCallbackError + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackOauthCallbackError? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackOauthCallbackError), + jsonSerializerContext) as global::Mixedbread.SlackOauthCallbackError; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackOauthCallbackError? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackOauthCallbackError? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackOauthCallbackError), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackOauthCallbackError; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackError.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackError.g.cs new file mode 100644 index 0000000..176206d --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackError.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Slack OAuth error + /// + public sealed partial class SlackOauthCallbackError + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackResponse.Json.g.cs new file mode 100644 index 0000000..5c3b0b5 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class SlackOauthCallbackResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.SlackOauthCallbackResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.SlackOauthCallbackResponse), + jsonSerializerContext) as global::Mixedbread.SlackOauthCallbackResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SlackOauthCallbackResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.SlackOauthCallbackResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.SlackOauthCallbackResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SlackOauthCallbackResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackResponse.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackResponse.g.cs new file mode 100644 index 0000000..adb2bd2 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SlackOauthCallbackResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// + /// + public sealed partial class SlackOauthCallbackResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem.Json.g.cs index dd8fbea..5e18958 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SourcesItem?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SourcesItem? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SourcesItem?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem2.Json.g.cs index ccc424e..50dbfa1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.SourcesItem2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.SourcesItem2?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.SourcesItem2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.SourcesItem2?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Store.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Store.Json.g.cs index 797e358..e06c328 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Store.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Store.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.Store; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.Store? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.Store; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Store.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Store.g.cs index 7541480..690d08c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Store.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Store.g.cs @@ -53,6 +53,12 @@ public sealed partial class Store [global::System.Text.Json.Serialization.JsonPropertyName("config")] public global::Mixedbread.StoreConfig2? Config { get; set; } + /// + /// Customer bucket backing this store's storage; null = platform default + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bucket_id")] + public string? BucketId { get; set; } + /// /// Counts of files in different states /// @@ -157,6 +163,9 @@ public sealed partial class Store /// /// Store-level configuration defaults /// + /// + /// Customer bucket backing this store's storage; null = platform default + /// /// /// Counts of files in different states /// @@ -198,6 +207,7 @@ public Store( string? license, object? metadata, global::Mixedbread.StoreConfig2? config, + string? bucketId, global::Mixedbread.FileCounts? fileCounts, global::Mixedbread.ExpiresAfter? expiresAfter, global::Mixedbread.StoreStatus? status, @@ -214,6 +224,7 @@ public Store( this.License = license; this.Metadata = metadata; this.Config = config; + this.BucketId = bucketId; this.FileCounts = fileCounts; this.ExpiresAfter = expiresAfter; this.Status = status; diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEvent.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEvent.Json.g.cs index a9e64fe..3eed6b6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEvent.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEvent.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreAgenticSearchEvent; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreAgenticSearchEvent? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreAgenticSearchEvent; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEvent.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEvent.g.cs index 30c561f..25e81f7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEvent.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEvent.g.cs @@ -7,7 +7,7 @@ namespace Mixedbread /// Represents an agentic search trace in a vector store.
/// Unlike StoreSearchEvent, this captures the full sequence of tool calls the
/// agent issued (name, arguments, result) so developers can inspect what the
- /// agent did, along with the token usage and cost. + /// agent did, along with the token usage. /// public sealed partial class StoreAgenticSearchEvent { @@ -56,8 +56,7 @@ public sealed partial class StoreAgenticSearchEvent /// Original query submitted by the user /// [global::System.Text.Json.Serialization.JsonPropertyName("query")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Query { get; set; } + public string? Query { get; set; } /// /// Custom instructions provided with the agentic search, if any @@ -86,7 +85,7 @@ public sealed partial class StoreAgenticSearchEvent public global::Mixedbread.AnyOf>, object>? Filters { get; set; } /// - /// Token usage and cost for LLM calls during the agentic search + /// Token usage for LLM calls during the agentic search /// [global::System.Text.Json.Serialization.JsonPropertyName("token_usage")] public global::Mixedbread.AgenticSearchTokenUsage? TokenUsage { get; set; } @@ -124,9 +123,6 @@ public sealed partial class StoreAgenticSearchEvent /// /// Time when the agentic search began /// - /// - /// Original query submitted by the user - /// /// /// Default Value: agentic_search /// @@ -134,6 +130,9 @@ public sealed partial class StoreAgenticSearchEvent /// Total wall-clock time of the agent loop
/// Default Value: PT0S /// + /// + /// Original query submitted by the user + /// /// /// Custom instructions provided with the agentic search, if any /// @@ -148,7 +147,7 @@ public sealed partial class StoreAgenticSearchEvent /// Metadata filters submitted with the search request /// /// - /// Token usage and cost for LLM calls during the agentic search + /// Token usage for LLM calls during the agentic search /// /// /// Ordered tool calls issued by the agent @@ -164,9 +163,9 @@ public StoreAgenticSearchEvent( global::System.DateTime createdAt, global::System.Collections.Generic.IList storeIds, global::System.DateTime startedAt, - string query, string? type, string? searchTime, + string? query, string? instructions, string? rankingStrategy, int? roundsExecuted, @@ -181,7 +180,7 @@ public StoreAgenticSearchEvent( this.StoreIds = storeIds ?? throw new global::System.ArgumentNullException(nameof(storeIds)); this.StartedAt = startedAt; this.SearchTime = searchTime; - this.Query = query ?? throw new global::System.ArgumentNullException(nameof(query)); + this.Query = query; this.Instructions = instructions; this.RankingStrategy = rankingStrategy; this.RoundsExecuted = roundsExecuted; diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventInstructions.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventInstructions.Json.g.cs index 7d174b6..03b72f5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventInstructions.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventInstructions.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreAgenticSearchEventInstructions; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreAgenticSearchEventInstructions? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreAgenticSearchEventInstructions; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventQuery.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventQuery.Json.g.cs new file mode 100644 index 0000000..576fbc1 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventQuery.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreAgenticSearchEventQuery + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreAgenticSearchEventQuery? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreAgenticSearchEventQuery), + jsonSerializerContext) as global::Mixedbread.StoreAgenticSearchEventQuery; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreAgenticSearchEventQuery? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreAgenticSearchEventQuery? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreAgenticSearchEventQuery), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreAgenticSearchEventQuery; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventQuery.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventQuery.g.cs new file mode 100644 index 0000000..e6a1f56 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventQuery.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Original query submitted by the user + /// + public sealed partial class StoreAgenticSearchEventQuery + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventRankingStrategy.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventRankingStrategy.Json.g.cs index a31b31d..3444a9e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventRankingStrategy.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreAgenticSearchEventRankingStrategy.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreAgenticSearchEventRankingStrategy; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreAgenticSearchEventRankingStrategy? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreAgenticSearchEventRankingStrategy; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreBucketId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreBucketId.Json.g.cs new file mode 100644 index 0000000..f6322e9 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreBucketId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreBucketId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreBucketId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreBucketId), + jsonSerializerContext) as global::Mixedbread.StoreBucketId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreBucketId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreBucketId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreBucketId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreBucketId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreBucketId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreBucketId.g.cs new file mode 100644 index 0000000..14b7d28 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreBucketId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Customer bucket backing this store's storage; null = platform default + /// + public sealed partial class StoreBucketId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkFilterParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkFilterParams.Json.g.cs index febc1f0..5ea547f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkFilterParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkFilterParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreChunkFilterParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreChunkFilterParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreChunkFilterParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.Json.g.cs index fd8031b..9a047e5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreChunkGrepParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreChunkGrepParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreChunkGrepParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.g.cs index 9d5e3dc..d6879c0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkGrepParams.g.cs @@ -5,8 +5,8 @@ namespace Mixedbread { /// /// Parameters for matching store chunks against a regular expression.
- /// Unlike semantic search, grep performs exact text matching — no embeddings, no
- /// reranking. It finds chunks whose literal text contains the pattern. + /// Unlike semantic search, grep runs your regex against the literal text of each
+ /// chunk. It finds chunks whose text matches the pattern. ///
public sealed partial class StoreChunkGrepParams { diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkSearchOptions.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkSearchOptions.Json.g.cs index d2c9b20..06f08a5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkSearchOptions.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkSearchOptions.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreChunkSearchOptions; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreChunkSearchOptions? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreChunkSearchOptions; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkSearchParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkSearchParams.Json.g.cs index f820b71..ab6e91a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkSearchParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreChunkSearchParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreChunkSearchParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreChunkSearchParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreChunkSearchParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreConfig.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreConfig.Json.g.cs index e64ff45..8f1304a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreConfig.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreConfig.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreConfig; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreConfig? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreConfig; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreConfig2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreConfig2.Json.g.cs index 488d1b2..8612cce 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreConfig2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreConfig2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreConfig2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreConfig2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreConfig2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCostInfo.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCostInfo.Json.g.cs index 35bf1f8..8158eb7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCostInfo.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCostInfo.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreCostInfo; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreCostInfo? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreCostInfo; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCostInfoCostPerMetric.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCostInfoCostPerMetric.Json.g.cs index b934a25..bf929a5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCostInfoCostPerMetric.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCostInfoCostPerMetric.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreCostInfoCostPerMetric; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreCostInfoCostPerMetric? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreCostInfoCostPerMetric; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCostListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCostListResponse.Json.g.cs index f05ba55..a8af27b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCostListResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCostListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreCostListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreCostListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreCostListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParams.Json.g.cs index 1388649..28003c0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreCreateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreCreateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreCreateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsConfig.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsConfig.Json.g.cs index 6e0ec13..a74e6d4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsConfig.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsConfig.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreCreateParamsConfig; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreCreateParamsConfig? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreCreateParamsConfig; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsDescription.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsDescription.Json.g.cs index 9afe61d..d2aac79 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsDescription.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsDescription.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreCreateParamsDescription; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreCreateParamsDescription? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreCreateParamsDescription; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsExpiresAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsExpiresAfter.Json.g.cs index a0b7182..5950cec 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsExpiresAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsExpiresAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreCreateParamsExpiresAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreCreateParamsExpiresAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreCreateParamsExpiresAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsFileIds.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsFileIds.Json.g.cs index f0b1f9b..b101a3f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsFileIds.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsFileIds.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreCreateParamsFileIds; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreCreateParamsFileIds? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreCreateParamsFileIds; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsLicense.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsLicense.Json.g.cs index 08c1457..c539a03 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsLicense.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsLicense.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreCreateParamsLicense; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreCreateParamsLicense? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreCreateParamsLicense; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsMetadata.Json.g.cs index 65b3361..41ee0ca 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreCreateParamsMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreCreateParamsMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreCreateParamsMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsMetadata2.Json.g.cs index 9f57fe9..2533063 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreCreateParamsMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreCreateParamsMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreCreateParamsMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsName.Json.g.cs index 2abbf63..ecdca81 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsName.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreCreateParamsName.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreCreateParamsName; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreCreateParamsName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreCreateParamsName; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreDeleted.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreDeleted.Json.g.cs index b48683e..8d910be 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreDeleted.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreDeleted.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreDeleted; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreDeleted? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreDeleted; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreDescription.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreDescription.Json.g.cs index 86644dc..0fdaa4b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreDescription.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreDescription.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreDescription; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreDescription? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreDescription; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramBucket.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramBucket.Json.g.cs index a2116ec..ced6ae4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramBucket.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramBucket.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreEventHistogramBucket; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreEventHistogramBucket? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreEventHistogramBucket; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramBucketType.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramBucketType.g.cs index 8150d0f..bae0384 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramBucketType.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramBucketType.g.cs @@ -163,6 +163,10 @@ public enum StoreEventHistogramBucketType /// /// /// + StoreGrep, + /// + /// + /// StoreQuestionAnswer, /// /// @@ -232,6 +236,7 @@ public static string ToValueString(this StoreEventHistogramBucketType value) StoreEventHistogramBucketType.StoreFileDeleted => "store.file.deleted", StoreEventHistogramBucketType.StoreFileSearch => "store.file.search", StoreEventHistogramBucketType.StoreFileUpdated => "store.file.updated", + StoreEventHistogramBucketType.StoreGrep => "store.grep", StoreEventHistogramBucketType.StoreQuestionAnswer => "store.question_answer", StoreEventHistogramBucketType.StoreReingestionCompleted => "store.reingestion.completed", StoreEventHistogramBucketType.StoreSearch => "store.search", @@ -285,6 +290,7 @@ public static string ToValueString(this StoreEventHistogramBucketType value) "store.file.deleted" => StoreEventHistogramBucketType.StoreFileDeleted, "store.file.search" => StoreEventHistogramBucketType.StoreFileSearch, "store.file.updated" => StoreEventHistogramBucketType.StoreFileUpdated, + "store.grep" => StoreEventHistogramBucketType.StoreGrep, "store.question_answer" => StoreEventHistogramBucketType.StoreQuestionAnswer, "store.reingestion.completed" => StoreEventHistogramBucketType.StoreReingestionCompleted, "store.search" => StoreEventHistogramBucketType.StoreSearch, diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParams.Json.g.cs index 2a98480..4447792 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreEventHistogramParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreEventHistogramParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreEventHistogramParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParams.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParams.g.cs index b861652..979266c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParams.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParams.g.cs @@ -28,7 +28,7 @@ public sealed partial class StoreEventHistogramParams public int? BucketSeconds { get; set; } /// - /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, and ingestion events. + /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, grep, and ingestion events. /// [global::System.Text.Json.Serialization.JsonPropertyName("event_types")] public global::System.Collections.Generic.IList? EventTypes { get; set; } @@ -53,7 +53,7 @@ public sealed partial class StoreEventHistogramParams /// Default Value: 7200 /// /// - /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, and ingestion events. + /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, grep, and ingestion events. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.Json.g.cs index 45495fc..359a376 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreEventHistogramParamsEventTypes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreEventHistogramParamsEventTypes? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreEventHistogramParamsEventTypes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.g.cs index bb0aab9..635c0c6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypes.g.cs @@ -4,7 +4,7 @@ namespace Mixedbread { /// - /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, and ingestion events. + /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, grep, and ingestion events. /// public sealed partial class StoreEventHistogramParamsEventTypes { diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypesVariant1Item.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypesVariant1Item.g.cs index 98d175e..0fd58c8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypesVariant1Item.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramParamsEventTypesVariant1Item.g.cs @@ -15,6 +15,10 @@ public enum StoreEventHistogramParamsEventTypesVariant1Item /// /// /// + Grep, + /// + /// + /// Ingestion, /// /// @@ -35,6 +39,7 @@ public static string ToValueString(this StoreEventHistogramParamsEventTypesVaria return value switch { StoreEventHistogramParamsEventTypesVariant1Item.AgenticSearch => "agentic_search", + StoreEventHistogramParamsEventTypesVariant1Item.Grep => "grep", StoreEventHistogramParamsEventTypesVariant1Item.Ingestion => "ingestion", StoreEventHistogramParamsEventTypesVariant1Item.Search => "search", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -48,6 +53,7 @@ public static string ToValueString(this StoreEventHistogramParamsEventTypesVaria return value switch { "agentic_search" => StoreEventHistogramParamsEventTypesVariant1Item.AgenticSearch, + "grep" => StoreEventHistogramParamsEventTypesVariant1Item.Grep, "ingestion" => StoreEventHistogramParamsEventTypesVariant1Item.Ingestion, "search" => StoreEventHistogramParamsEventTypesVariant1Item.Search, _ => null, diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramResponse.Json.g.cs index 2f15838..170599b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventHistogramResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreEventHistogramResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreEventHistogramResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreEventHistogramResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventListResponse.Json.g.cs index 57f32b5..c2f08fc 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventListResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreEventListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreEventListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreEventListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventListResponseDataItemDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventListResponseDataItemDiscriminator.Json.g.cs index e4ae37f..6791aef 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventListResponseDataItemDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventListResponseDataItemDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreEventListResponseDataItemDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreEventListResponseDataItemDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreEventListResponseDataItemDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventListResponseDataItemDiscriminatorType.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventListResponseDataItemDiscriminatorType.g.cs index e35aa97..5a05dd6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventListResponseDataItemDiscriminatorType.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreEventListResponseDataItemDiscriminatorType.g.cs @@ -15,6 +15,10 @@ public enum StoreEventListResponseDataItemDiscriminatorType /// /// /// + Grep, + /// + /// + /// Ingestion, /// /// @@ -35,6 +39,7 @@ public static string ToValueString(this StoreEventListResponseDataItemDiscrimina return value switch { StoreEventListResponseDataItemDiscriminatorType.AgenticSearch => "agentic_search", + StoreEventListResponseDataItemDiscriminatorType.Grep => "grep", StoreEventListResponseDataItemDiscriminatorType.Ingestion => "ingestion", StoreEventListResponseDataItemDiscriminatorType.Search => "search", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -48,6 +53,7 @@ public static string ToValueString(this StoreEventListResponseDataItemDiscrimina return value switch { "agentic_search" => StoreEventListResponseDataItemDiscriminatorType.AgenticSearch, + "grep" => StoreEventListResponseDataItemDiscriminatorType.Grep, "ingestion" => StoreEventListResponseDataItemDiscriminatorType.Ingestion, "search" => StoreEventListResponseDataItemDiscriminatorType.Search, _ => null, diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreExpiresAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreExpiresAfter.Json.g.cs index d64b923..a5ceb8c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreExpiresAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreExpiresAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreExpiresAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreExpiresAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreExpiresAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreExpiresAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreExpiresAt.Json.g.cs index 29fd76d..76df51b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreExpiresAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreExpiresAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreExpiresAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreExpiresAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreExpiresAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFile.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFile.Json.g.cs index 100a8d9..5c2e04a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFile.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFile.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFile; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFile? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFile; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileChunks.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileChunks.Json.g.cs index 61dae2b..59048b6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileChunks.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileChunks.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileChunks; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileChunks? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileChunks; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileChunksVariant1ItemDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileChunksVariant1ItemDiscriminator.Json.g.cs index fdf53ae..664a745 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileChunksVariant1ItemDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileChunksVariant1ItemDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileChunksVariant1ItemDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileChunksVariant1ItemDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileChunksVariant1ItemDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileConfig.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileConfig.Json.g.cs index e57d960..66960a7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileConfig.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileConfig.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileConfig; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileConfig? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileConfig; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileConfig2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileConfig2.Json.g.cs index 613bec3..544bc9d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileConfig2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileConfig2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileConfig2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileConfig2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileConfig2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileDeleted.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileDeleted.Json.g.cs index 116383f..b47c073 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileDeleted.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileDeleted.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileDeleted; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileDeleted? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileDeleted; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileExternalId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileExternalId.Json.g.cs index 5f70e2d..a3e5934 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileExternalId.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileExternalId.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileExternalId; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileExternalId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileExternalId; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileLastError.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileLastError.Json.g.cs index 8e7f155..1a83426 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileLastError.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileLastError.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileLastError; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileLastError? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileLastError; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileLastError2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileLastError2.Json.g.cs index 4ca3911..408b1ad 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileLastError2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileLastError2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileLastError2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileLastError2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileLastError2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileListResponse.Json.g.cs index 28cb749..ef7d224 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileListResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadata.Json.g.cs index 3fda444..89a17a8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadata2.Json.g.cs index b202fc2..23a7be2 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadataUpdateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadataUpdateParams.Json.g.cs index d5858ec..7b6b8ca 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadataUpdateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadataUpdateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileMetadataUpdateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileMetadataUpdateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileMetadataUpdateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadataUpdateParamsMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadataUpdateParamsMetadata.Json.g.cs index 7de0ee2..2ff14a8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadataUpdateParamsMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadataUpdateParamsMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileMetadataUpdateParamsMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileMetadataUpdateParamsMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileMetadataUpdateParamsMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadataUpdateParamsMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadataUpdateParamsMetadata2.Json.g.cs index 2a4f31e..4361821 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadataUpdateParamsMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileMetadataUpdateParamsMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileMetadataUpdateParamsMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileMetadataUpdateParamsMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileMetadataUpdateParamsMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileUsageBytes.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileUsageBytes.Json.g.cs index 9a91f27..b2592e9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileUsageBytes.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileUsageBytes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileUsageBytes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileUsageBytes? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileUsageBytes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileUsageTokens.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileUsageTokens.Json.g.cs index 1a87a5b..48cc9a4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileUsageTokens.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileUsageTokens.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileUsageTokens; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileUsageTokens? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileUsageTokens; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileVersion.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileVersion.Json.g.cs index d7de3d4..3974381 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileVersion.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreFileVersion.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreFileVersion; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreFileVersion? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreFileVersion; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepEvent.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepEvent.Json.g.cs new file mode 100644 index 0000000..f4a36ed --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepEvent.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreGrepEvent + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreGrepEvent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreGrepEvent), + jsonSerializerContext) as global::Mixedbread.StoreGrepEvent; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreGrepEvent? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreGrepEvent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreGrepEvent), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreGrepEvent; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepEvent.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepEvent.g.cs new file mode 100644 index 0000000..765b8ba --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepEvent.g.cs @@ -0,0 +1,144 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Represents a grep event in a vector store.
+ /// Grep matches chunks against a regular expression rather than running a
+ /// semantic search, so it has no ranking, rewrite, or rerank fields. + ///
+ public sealed partial class StoreGrepEvent + { + /// + /// Unique identifier for the event + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Timestamp when the event was created + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// Default Value: grep + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// IDs of the vector stores grepped + /// + [global::System.Text.Json.Serialization.JsonPropertyName("store_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList StoreIds { get; set; } + + /// + /// Regular expression matched against chunk text + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pattern")] + public string? Pattern { get; set; } + + /// + /// Whether the pattern was matched case-sensitively
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("case_sensitive")] + public bool? CaseSensitive { get; set; } + + /// + /// Time taken to grep the vector store
+ /// Default Value: PT0S + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("search_time")] + public string? SearchTime { get; set; } + + /// + /// Metadata filters submitted with the grep request + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filters")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Mixedbread.JsonConverters.AnyOfJsonConverter>, object>))] + public global::Mixedbread.AnyOf>, object>? Filters { get; set; } + + /// + /// Chunks that matched the pattern + /// + [global::System.Text.Json.Serialization.JsonPropertyName("results")] + public global::System.Collections.Generic.IList? Results { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Unique identifier for the event + /// + /// + /// Timestamp when the event was created + /// + /// + /// IDs of the vector stores grepped + /// + /// + /// Default Value: grep + /// + /// + /// Regular expression matched against chunk text + /// + /// + /// Whether the pattern was matched case-sensitively
+ /// Default Value: false + /// + /// + /// Time taken to grep the vector store
+ /// Default Value: PT0S + /// + /// + /// Metadata filters submitted with the grep request + /// + /// + /// Chunks that matched the pattern + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public StoreGrepEvent( + global::System.Guid id, + global::System.DateTime createdAt, + global::System.Collections.Generic.IList storeIds, + string? type, + string? pattern, + bool? caseSensitive, + string? searchTime, + global::Mixedbread.AnyOf>, object>? filters, + global::System.Collections.Generic.IList? results) + { + this.Id = id; + this.CreatedAt = createdAt; + this.Type = type; + this.StoreIds = storeIds ?? throw new global::System.ArgumentNullException(nameof(storeIds)); + this.Pattern = pattern; + this.CaseSensitive = caseSensitive; + this.SearchTime = searchTime; + this.Filters = filters; + this.Results = results; + } + + /// + /// Initializes a new instance of the class. + /// + public StoreGrepEvent() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepEventPattern.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepEventPattern.Json.g.cs new file mode 100644 index 0000000..89a2603 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepEventPattern.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreGrepEventPattern + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreGrepEventPattern? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreGrepEventPattern), + jsonSerializerContext) as global::Mixedbread.StoreGrepEventPattern; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreGrepEventPattern? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreGrepEventPattern? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreGrepEventPattern), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreGrepEventPattern; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepEventPattern.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepEventPattern.g.cs new file mode 100644 index 0000000..b3d7e9c --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepEventPattern.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Regular expression matched against chunk text + /// + public sealed partial class StoreGrepEventPattern + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponse.Json.g.cs index 8950690..7d8a293 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreGrepResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreGrepResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreGrepResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminator.Json.g.cs index 10866d9..184dfe5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreGrepResponseDataItemDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreGrepResponseDataItemDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreGrepResponseDataItemDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreGrepResponseDataItemDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreIngestionEvent.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreIngestionEvent.Json.g.cs index beb3518..c2becfc 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreIngestionEvent.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreIngestionEvent.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreIngestionEvent; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreIngestionEvent? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreIngestionEvent; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreIngestionEventFilename.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreIngestionEventFilename.Json.g.cs index 17ecab7..6d098b7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreIngestionEventFilename.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreIngestionEventFilename.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreIngestionEventFilename; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreIngestionEventFilename? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreIngestionEventFilename; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreLastActiveAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreLastActiveAt.Json.g.cs index 2edb623..728d3ad 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreLastActiveAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreLastActiveAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreLastActiveAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreLastActiveAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreLastActiveAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreLicense.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreLicense.Json.g.cs index a54b220..bcddae7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreLicense.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreLicense.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreLicense; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreLicense? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreLicense; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreListChunksResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreListChunksResponse.Json.g.cs index 50830b1..9592622 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreListChunksResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreListChunksResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreListChunksResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreListChunksResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreListChunksResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreListChunksResponseDataItemDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreListChunksResponseDataItemDiscriminator.Json.g.cs index b3a31cf..28dc1d5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreListChunksResponseDataItemDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreListChunksResponseDataItemDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreListChunksResponseDataItemDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreListChunksResponseDataItemDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreListChunksResponseDataItemDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreListResponse.Json.g.cs index d6a9c13..7a2e4d5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreListResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreMetadata.Json.g.cs index 662dc8e..7b96f2a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreMetadata2.Json.g.cs index aa2fc5f..df6e17b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAParams.Json.g.cs index 8ea4dc1..d347a7e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreQAParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreQAParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreQAParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAParamsInstructions.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAParamsInstructions.Json.g.cs index f044b68..26509db 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAParamsInstructions.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAParamsInstructions.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreQAParamsInstructions; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreQAParamsInstructions? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreQAParamsInstructions; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAResults.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAResults.Json.g.cs index 2300ea9..48661b5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAResults.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAResults.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreQAResults; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreQAResults? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreQAResults; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAResultsSourceDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAResultsSourceDiscriminator.Json.g.cs index 3eb379e..3e055c3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAResultsSourceDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreQAResultsSourceDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreQAResultsSourceDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreQAResultsSourceDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreQAResultsSourceDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEvent.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEvent.Json.g.cs index 756e74d..52feb51 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEvent.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEvent.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreSearchEvent; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEvent? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEvent; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEvent.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEvent.g.cs index 44e1614..e1daee5 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEvent.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEvent.g.cs @@ -46,8 +46,7 @@ public sealed partial class StoreSearchEvent /// Query used to search the vector store ///
[global::System.Text.Json.Serialization.JsonPropertyName("query")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Query { get; set; } + public string? Query { get; set; } /// /// Rewritten query if query rewriting was enabled @@ -118,9 +117,6 @@ public sealed partial class StoreSearchEvent /// /// IDs of the vector stores searched /// - /// - /// Query used to search the vector store - /// /// /// Default Value: search /// @@ -128,6 +124,9 @@ public sealed partial class StoreSearchEvent /// Time taken to search the vector store
/// Default Value: PT0S /// + /// + /// Query used to search the vector store + /// /// /// Rewritten query if query rewriting was enabled /// @@ -160,9 +159,9 @@ public StoreSearchEvent( global::System.Guid id, global::System.DateTime createdAt, global::System.Collections.Generic.IList storeIds, - string query, string? type, string? searchTime, + string? query, string? rewrittenQuery, global::Mixedbread.AnyOf>, object>? rewrittenFilters, string? rewriteRankBy, @@ -177,7 +176,7 @@ public StoreSearchEvent( this.Type = type; this.StoreIds = storeIds ?? throw new global::System.ArgumentNullException(nameof(storeIds)); this.SearchTime = searchTime; - this.Query = query ?? throw new global::System.ArgumentNullException(nameof(query)); + this.Query = query; this.RewrittenQuery = rewrittenQuery; this.RewrittenFilters = rewrittenFilters; this.RewriteRankBy = rewriteRankBy; diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventQuery.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventQuery.Json.g.cs new file mode 100644 index 0000000..f418f24 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventQuery.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreSearchEventQuery + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventQuery? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreSearchEventQuery), + jsonSerializerContext) as global::Mixedbread.StoreSearchEventQuery; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventQuery? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreSearchEventQuery? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreSearchEventQuery), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEventQuery; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventQuery.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventQuery.g.cs new file mode 100644 index 0000000..7d7f1db --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventQuery.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// Query used to search the vector store + /// + public sealed partial class StoreSearchEventQuery + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResult.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResult.Json.g.cs index 518c25d..d746c61 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResult.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResult.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreSearchEventResult; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventResult? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEventResult; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResult.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResult.g.cs index b12ded8..0968d66 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResult.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResult.g.cs @@ -19,8 +19,7 @@ public sealed partial class StoreSearchEventResult /// ID of the file the chunk belongs to ///
[global::System.Text.Json.Serialization.JsonPropertyName("file_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FileId { get; set; } + public string? FileId { get; set; } /// /// Name of the file the chunk belongs to @@ -66,15 +65,15 @@ public sealed partial class StoreSearchEventResult /// /// ID of the store the chunk belongs to /// - /// - /// ID of the file the chunk belongs to - /// /// /// Index of the chunk within its file /// /// /// Final score assigned to the chunk /// + /// + /// ID of the file the chunk belongs to + /// /// /// Name of the file the chunk belongs to /// @@ -89,15 +88,15 @@ public sealed partial class StoreSearchEventResult #endif public StoreSearchEventResult( string storeId, - string fileId, int chunkIndex, double score, + string? fileId, string? filename, int? firstStagePosition, global::Mixedbread.StoreSearchEventResultFirstStageSource2? firstStageSource) { this.StoreId = storeId ?? throw new global::System.ArgumentNullException(nameof(storeId)); - this.FileId = fileId ?? throw new global::System.ArgumentNullException(nameof(fileId)); + this.FileId = fileId; this.Filename = filename; this.ChunkIndex = chunkIndex; this.Score = score; diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFileId.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFileId.Json.g.cs new file mode 100644 index 0000000..6b77c71 --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFileId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Mixedbread +{ + public sealed partial class StoreSearchEventResultFileId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventResultFileId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Mixedbread.StoreSearchEventResultFileId), + jsonSerializerContext) as global::Mixedbread.StoreSearchEventResultFileId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventResultFileId? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Mixedbread.StoreSearchEventResultFileId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Mixedbread.StoreSearchEventResultFileId), + jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEventResultFileId; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFileId.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFileId.g.cs new file mode 100644 index 0000000..702121f --- /dev/null +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFileId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Mixedbread +{ + /// + /// ID of the file the chunk belongs to + /// + public sealed partial class StoreSearchEventResultFileId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFilename.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFilename.Json.g.cs index 4ec186f..364aa44 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFilename.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFilename.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreSearchEventResultFilename; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventResultFilename? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEventResultFilename; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFirstStagePosition.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFirstStagePosition.Json.g.cs index 10c8781..bf09db9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFirstStagePosition.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFirstStagePosition.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreSearchEventResultFirstStagePosition; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventResultFirstStagePosition? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEventResultFirstStagePosition; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFirstStageSource.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFirstStageSource.Json.g.cs index 731e2b6..1ba7640 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFirstStageSource.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventResultFirstStageSource.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreSearchEventResultFirstStageSource; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventResultFirstStageSource? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEventResultFirstStageSource; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankBy.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankBy.Json.g.cs index b508583..f0bbf0a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankBy.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankBy.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreSearchEventRewriteRankBy; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventRewriteRankBy? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEventRewriteRankBy; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection.Json.g.cs index f97fdd6..6f47774 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankDirection.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreSearchEventRewriteRankDirection; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventRewriteRankDirection? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEventRewriteRankDirection; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode.Json.g.cs index f2eaaf3..2c8f7f0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewriteRankMode.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreSearchEventRewriteRankMode; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventRewriteRankMode? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEventRewriteRankMode; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewrittenQuery.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewrittenQuery.Json.g.cs index 4aa95e8..25ac649 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewrittenQuery.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchEventRewrittenQuery.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreSearchEventRewrittenQuery; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchEventRewrittenQuery? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchEventRewrittenQuery; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchResponse.Json.g.cs index d1b0ade..4410a86 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreSearchResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchResponseDataItemDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchResponseDataItemDiscriminator.Json.g.cs index b31428d..e02af67 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchResponseDataItemDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreSearchResponseDataItemDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreSearchResponseDataItemDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreSearchResponseDataItemDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreSearchResponseDataItemDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParams.Json.g.cs index f953666..4c05e48 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreUpdateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreUpdateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreUpdateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsDescription.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsDescription.Json.g.cs index 8ebdb93..2bdb34b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsDescription.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsDescription.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreUpdateParamsDescription; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreUpdateParamsDescription? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreUpdateParamsDescription; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsExpiresAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsExpiresAfter.Json.g.cs index a1d741f..061a28a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsExpiresAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsExpiresAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreUpdateParamsExpiresAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreUpdateParamsExpiresAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreUpdateParamsExpiresAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsIsPublic.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsIsPublic.Json.g.cs index 7d0e597..d579265 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsIsPublic.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsIsPublic.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreUpdateParamsIsPublic; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreUpdateParamsIsPublic? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreUpdateParamsIsPublic; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsLicense.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsLicense.Json.g.cs index 2900058..af62cac 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsLicense.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsLicense.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreUpdateParamsLicense; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreUpdateParamsLicense? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreUpdateParamsLicense; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsMetadata.Json.g.cs index 737c8e7..bd6e12d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreUpdateParamsMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreUpdateParamsMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreUpdateParamsMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsMetadata2.Json.g.cs index ee80a17..46bac07 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreUpdateParamsMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreUpdateParamsMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreUpdateParamsMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsName.Json.g.cs index 248e478..ba1be3a 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsName.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.StoreUpdateParamsName.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.StoreUpdateParamsName; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.StoreUpdateParamsName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.StoreUpdateParamsName; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadata.Json.g.cs index e2da6ae..8c04457 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.TextChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.TextChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.TextChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataFileExtension.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataFileExtension.Json.g.cs index ff09ad9..191c09b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataFileExtension.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataFileExtension.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.TextChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.TextChunkGeneratedMetadataFileExtension? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.TextChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataFileSize.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataFileSize.Json.g.cs index 67d809e..5910cc9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataFileSize.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataFileSize.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.TextChunkGeneratedMetadataFileSize; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.TextChunkGeneratedMetadataFileSize? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.TextChunkGeneratedMetadataFileSize; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataLanguage.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataLanguage.Json.g.cs index 78338dd..3d3604e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataLanguage.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataLanguage.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.TextChunkGeneratedMetadataLanguage; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.TextChunkGeneratedMetadataLanguage? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.TextChunkGeneratedMetadataLanguage; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataWordCount.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataWordCount.Json.g.cs index af2ced3..4c9fbe6 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataWordCount.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextChunkGeneratedMetadataWordCount.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.TextChunkGeneratedMetadataWordCount; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.TextChunkGeneratedMetadataWordCount? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.TextChunkGeneratedMetadataWordCount; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInput.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInput.Json.g.cs index 63aad2d..9951a46 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInput.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.TextInput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.TextInput? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.TextInput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunk.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunk.Json.g.cs index cb784cb..b336e96 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunk.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunk.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.TextInputChunk; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.TextInputChunk? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.TextInputChunk; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkContext.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkContext.Json.g.cs index 0ddb5bb..3e05d48 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkContext.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkContext.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.TextInputChunkContext; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.TextInputChunkContext? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.TextInputChunkContext; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkGeneratedMetadata.Json.g.cs index 1241868..34a82fd 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.TextInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.TextInputChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.TextInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs index 64e3b1b..3316cfe 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.TextInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.TextInputChunkGeneratedMetadataVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.TextInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkModel.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkModel.Json.g.cs index a03a6c5..18c7bab 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkModel.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkModel.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.TextInputChunkModel; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.TextInputChunkModel? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.TextInputChunkModel; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkSummary.Json.g.cs index dac255c..9d68213 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.TextInputChunkSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.TextInputChunkSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.TextInputChunkSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkText.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkText.Json.g.cs index 5af4cfc..389dd81 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkText.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.TextInputChunkText.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.TextInputChunkText; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.TextInputChunkText? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.TextInputChunkText; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.Usage.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.Usage.Json.g.cs index 7d793bb..a239701 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.Usage.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.Usage.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.Usage; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.Usage? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.Usage; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.UsageCompletionTokens.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.UsageCompletionTokens.Json.g.cs index 458d953..30640b8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.UsageCompletionTokens.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.UsageCompletionTokens.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.UsageCompletionTokens; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.UsageCompletionTokens? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.UsageCompletionTokens; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.UsageInfo.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.UsageInfo.Json.g.cs index e02ec4b..ed052ba 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.UsageInfo.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.UsageInfo.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.UsageInfo; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.UsageInfo? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.UsageInfo; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.UsageInfoLimit.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.UsageInfoLimit.Json.g.cs index 9593627..82cdae8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.UsageInfoLimit.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.UsageInfoLimit.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.UsageInfoLimit; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.UsageInfoLimit? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.UsageInfoLimit; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidatedJsonSchema.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidatedJsonSchema.Json.g.cs index 6d7f415..97f258f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidatedJsonSchema.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidatedJsonSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ValidatedJsonSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ValidatedJsonSchema? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ValidatedJsonSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidatedJsonSchemaJsonSchema.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidatedJsonSchemaJsonSchema.Json.g.cs index 4a5b85f..5c67744 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidatedJsonSchemaJsonSchema.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidatedJsonSchemaJsonSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ValidatedJsonSchemaJsonSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ValidatedJsonSchemaJsonSchema? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ValidatedJsonSchemaJsonSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidationError.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidationError.Json.g.cs index f2d5ca6..92289b4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidationError.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidationError.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ValidationError; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ValidationError? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ValidationError; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidationErrorCtx.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidationErrorCtx.Json.g.cs index 0381341..a849679 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidationErrorCtx.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidationErrorCtx.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ValidationErrorCtx; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ValidationErrorCtx? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ValidationErrorCtx; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidationErrorInput.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidationErrorInput.Json.g.cs index 18dcd8f..d43e2e7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidationErrorInput.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.ValidationErrorInput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.ValidationErrorInput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.ValidationErrorInput? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.ValidationErrorInput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStore.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStore.Json.g.cs index bfd9088..306d584 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStore.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStore.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStore; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStore? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStore; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreChunkSearchOptions.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreChunkSearchOptions.Json.g.cs index b19d1ad..7a44ecf 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreChunkSearchOptions.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreChunkSearchOptions.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreChunkSearchOptions; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreChunkSearchOptions? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreChunkSearchOptions; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreChunkSearchParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreChunkSearchParams.Json.g.cs index 96ba17b..31f2188 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreChunkSearchParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreChunkSearchParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreChunkSearchParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreChunkSearchParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreChunkSearchParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParams.Json.g.cs index 3ddd46a..dbf6c41 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreCreateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreCreateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreCreateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsDescription.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsDescription.Json.g.cs index 2815766..cecf241 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsDescription.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsDescription.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreCreateParamsDescription; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreCreateParamsDescription? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreCreateParamsDescription; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsExpiresAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsExpiresAfter.Json.g.cs index 0d44dc2..22354ee 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsExpiresAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsExpiresAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreCreateParamsExpiresAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreCreateParamsExpiresAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreCreateParamsExpiresAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsFileIds.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsFileIds.Json.g.cs index 37ba420..8e5e2ed 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsFileIds.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsFileIds.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreCreateParamsFileIds; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreCreateParamsFileIds? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreCreateParamsFileIds; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsMetadata.Json.g.cs index 1f029a3..ddf2788 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreCreateParamsMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreCreateParamsMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreCreateParamsMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsMetadata2.Json.g.cs index a3bc95c..3a44d80 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreCreateParamsMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreCreateParamsMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreCreateParamsMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsName.Json.g.cs index 8928e25..fa1c040 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsName.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreCreateParamsName.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreCreateParamsName; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreCreateParamsName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreCreateParamsName; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreDeleted.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreDeleted.Json.g.cs index ca4cc19..dda8769 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreDeleted.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreDeleted.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreDeleted; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreDeleted? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreDeleted; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreDescription.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreDescription.Json.g.cs index c34b034..4c928b4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreDescription.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreDescription.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreDescription; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreDescription? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreDescription; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreExpiresAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreExpiresAfter.Json.g.cs index ea537ec..3ea3f76 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreExpiresAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreExpiresAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreExpiresAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreExpiresAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreExpiresAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreExpiresAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreExpiresAt.Json.g.cs index 1d006b5..5efdbf4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreExpiresAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreExpiresAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreExpiresAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreExpiresAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreExpiresAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFile.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFile.Json.g.cs index 3dff5ad..389bb01 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFile.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFile.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreFile; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreFile? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreFile; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileChunks.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileChunks.Json.g.cs index fb5a642..34f355e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileChunks.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileChunks.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreFileChunks; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreFileChunks? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreFileChunks; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileChunksVariant1ItemDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileChunksVariant1ItemDiscriminator.Json.g.cs index 45f59a5..f43bfe1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileChunksVariant1ItemDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileChunksVariant1ItemDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileDeleted.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileDeleted.Json.g.cs index 52e2700..5975eec 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileDeleted.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileDeleted.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreFileDeleted; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreFileDeleted? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreFileDeleted; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileLastError.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileLastError.Json.g.cs index e864743..f1ab500 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileLastError.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileLastError.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreFileLastError; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreFileLastError? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreFileLastError; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileLastError2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileLastError2.Json.g.cs index 8dee542..78ef87d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileLastError2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileLastError2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreFileLastError2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreFileLastError2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreFileLastError2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileListResponse.Json.g.cs index d1f20b2..0d984b9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileListResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreFileListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreFileListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreFileListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileMetadata.Json.g.cs index a0ce54f..a3d0d1c 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreFileMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreFileMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreFileMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileMetadata2.Json.g.cs index b7fab82..695010b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreFileMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreFileMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreFileMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileUsageBytes.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileUsageBytes.Json.g.cs index 93c404f..c5362c8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileUsageBytes.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileUsageBytes.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreFileUsageBytes; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreFileUsageBytes? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreFileUsageBytes; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileVersion.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileVersion.Json.g.cs index 533e18e..753497d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileVersion.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreFileVersion.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreFileVersion; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreFileVersion? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreFileVersion; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreLastActiveAt.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreLastActiveAt.Json.g.cs index 7c8aeec..5614b32 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreLastActiveAt.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreLastActiveAt.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreLastActiveAt; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreLastActiveAt? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreLastActiveAt; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreListResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreListResponse.Json.g.cs index 7b4fb29..c714479 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreListResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreMetadata.Json.g.cs index 266d528..ee03afa 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreMetadata2.Json.g.cs index c1865eb..4f0418d 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAParams.Json.g.cs index eac7b75..4c9fca8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreQAParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreQAParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreQAParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAResults.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAResults.Json.g.cs index 1704deb..6436a7e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAResults.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAResults.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreQAResults; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreQAResults? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreQAResults; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAResultsSourceDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAResultsSourceDiscriminator.Json.g.cs index 9f5f2ee..2c75f0e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAResultsSourceDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreQAResultsSourceDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreQAResultsSourceDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreQAResultsSourceDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreQAResultsSourceDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreSearchResponse.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreSearchResponse.Json.g.cs index d797193..6ce0324 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreSearchResponse.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreSearchResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreSearchResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreSearchResponse? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreSearchResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreSearchResponseDataItemDiscriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreSearchResponseDataItemDiscriminator.Json.g.cs index ff35d00..74e47a4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreSearchResponseDataItemDiscriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreSearchResponseDataItemDiscriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParams.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParams.Json.g.cs index a96f4e7..ca31fba 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParams.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParams.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreUpdateParams; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreUpdateParams? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreUpdateParams; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsDescription.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsDescription.Json.g.cs index 07fcb13..914c007 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsDescription.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsDescription.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreUpdateParamsDescription; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreUpdateParamsDescription? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreUpdateParamsDescription; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsExpiresAfter.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsExpiresAfter.Json.g.cs index bafc64b..cba0dd4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsExpiresAfter.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsExpiresAfter.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreUpdateParamsExpiresAfter; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreUpdateParamsExpiresAfter? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreUpdateParamsExpiresAfter; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsIsPublic.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsIsPublic.Json.g.cs index c12f887..d57d925 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsIsPublic.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsIsPublic.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreUpdateParamsIsPublic; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreUpdateParamsIsPublic? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreUpdateParamsIsPublic; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsMetadata.Json.g.cs index aa65193..cbc91d9 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreUpdateParamsMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreUpdateParamsMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreUpdateParamsMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsMetadata2.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsMetadata2.Json.g.cs index 424d473..ef12b4b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsMetadata2.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsMetadata2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreUpdateParamsMetadata2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreUpdateParamsMetadata2? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreUpdateParamsMetadata2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsName.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsName.Json.g.cs index 804d5dd..ed99450 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsName.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VectorStoreUpdateParamsName.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VectorStoreUpdateParamsName; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VectorStoreUpdateParamsName? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VectorStoreUpdateParamsName; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadata.Json.g.cs index 5814a82..f1c7114 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataBpm.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataBpm.Json.g.cs index 5038383..6cf0cf4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataBpm.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataBpm.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoChunkGeneratedMetadataBpm; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoChunkGeneratedMetadataBpm? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoChunkGeneratedMetadataBpm; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFileExtension.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFileExtension.Json.g.cs index 811969f..a7bb9c8 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFileExtension.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFileExtension.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoChunkGeneratedMetadataFileExtension? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoChunkGeneratedMetadataFileExtension; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFileSize.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFileSize.Json.g.cs index cf4c825..ad95e5f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFileSize.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFileSize.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoChunkGeneratedMetadataFileSize; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoChunkGeneratedMetadataFileSize? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoChunkGeneratedMetadataFileSize; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFps.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFps.Json.g.cs index 1ec3d15..5adc7c4 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFps.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFps.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoChunkGeneratedMetadataFps; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoChunkGeneratedMetadataFps? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoChunkGeneratedMetadataFps; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFrameCount.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFrameCount.Json.g.cs index 997f60c..ee64624 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFrameCount.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataFrameCount.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoChunkGeneratedMetadataFrameCount; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoChunkGeneratedMetadataFrameCount? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoChunkGeneratedMetadataFrameCount; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataHeight.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataHeight.Json.g.cs index 994f267..3109c88 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataHeight.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataHeight.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoChunkGeneratedMetadataHeight; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoChunkGeneratedMetadataHeight? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoChunkGeneratedMetadataHeight; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataTotalDurationSeconds.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataTotalDurationSeconds.Json.g.cs index 4f521d3..710f406 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataTotalDurationSeconds.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataTotalDurationSeconds.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoChunkGeneratedMetadataTotalDurationSeconds; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoChunkGeneratedMetadataTotalDurationSeconds? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoChunkGeneratedMetadataTotalDurationSeconds; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataWidth.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataWidth.Json.g.cs index 154b41d..bd3578e 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataWidth.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoChunkGeneratedMetadataWidth.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoChunkGeneratedMetadataWidth; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoChunkGeneratedMetadataWidth? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoChunkGeneratedMetadataWidth; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrl.Json.g.cs index 0a68431..8bc6170 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrl.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrl.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoUrl; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoUrl; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunk.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunk.Json.g.cs index 900cce6..adf5244 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunk.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunk.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoUrlInputChunk; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoUrlInputChunk? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoUrlInputChunk; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkGeneratedMetadata.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkGeneratedMetadata.Json.g.cs index 1e8a8c4..cee0644 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkGeneratedMetadata.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkGeneratedMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoUrlInputChunkGeneratedMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoUrlInputChunkGeneratedMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs index f1c878b..ab3e6c0 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkGeneratedMetadataVariant1Discriminator.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoUrlInputChunkGeneratedMetadataVariant1Discriminator? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoUrlInputChunkGeneratedMetadataVariant1Discriminator; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkModel.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkModel.Json.g.cs index 154535c..1225ca1 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkModel.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkModel.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoUrlInputChunkModel; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoUrlInputChunkModel? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoUrlInputChunkModel; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkSummary.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkSummary.Json.g.cs index 45f5989..0c72f5f 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkSummary.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkSummary.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoUrlInputChunkSummary; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoUrlInputChunkSummary? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoUrlInputChunkSummary; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkTranscription.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkTranscription.Json.g.cs index 4bf73dc..31d4470 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkTranscription.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkTranscription.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoUrlInputChunkTranscription; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoUrlInputChunkTranscription? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoUrlInputChunkTranscription; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkVideoUrl.Json.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkVideoUrl.Json.g.cs index 8d2f0de..aeefe7b 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkVideoUrl.Json.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.VideoUrlInputChunkVideoUrl.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Mixedbread.VideoUrlInputChunkVideoUrl; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Mixedbread.VideoUrlInputChunkVideoUrl? FromJson( + string json) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Mixedbread.VideoUrlInputChunkVideoUrl; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Mixedbread.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs index a2b35b4..d1924d3 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs @@ -541,7 +541,7 @@ partial void ProcessGetStoreEventHistogramResponseContent( /// Default Value: 7200 /// /// - /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, and ingestion events. + /// Restrict the histogram to these event types. When omitted, includes search, agentic_search, grep, and ingestion events. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GrepStoreChunks.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GrepStoreChunks.g.cs index f7535bc..2699782 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GrepStoreChunks.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GrepStoreChunks.g.cs @@ -67,9 +67,9 @@ partial void ProcessGrepStoreChunksResponseContent( /// /// Match store chunks against a regular expression
/// Match store chunks against a regular expression.
- /// Unlike `/stores/search`, this performs exact text matching — no embeddings, no
- /// semantic similarity, no reranking. Use it to find chunks containing a specific
- /// token, identifier, error code, or literal phrase.
+ /// Unlike `/stores/search`, this runs your regex against the literal text of each
+ /// chunk. Use it to find chunks containing a specific token, identifier, error code,
+ /// or literal phrase.
/// grep targets a single store and does not support pagination; raise `top_k` to
/// retrieve more matches.
/// Args:
@@ -109,9 +109,9 @@ partial void ProcessGrepStoreChunksResponseContent( /// /// Match store chunks against a regular expression
/// Match store chunks against a regular expression.
- /// Unlike `/stores/search`, this performs exact text matching — no embeddings, no
- /// semantic similarity, no reranking. Use it to find chunks containing a specific
- /// token, identifier, error code, or literal phrase.
+ /// Unlike `/stores/search`, this runs your regex against the literal text of each
+ /// chunk. Use it to find chunks containing a specific token, identifier, error code,
+ /// or literal phrase.
/// grep targets a single store and does not support pagination; raise `top_k` to
/// retrieve more matches.
/// Args:
@@ -536,9 +536,9 @@ partial void ProcessGrepStoreChunksResponseContent( /// /// Match store chunks against a regular expression
/// Match store chunks against a regular expression.
- /// Unlike `/stores/search`, this performs exact text matching — no embeddings, no
- /// semantic similarity, no reranking. Use it to find chunks containing a specific
- /// token, identifier, error code, or literal phrase.
+ /// Unlike `/stores/search`, this runs your regex against the literal text of each
+ /// chunk. Use it to find chunks containing a specific token, identifier, error code,
+ /// or literal phrase.
/// grep targets a single store and does not support pagination; raise `top_k` to
/// retrieve more matches.
/// Args:
diff --git a/src/libs/Mixedbread/openapi.yaml b/src/libs/Mixedbread/openapi.yaml index b9dd140..859e53d 100644 --- a/src/libs/Mixedbread/openapi.yaml +++ b/src/libs/Mixedbread/openapi.yaml @@ -810,6 +810,149 @@ "security": [{ "ApiKeyAuth": [] }] } }, + "/v1/buckets": { + "get": { + "tags": ["buckets"], + "summary": "List buckets", + "description": "List the organization's connected buckets.\n\nNon-secret auth metadata (auth type, role ARN, external ID) is included;\naccess-key credentials are never returned.\n\nArgs:\n options: The pagination options.\n\nReturns:\n BucketListResponse: The list of buckets.", + "operationId": "list_buckets", + "security": [{ "ApiKeyAuth": [] }], + "parameters": [ + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "maximum": 100, + "minimum": 1, + "description": "Maximum number of items to return per page (1-100)", + "examples": [10, 20, 50], + "default": 20, + "title": "Limit" + }, + "description": "Maximum number of items to return per page (1-100)" + }, + { + "name": "after", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "Cursor for forward pagination - get items after this position. Use last_cursor from previous response.", + "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ=="], + "title": "After" + }, + "description": "Cursor for forward pagination - get items after this position. Use last_cursor from previous response." + }, + { + "name": "before", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "Cursor for backward pagination - get items before this position. Use first_cursor from previous response.", + "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ=="], + "title": "Before" + }, + "description": "Cursor for backward pagination - get items before this position. Use first_cursor from previous response." + }, + { + "name": "include_total", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "description": "Whether to include total count in response (expensive operation)", + "examples": [false, true], + "default": false, + "title": "Include Total" + }, + "description": "Whether to include total count in response (expensive operation)" + } + ], + "responses": { + "200": { + "description": "The organization's buckets", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BucketListResponse" } } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + }, + "post": { + "tags": ["buckets"], + "summary": "Add a bucket", + "description": "Attach a customer-owned storage bucket to the organization.\n\nAccess is validated against the bucket (reachability + write/delete probe) before\nanything is stored, so an unreachable or unwritable bucket is rejected here.\nWith `assume_role` credentials (recommended for AWS) the probe performs the actual\nSTS AssumeRole and nothing secret is persisted — only the role ARN and the\norganization's external ID. With `access_key` credentials (S3-compatible\nendpoints) the keys are encrypted before they are stored.\n\nArgs:\n params: The bucket connection details and credentials.\n\nReturns:\n Bucket: The attached bucket. Credentials are never returned.", + "operationId": "create_bucket", + "security": [{ "ApiKeyAuth": [] }], + "requestBody": { + "required": true, + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BucketCreateParams" } } + } + }, + "responses": { + "201": { + "description": "The attached bucket details", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Bucket" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + } + }, + "/v1/buckets/{bucket_id}/credentials": { + "post": { + "tags": ["buckets"], + "summary": "Rotate bucket credentials", + "description": "Replace a bucket's stored credentials.\n\nOnly available for `access_key` buckets — `assume_role` buckets store no\ncredentials (manage access via the role's trust policy instead). The new\ncredentials are re-validated against the bucket's existing (immutable) identity\nbefore they are persisted. The credentials version is bumped so cached storage clients rebuild.\n\nArgs:\n bucket_id: The ID of the bucket to rotate credentials for.\n params: The new bucket access credentials.\n\nReturns:\n Bucket: The updated bucket. Credentials are never returned.", + "operationId": "rotate_bucket_credentials", + "security": [{ "ApiKeyAuth": [] }], + "parameters": [ + { + "name": "bucket_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "description": "The ID of the bucket to rotate credentials for", + "title": "Bucket Id" + }, + "description": "The ID of the bucket to rotate credentials for" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BucketRotateCredentialsParams" } } + } + }, + "responses": { + "200": { + "description": "The bucket with rotated credentials", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Bucket" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + } + }, "/v1/admin/stores/{organization_id}/{store_identifier}/reingest": { "post": { "tags": ["admin"], @@ -969,10 +1112,10 @@ "in": "query", "required": true, "schema": { - "enum": ["ingestion", "search", "agentic_search"], + "enum": ["ingestion", "search", "agentic_search", "grep"], "type": "string", "description": "The type of event to list", - "examples": ["ingestion", "search", "agentic_search"], + "examples": ["ingestion", "search", "agentic_search", "grep"], "title": "Event Type" }, "description": "The type of event to list" @@ -1967,7 +2110,7 @@ "post": { "tags": ["stores"], "summary": "Match store chunks against a regular expression", - "description": "Match store chunks against a regular expression.\n\nUnlike `/stores/search`, this performs exact text matching — no embeddings, no\nsemantic similarity, no reranking. Use it to find chunks containing a specific\ntoken, identifier, error code, or literal phrase.\n\ngrep targets a single store and does not support pagination; raise `top_k` to\nretrieve more matches.\n\nArgs:\n grep_params: Grep configuration including:\n - pattern: RE2 regular expression matched against chunk text\n - targets: chunk content groups to match (`text`, `generated`)\n - case_sensitive: whether the pattern is case-sensitive\n - store_identifiers: the single store to grep\n - file_ids: optional list of file IDs to filter chunks by\n - filters: optional metadata filter conditions\n - top_k: number of matches to return\n\nReturns:\n StoreGrepResponse containing the list of matching chunks.\n\nRaises:\n HTTPException (400): If grep parameters are invalid\n HTTPException (404): If the store is not found", + "description": "Match store chunks against a regular expression.\n\nUnlike `/stores/search`, this runs your regex against the literal text of each\nchunk. Use it to find chunks containing a specific token, identifier, error code,\nor literal phrase.\n\ngrep targets a single store and does not support pagination; raise `top_k` to\nretrieve more matches.\n\nArgs:\n grep_params: Grep configuration including:\n - pattern: RE2 regular expression matched against chunk text\n - targets: chunk content groups to match (`text`, `generated`)\n - case_sensitive: whether the pattern is case-sensitive\n - store_identifiers: the single store to grep\n - file_ids: optional list of file IDs to filter chunks by\n - filters: optional metadata filter conditions\n - top_k: number of matches to return\n\nReturns:\n StoreGrepResponse containing the list of matching chunks.\n\nRaises:\n HTTPException (400): If grep parameters are invalid\n HTTPException (404): If the store is not found", "operationId": "grep_store_chunks", "requestBody": { "content": { @@ -4138,307 +4281,2586 @@ } } } - } - }, - "components": { - "schemas": { - "AgenticSearchConfig": { - "properties": { - "max_rounds": { - "type": "integer", - "maximum": 10, - "minimum": 1, - "title": "Max Rounds", - "description": "Maximum number of search rounds", - "default": 3 - }, - "queries_per_round": { - "type": "integer", - "maximum": 10, - "minimum": 1, - "title": "Queries Per Round", - "description": "Maximum queries per round", - "default": 4 - }, - "strict_top_k": { - "type": "boolean", - "title": "Strict Top K", - "description": "Whether the final retrieved chunk list must provide exactly top_k ranked chunks", - "default": false - }, - "media_content": { - "type": "string", - "enum": ["auto", "never", "always"], - "title": "Media Content", - "description": "Controls when retrieved image content is provided to the agent. `auto` sends images only when no OCR text or summary is available, `never` disables image content, and `always` sends image content when available.", - "default": "auto" - }, - "instructions": { - "anyOf": [{ "type": "string", "maxLength": 5000, "minLength": 1 }, { "type": "null" }], - "title": "Instructions", - "description": "Additional custom instructions (followed only when not in conflict with existing rules)" - }, - "verbose": { - "type": "boolean", - "title": "Verbose", - "description": "Internal: when set, the response includes a `trace` field with the full tool-call timeline. Used by the Mixedbread playground; not part of the documented public API.", - "default": false + }, + "/v1/integrations/providers": { + "get": { + "tags": ["integrations"], + "summary": "List integration providers", + "description": "List supported integration provider manifests.", + "operationId": "list_integration_providers", + "responses": { + "200": { + "description": "The supported integration providers", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/IntegrationProviderListResponse" } + } + } } }, - "type": "object", - "title": "AgenticSearchConfig", - "description": "Configuration for agentic multi-query search." - }, - "AgenticSearchTokenUsage": { - "properties": { - "prompt_tokens": { - "type": "integer", - "title": "Prompt Tokens", - "description": "Number of prompt tokens consumed", - "default": 0 + "security": [{ "ApiKeyAuth": [] }] + } + }, + "/v1/integrations/installations": { + "get": { + "tags": ["integrations"], + "summary": "List integration installations", + "description": "List installed provider integrations for the current organization.", + "operationId": "list_integration_installations", + "security": [{ "ApiKeyAuth": [] }], + "parameters": [ + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "maximum": 100, + "minimum": 1, + "description": "Maximum number of items to return per page (1-100)", + "examples": [10, 20, 50], + "default": 20, + "title": "Limit" + }, + "description": "Maximum number of items to return per page (1-100)" }, - "completion_tokens": { - "type": "integer", - "title": "Completion Tokens", - "description": "Number of completion tokens generated", - "default": 0 + { + "name": "after", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "Cursor for forward pagination - get items after this position. Use last_cursor from previous response.", + "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ=="], + "title": "After" + }, + "description": "Cursor for forward pagination - get items after this position. Use last_cursor from previous response." }, - "total_tokens": { - "type": "integer", - "title": "Total Tokens", - "description": "Total tokens consumed (prompt + completion)", - "default": 0 + { + "name": "before", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "Cursor for backward pagination - get items before this position. Use first_cursor from previous response.", + "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ=="], + "title": "Before" + }, + "description": "Cursor for backward pagination - get items before this position. Use first_cursor from previous response." }, - "cost_usd": { - "type": "number", - "title": "Cost Usd", - "description": "Estimated cost in USD", - "default": 0 + { + "name": "include_total", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "description": "Whether to include total count in response (expensive operation)", + "examples": [false, true], + "default": false, + "title": "Include Total" + }, + "description": "Whether to include total count in response (expensive operation)" } - }, - "type": "object", - "title": "AgenticSearchTokenUsage", - "description": "Token usage and cost for LLM calls made during an agentic search." - }, - "AgenticToolCall": { - "properties": { - "tool_call_id": { - "type": "string", - "title": "Tool Call Id", + ], + "responses": { + "200": { + "description": "The installed provider integrations", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/IntegrationInstallationListResponse" } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + } + }, + "/v1/integrations/data-sources": { + "get": { + "tags": ["integrations"], + "summary": "List connected data sources", + "description": "List every connected data source across providers for the current organization.", + "operationId": "list_data_source_installations", + "responses": { + "200": { + "description": "Connected data sources across providers", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/DataSourceInstallationListResponse" } + } + } + } + }, + "security": [{ "ApiKeyAuth": [] }] + } + }, + "/v1/integrations/slack/installations": { + "get": { + "tags": ["integrations"], + "summary": "List connected Slack workspaces", + "description": "List connected Slack workspaces with their selected ingestion channel counts.", + "operationId": "list_slack_installations", + "responses": { + "200": { + "description": "Connected Slack workspaces for the organization", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SlackInstallationOverviewListResponse" } + } + } + } + }, + "security": [{ "ApiKeyAuth": [] }] + } + }, + "/v1/integrations/slack/channels": { + "get": { + "tags": ["integrations"], + "summary": "List Slack channels for store ingestion", + "description": "List public Slack channels and whether each channel is selected for store ingestion.", + "operationId": "get_slack_channel_selection", + "security": [{ "ApiKeyAuth": [] }], + "parameters": [ + { + "name": "installation_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "description": "Slack installation ID", + "title": "Installation Id" + }, + "description": "Slack installation ID" + } + ], + "responses": { + "200": { + "description": "Slack channel selection for a workspace", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SlackChannelSelectionResponse" } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + }, + "put": { + "tags": ["integrations"], + "summary": "Update Slack channels for store ingestion", + "description": "Replace the Slack channels selected for ingestion into a store.", + "operationId": "update_slack_channel_selection", + "security": [{ "ApiKeyAuth": [] }], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SlackChannelSelectionUpdateParams", + "description": "The Slack channel selection" + } + } + } + }, + "responses": { + "200": { + "description": "Updated Slack channel selection", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SlackChannelSelectionUpdateResponse" } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + } + }, + "/v1/integrations/slack/channels/sync": { + "post": { + "tags": ["integrations"], + "summary": "Sync selected Slack channels", + "description": "Queue historical ingestion for selected Slack channels.", + "operationId": "sync_slack_channels", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SlackChannelSyncParams", + "description": "The Slack channels to sync" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Queued Slack channel sync jobs", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/SlackChannelSyncResponse" } } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + }, + "security": [{ "ApiKeyAuth": [] }] + } + }, + "/v1/integrations/slack/installations/{installation_id}": { + "delete": { + "tags": ["integrations"], + "summary": "Disconnect Slack", + "description": "Disconnect a specific Slack installation from the current organization.", + "operationId": "disconnect_slack_installation", + "security": [{ "ApiKeyAuth": [] }], + "parameters": [ + { + "name": "installation_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "description": "Slack installation ID", + "title": "Installation Id" + }, + "description": "Slack installation ID" + } + ], + "responses": { + "200": { + "description": "The deleted Slack installation", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/IntegrationInstallationResponse" } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + } + }, + "/v1/integrations/slack/installations/{installation_id}/config": { + "put": { + "tags": ["integrations"], + "summary": "Update Slack data source config", + "description": "Update a Slack data source config (auto-sync-all). Enabling it syncs every channel.", + "operationId": "update_slack_installation_config", + "security": [{ "ApiKeyAuth": [] }], + "parameters": [ + { + "name": "installation_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "description": "Slack installation ID", + "title": "Installation Id" + }, + "description": "Slack installation ID" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SlackInstallationConfigUpdateBody", + "description": "The Slack data source config" + } + } + } + }, + "responses": { + "200": { + "description": "Updated Slack channel selection", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SlackChannelSelectionResponse" } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + } + }, + "/v1/integrations/slack/oauth/authorize": { + "get": { + "tags": ["integrations"], + "summary": "Authorize Slack integration", + "description": "Start Slack OAuth for the current organization.", + "operationId": "authorize_slack_integration", + "security": [{ "ApiKeyAuth": [] }], + "parameters": [ + { + "name": "store_name", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "Optional ingestion store name", + "title": "Store Name" + }, + "description": "Optional ingestion store name" + }, + { + "name": "auto_sync_all", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "description": "Automatically sync all current and future channels", + "default": false, + "title": "Auto Sync All" + }, + "description": "Automatically sync all current and future channels" + } + ], + "responses": { + "307": { + "description": "Redirect to Slack OAuth", + "content": { "application/json": { "schema": {} } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + } + }, + "/v1/integrations/slack/manifest": { + "get": { + "tags": ["integrations"], + "summary": "Get Slack app manifest", + "description": "Return the Slack app manifest pre-filled with this deployment's public URLs.", + "operationId": "get_slack_manifest", + "responses": { + "200": { + "description": "Slack app manifest for bring-your-own-app setup", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/SlackManifestResponse" } } + } + } + }, + "security": [{ "ApiKeyAuth": [] }] + } + }, + "/v1/integrations/slack/connect": { + "post": { + "tags": ["integrations"], + "summary": "Connect Slack with a customer-provided app", + "description": "Connect a Slack workspace using a customer-created app's bot token and signing secret.", + "operationId": "connect_slack_manual", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SlackManualConnectBody", + "description": "Slack bot token and signing secret" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "The connected Slack installation", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/IntegrationInstallationResponse" } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + }, + "security": [{ "ApiKeyAuth": [] }] + } + }, + "/v1/integrations/slack/oauth/callback": { + "get": { + "tags": ["integrations"], + "summary": "Slack OAuth callback", + "description": "Complete Slack OAuth and persist the workspace installation.", + "operationId": "slack_oauth_callback", + "security": [{ "ApiKeyAuth": [] }], + "parameters": [ + { + "name": "state", + "in": "query", + "required": true, + "schema": { "type": "string", "description": "Slack OAuth state", "title": "State" }, + "description": "Slack OAuth state" + }, + { + "name": "code", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "Slack OAuth authorization code", + "title": "Code" + }, + "description": "Slack OAuth authorization code" + }, + { + "name": "error", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "Slack OAuth error", + "title": "Error" + }, + "description": "Slack OAuth error" + } + ], + "responses": { + "307": { + "description": "Redirect after Slack installation", + "content": { "application/json": { "schema": {} } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + } + }, + "/v1/integrations/slack/events": { + "post": { + "tags": ["integrations"], + "summary": "Slack events webhook", + "description": "Receive signed Slack Events API requests.", + "operationId": "handle_slack_event", + "responses": { + "200": { + "description": "Slack event acknowledgement", + "content": { "application/json": { "schema": {} } } + } + }, + "security": [{ "ApiKeyAuth": [] }] + } + }, + "/v1/integrations/slack/commands": { + "post": { + "tags": ["integrations"], + "summary": "Slack slash command webhook", + "description": "Receive signed Slack slash command requests.", + "operationId": "handle_slack_command", + "responses": { + "200": { + "description": "Slack command acknowledgement", + "content": { "application/json": { "schema": {} } } + } + }, + "security": [{ "ApiKeyAuth": [] }] + } + }, + "/v1/integrations/google_drive/oauth/authorize": { + "get": { + "tags": ["integrations"], + "summary": "Authorize Google Drive integration", + "description": "Start Google Drive OAuth for the current organization.", + "operationId": "authorize_google_drive_integration", + "security": [{ "ApiKeyAuth": [] }], + "parameters": [ + { + "name": "store_name", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "Optional ingestion store name", + "title": "Store Name" + }, + "description": "Optional ingestion store name" + } + ], + "responses": { + "307": { + "description": "Redirect to Google OAuth", + "content": { "application/json": { "schema": {} } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + } + }, + "/v1/integrations/google_drive/oauth/callback": { + "get": { + "tags": ["integrations"], + "summary": "Google Drive OAuth callback", + "description": "Complete Google Drive OAuth and persist the installation.", + "operationId": "google_drive_oauth_callback", + "security": [{ "ApiKeyAuth": [] }], + "parameters": [ + { + "name": "state", + "in": "query", + "required": true, + "schema": { "type": "string", "description": "Google OAuth state", "title": "State" }, + "description": "Google OAuth state" + }, + { + "name": "code", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "Google OAuth authorization code", + "title": "Code" + }, + "description": "Google OAuth authorization code" + }, + { + "name": "error", + "in": "query", + "required": false, + "schema": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "Google OAuth error", + "title": "Error" + }, + "description": "Google OAuth error" + } + ], + "responses": { + "307": { + "description": "Redirect after Google Drive installation", + "content": { "application/json": { "schema": {} } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + } + }, + "/v1/integrations/google_drive/installations": { + "get": { + "tags": ["integrations"], + "summary": "List connected Google Drive accounts", + "description": "List connected Google Drive accounts with their selected folder counts.", + "operationId": "list_google_drive_installations", + "responses": { + "200": { + "description": "Connected Google Drive accounts for the organization", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/GoogleDriveInstallationOverviewListResponse" } + } + } + } + }, + "security": [{ "ApiKeyAuth": [] }] + } + }, + "/v1/integrations/google_drive/folders": { + "get": { + "tags": ["integrations"], + "summary": "List Google Drive folders for store ingestion", + "description": "List Google Drive folders and whether each is selected for store ingestion.", + "operationId": "get_google_drive_folder_selection", + "security": [{ "ApiKeyAuth": [] }], + "parameters": [ + { + "name": "installation_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "description": "Google Drive installation ID", + "title": "Installation Id" + }, + "description": "Google Drive installation ID" + } + ], + "responses": { + "200": { + "description": "Google Drive folder selection for an account", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/GoogleDriveFolderSelectionResponse" } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + }, + "put": { + "tags": ["integrations"], + "summary": "Update Google Drive folders for store ingestion", + "description": "Replace the Google Drive folders selected for ingestion into a store.", + "operationId": "update_google_drive_folder_selection", + "security": [{ "ApiKeyAuth": [] }], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GoogleDriveFolderSelectionUpdateParams", + "description": "The Google Drive folder selection" + } + } + } + }, + "responses": { + "200": { + "description": "Updated Google Drive folder selection", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/GoogleDriveFolderSelectionUpdateResponse" } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + } + }, + "/v1/integrations/google_drive/sync": { + "post": { + "tags": ["integrations"], + "summary": "Sync a Google Drive connector", + "description": "Queue an incremental Google Drive change sync.", + "operationId": "sync_google_drive", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GoogleDriveSyncParams", + "description": "The Google Drive connector to sync" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Queued Google Drive sync", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/GoogleDriveSyncResponse" } } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + }, + "security": [{ "ApiKeyAuth": [] }] + } + }, + "/v1/integrations/google_drive/installations/{installation_id}": { + "delete": { + "tags": ["integrations"], + "summary": "Disconnect Google Drive", + "description": "Disconnect a specific Google Drive installation from the current organization.", + "operationId": "disconnect_google_drive_installation", + "security": [{ "ApiKeyAuth": [] }], + "parameters": [ + { + "name": "installation_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "description": "Google Drive installation ID", + "title": "Installation Id" + }, + "description": "Google Drive installation ID" + } + ], + "responses": { + "200": { + "description": "The deleted Google Drive installation", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/IntegrationInstallationResponse" } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + } + }, + "/v1/integrations/google_drive/installations/{installation_id}/config": { + "put": { + "tags": ["integrations"], + "summary": "Update Google Drive data source config", + "description": "Update a Google Drive data source config (sync entire Drive). Enabling syncs the whole Drive.", + "operationId": "update_google_drive_installation_config", + "security": [{ "ApiKeyAuth": [] }], + "parameters": [ + { + "name": "installation_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "description": "Google Drive installation ID", + "title": "Installation Id" + }, + "description": "Google Drive installation ID" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GoogleDriveInstallationConfigUpdateBody", + "description": "The Google Drive data source config" + } + } + } + }, + "responses": { + "200": { + "description": "Updated Google Drive folder selection", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/GoogleDriveFolderSelectionResponse" } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } + } + } + } + } + }, + "/v1/integrations/google_drive/events": { + "post": { + "tags": ["integrations"], + "summary": "Google Drive push webhook", + "description": "Receive Google Drive push notifications and enqueue an incremental sync.", + "operationId": "google_drive_events", + "responses": { + "200": { + "description": "Google Drive change notification acknowledgement", + "content": { "application/json": { "schema": {} } } + } + }, + "security": [{ "ApiKeyAuth": [] }] + } + } + }, + "components": { + "schemas": { + "AgenticSearchConfig": { + "properties": { + "max_rounds": { + "type": "integer", + "maximum": 10, + "minimum": 1, + "title": "Max Rounds", + "description": "Maximum number of search rounds", + "default": 3 + }, + "queries_per_round": { + "type": "integer", + "maximum": 10, + "minimum": 1, + "title": "Queries Per Round", + "description": "Maximum queries per round", + "default": 4 + }, + "strict_top_k": { + "type": "boolean", + "title": "Strict Top K", + "description": "Whether the final retrieved chunk list must provide exactly top_k ranked chunks", + "default": false + }, + "media_content": { + "type": "string", + "enum": ["auto", "never", "always"], + "title": "Media Content", + "description": "Controls when retrieved image content is provided to the agent. `auto` sends images only when no OCR text or summary is available, `never` disables image content, and `always` sends image content when available.", + "default": "auto" + }, + "instructions": { + "anyOf": [{ "type": "string", "maxLength": 5000, "minLength": 1 }, { "type": "null" }], + "title": "Instructions", + "description": "Additional custom instructions (followed only when not in conflict with existing rules)" + }, + "verbose": { + "type": "boolean", + "title": "Verbose", + "description": "Internal: when set, the response includes a `trace` field with the full tool-call timeline. Used by the Mixedbread playground; not part of the documented public API.", + "default": false + } + }, + "type": "object", + "title": "AgenticSearchConfig", + "description": "Configuration for agentic multi-query search." + }, + "AgenticSearchTokenUsage": { + "properties": { + "prompt_tokens": { + "type": "integer", + "title": "Prompt Tokens", + "description": "Number of prompt tokens consumed", + "default": 0 + }, + "completion_tokens": { + "type": "integer", + "title": "Completion Tokens", + "description": "Number of completion tokens generated", + "default": 0 + }, + "total_tokens": { + "type": "integer", + "title": "Total Tokens", + "description": "Total tokens consumed (prompt + completion)", + "default": 0 + } + }, + "type": "object", + "title": "AgenticSearchTokenUsage", + "description": "Token usage for LLM calls made during an agentic search." + }, + "AgenticToolCall": { + "properties": { + "tool_call_id": { + "type": "string", + "title": "Tool Call Id", "description": "Unique identifier for the tool call (gen_ai.tool.call.id)" }, - "tool_name": { + "tool_name": { + "type": "string", + "title": "Tool Name", + "description": "Name of the tool invoked (gen_ai.tool.name)", + "examples": ["search_batch"] + }, + "tool_type": { + "type": "string", + "enum": ["function", "extension", "datastore"], + "title": "Tool Type", + "description": "Category of the tool (gen_ai.tool.type)", + "default": "function" + }, + "started_at": { + "type": "string", + "format": "date-time", + "title": "Started At", + "description": "Time when the tool call began" + }, + "duration": { + "type": "string", + "format": "duration", + "title": "Duration", + "description": "Time taken to execute the tool call" + }, + "arguments": { + "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], + "title": "Arguments", + "description": "Arguments passed to the tool (gen_ai.tool.call.arguments)" + }, + "result": { + "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], + "title": "Result", + "description": "Result returned to the model (gen_ai.tool.call.result). None if the tool errored." + }, + "error": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Error", + "description": "Error message if the tool call failed" + } + }, + "type": "object", + "required": ["tool_call_id", "tool_name", "started_at", "duration", "arguments"], + "title": "AgenticToolCall", + "description": "Represents a single tool call made by the agent during an agentic search.\n\nFields follow the OpenTelemetry GenAI semantic conventions for tool calls:\nhttps://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/" + }, + "ApiKey": { + "properties": { + "id": { "type": "string", "title": "Id", "description": "The ID of the API key" }, + "name": { "type": "string", "title": "Name", "description": "The name of the API key" }, + "redacted_value": { + "type": "string", + "title": "Redacted Value", + "description": "The redacted value of the API key" + }, + "expires_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Expires At", + "description": "The expiration datetime of the API key" + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At", + "description": "The creation datetime of the API key" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "title": "Updated At", + "description": "The last update datetime of the API key" + }, + "last_active_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Last Active At", + "description": "The last active datetime of the API key" + }, + "object": { + "type": "string", + "const": "api_key", + "title": "Object", + "description": "The type of the object", + "default": "api_key" + }, + "scope": { + "anyOf": [ + { "items": { "$ref": "#/components/schemas/Scope" }, "type": "array" }, + { "type": "null" } + ], + "title": "Scope", + "description": "The scope of the API key" + } + }, + "type": "object", + "required": ["id", "name", "redacted_value", "created_at", "updated_at"], + "title": "ApiKey", + "description": "Response model for an API key." + }, + "ApiKeyCreateOrUpdateParams": { + "properties": { + "type": { "type": "string", "const": "api_key", "title": "Type", "default": "api_key" }, + "api_key": { "type": "string", "title": "Api Key", "description": "The API key" } + }, + "type": "object", + "required": ["api_key"], + "title": "ApiKeyCreateOrUpdateParams", + "description": "Base class for API key create or update parameters." + }, + "ApiKeyCreateParams": { + "properties": { + "name": { + "type": "string", + "title": "Name", + "description": "A name/description for the API key", + "default": "API Key" + }, + "scope": { + "anyOf": [ + { "items": { "$ref": "#/components/schemas/Scope" }, "type": "array" }, + { "type": "null" } + ], + "title": "Scope", + "description": "The scope of the API key" + }, + "expires_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Expires At", + "description": "Optional expiration datetime" + } + }, + "type": "object", + "title": "ApiKeyCreateParams", + "description": "Parameters for creating an API key." + }, + "ApiKeyCreated": { + "properties": { + "id": { "type": "string", "title": "Id", "description": "The ID of the API key" }, + "name": { "type": "string", "title": "Name", "description": "The name of the API key" }, + "redacted_value": { + "type": "string", + "title": "Redacted Value", + "description": "The redacted value of the API key" + }, + "expires_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Expires At", + "description": "The expiration datetime of the API key" + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At", + "description": "The creation datetime of the API key" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "title": "Updated At", + "description": "The last update datetime of the API key" + }, + "last_active_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Last Active At", + "description": "The last active datetime of the API key" + }, + "object": { + "type": "string", + "const": "api_key", + "title": "Object", + "description": "The type of the object", + "default": "api_key" + }, + "scope": { + "anyOf": [ + { "items": { "$ref": "#/components/schemas/Scope" }, "type": "array" }, + { "type": "null" } + ], + "title": "Scope", + "description": "The scope of the API key" + }, + "value": { "type": "string", "title": "Value", "description": "The value of the API key" } + }, + "type": "object", + "required": ["id", "name", "redacted_value", "created_at", "updated_at", "value"], + "title": "ApiKeyCreated", + "description": "Response model for creating an API key." + }, + "ApiKeyDeleted": { + "properties": { + "id": { "type": "string", "title": "Id", "description": "The ID of the deleted API key" }, + "deleted": { + "type": "boolean", + "title": "Deleted", + "description": "Whether the API key was deleted" + }, + "object": { + "type": "string", + "const": "api_key", + "title": "Object", + "description": "The type of the object deleted", + "default": "api_key" + } + }, + "type": "object", + "required": ["id", "deleted"], + "title": "ApiKeyDeleted", + "description": "Response model for deleting an API key." + }, + "ApiKeyListResponse": { + "properties": { + "pagination": { "$ref": "#/components/schemas/PaginationWithTotal" }, + "object": { + "type": "string", + "const": "list", + "title": "Object", + "description": "The object type of the response", + "default": "list" + }, + "data": { + "items": { "$ref": "#/components/schemas/ApiKey" }, + "type": "array", + "title": "Data", + "description": "The list of API keys" + } + }, + "type": "object", + "required": ["pagination", "data"], + "title": "ApiKeyListResponse" + }, + "ApiKeyUpdateParams": { + "properties": { + "name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Name", + "description": "A name/description for the API key" + }, + "expires_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Expires At", + "description": "Optional expiration datetime" + } + }, + "type": "object", + "title": "ApiKeyUpdateParams", + "description": "Parameters for updating an API key." + }, + "AudioChunkGeneratedMetadata": { + "properties": { + "type": { "type": "string", "const": "audio", "title": "Type", "default": "audio" }, + "file_type": { "type": "string", "title": "File Type", "default": "audio/mpeg" }, + "file_size": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "File Size" }, + "total_duration_seconds": { + "anyOf": [{ "type": "number" }, { "type": "null" }], + "title": "Total Duration Seconds" + }, + "sample_rate": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Sample Rate" }, + "channels": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Channels" }, + "audio_format": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Audio Format" }, + "bpm": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Bpm" }, + "file_extension": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "File Extension" } + }, + "additionalProperties": true, + "type": "object", + "title": "AudioChunkGeneratedMetadata" + }, + "AudioUrl": { + "properties": { + "url": { + "type": "string", + "title": "Url", + "description": "The audio URL. Can be either a URL or a Data URI." + } + }, + "type": "object", + "required": ["url"], + "title": "AudioUrl", + "description": "Model for audio URL validation." + }, + "AudioUrlInputChunk": { + "properties": { + "chunk_index": { + "type": "integer", + "title": "Chunk Index", + "description": "position of the chunk in a file", + "examples": [0, 1, 2, 3, 4] + }, + "mime_type": { + "type": "string", + "title": "Mime Type", + "description": "mime type of the chunk", + "default": "audio/mpeg", + "examples": ["audio/mpeg"] + }, + "generated_metadata": { + "anyOf": [ + { + "oneOf": [ + { "$ref": "#/components/schemas/MarkdownChunkGeneratedMetadata" }, + { "$ref": "#/components/schemas/TextChunkGeneratedMetadata" }, + { "$ref": "#/components/schemas/PDFChunkGeneratedMetadata" }, + { "$ref": "#/components/schemas/CodeChunkGeneratedMetadata" }, + { "$ref": "#/components/schemas/AudioChunkGeneratedMetadata" }, + { "$ref": "#/components/schemas/VideoChunkGeneratedMetadata" }, + { "$ref": "#/components/schemas/ImageChunkGeneratedMetadata" } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "audio": "#/components/schemas/AudioChunkGeneratedMetadata", + "code": "#/components/schemas/CodeChunkGeneratedMetadata", + "image": "#/components/schemas/ImageChunkGeneratedMetadata", + "markdown": "#/components/schemas/MarkdownChunkGeneratedMetadata", + "pdf": "#/components/schemas/PDFChunkGeneratedMetadata", + "text": "#/components/schemas/TextChunkGeneratedMetadata", + "video": "#/components/schemas/VideoChunkGeneratedMetadata" + } + } + }, + { "type": "null" } + ], + "title": "Generated Metadata", + "description": "metadata of the chunk", + "examples": [ + { + "file_size": 1024, + "file_type": "text/plain", + "language": "en", + "type": "text", + "word_count": 100 + } + ] + }, + "model": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Model", + "description": "model used for this chunk", + "examples": ["text-embedding-ada-002", "clip-vit-large-patch14"] + }, + "type": { + "type": "string", + "const": "audio_url", + "title": "Type", + "description": "Input type identifier", + "default": "audio_url" + }, + "transcription": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Transcription", + "description": "speech recognition (sr) text of the audio", + "examples": ["The year 2025 reports for .."] + }, + "summary": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Summary", + "description": "summary of the audio", + "examples": ["A financial report audio for 2025"] + }, + "audio_url": { + "anyOf": [{ "$ref": "#/components/schemas/AudioUrl" }, { "type": "null" }], + "description": "Audio URL" + }, + "sampling_rate": { + "type": "integer", + "title": "Sampling Rate", + "description": "The sampling rate of the audio." + } + }, + "type": "object", + "required": ["chunk_index", "sampling_rate"], + "title": "AudioUrlInputChunk" + }, + "BalanceInfo": { + "properties": { + "current_balance": { + "type": "number", + "title": "Current Balance", + "description": "The current balance" + }, + "next_effective_balance": { + "type": "number", + "title": "Next Effective Balance", + "description": "The next effective balance" + }, + "next_effective_date": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Next Effective Date", + "description": "The next effective date" + } + }, + "type": "object", + "title": "BalanceInfo", + "description": "Information about an organization's credit balance." + }, + "BillingPeriodSummary": { + "properties": { + "period": { "$ref": "#/components/schemas/Period", "description": "The billing period" }, + "cost": { "$ref": "#/components/schemas/CostInfo", "description": "The cost information" }, + "balance": { "$ref": "#/components/schemas/BalanceInfo", "description": "The balance information" }, + "usages": { + "additionalProperties": { "$ref": "#/components/schemas/UsageInfo" }, + "type": "object", + "title": "Usages", + "description": "The monthly usages information per metric" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "title": "Generated At", + "description": "The date and time the summary was generated" + } + }, + "type": "object", + "required": ["period", "cost", "balance", "usages", "generated_at"], + "title": "BillingPeriodSummary", + "description": "High level billing summary for the currently active period." + }, + "Body_create_file": { + "properties": { + "file": { + "type": "string", + "format": "binary", + "title": "File", + "description": "The file to upload" + } + }, + "type": "object", + "required": ["file"], + "title": "Body_create_file" + }, + "Body_update_file": { + "properties": { + "file": { + "type": "string", + "format": "binary", + "title": "File", + "description": "The file to update" + } + }, + "type": "object", + "required": ["file"], + "title": "Body_update_file" + }, + "Body_upload_store_file": { + "properties": { + "file": { + "type": "string", + "format": "binary", + "title": "File", + "description": "The file to upload and index" + }, + "params": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Params" } + }, + "type": "object", + "required": ["file"], + "title": "Body_upload_store_file" + }, + "Bucket": { + "properties": { + "id": { "type": "string", "title": "Id", "description": "The ID of the bucket" }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At", + "description": "Creation time" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "title": "Updated At", + "description": "Last update time" + }, + "name": { "type": "string", "title": "Name", "description": "Display name" }, + "provider": { + "$ref": "#/components/schemas/BucketProvider", + "description": "Object storage provider" + }, + "bucket": { "type": "string", "title": "Bucket", "description": "The bucket name" }, + "region": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Region", + "description": "The bucket region" + }, + "endpoint_url": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Endpoint Url", + "description": "Custom S3-compatible endpoint" + }, + "prefix": { "type": "string", "title": "Prefix", "description": "Key prefix within the bucket" }, + "sse_kms_key_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Sse Kms Key Id", + "description": "KMS key id/ARN used to encrypt writes (SSE-KMS)" + }, + "auth_type": { + "$ref": "#/components/schemas/BucketAuthType", + "description": "Authentication type" + }, + "role_arn": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Role Arn", + "description": "IAM role Mixedbread assumes (auth_type=assume_role); not a secret" + }, + "external_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "External Id", + "description": "sts:ExternalId the role's trust policy must require (auth_type=assume_role); not a secret" + }, + "status": { "$ref": "#/components/schemas/BucketStatus", "description": "Validation status" }, + "last_validated_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Last Validated At", + "description": "When the bucket was last validated" + }, + "has_credentials": { + "type": "boolean", + "title": "Has Credentials", + "description": "Whether secret credentials are stored (always false for assume-role buckets)" + }, + "credentials_version": { + "type": "integer", + "title": "Credentials Version", + "description": "Increments on every credential rotation" + }, + "object": { + "type": "string", + "const": "bucket", + "title": "Object", + "description": "The type of the object", + "default": "bucket" + } + }, + "type": "object", + "required": [ + "id", + "created_at", + "updated_at", + "name", + "provider", + "bucket", + "region", + "endpoint_url", + "prefix", + "sse_kms_key_id", + "auth_type", + "role_arn", + "external_id", + "status", + "last_validated_at", + "has_credentials", + "credentials_version" + ], + "title": "Bucket", + "description": "Service-level representation of a bucket. Credentials are never returned." + }, + "BucketAccessKeyCredentials": { + "properties": { + "type": { "type": "string", "const": "access_key", "title": "Type", "default": "access_key" }, + "access_key_id": { + "type": "string", + "minLength": 1, + "title": "Access Key Id", + "description": "Access key id" + }, + "secret_access_key": { + "type": "string", + "minLength": 1, + "title": "Secret Access Key", + "description": "Secret access key" + } + }, + "type": "object", + "required": ["access_key_id", "secret_access_key"], + "title": "BucketAccessKeyCredentials", + "description": "AWS-style access key credentials for a customer bucket (write-only, never returned)." + }, + "BucketAssumeRoleCredentials": { + "properties": { + "type": { "type": "string", "const": "assume_role", "title": "Type", "default": "assume_role" }, + "role_arn": { + "type": "string", + "minLength": 1, + "title": "Role Arn", + "description": "ARN of the IAM role Mixedbread assumes" + } + }, + "type": "object", + "required": ["role_arn"], + "title": "BucketAssumeRoleCredentials", + "description": "Cross-account IAM role the platform assumes via STS (recommended for AWS).\n\nNothing secret is stored: the role ARN and the server-generated external id\nare plain metadata, and access is granted/revoked entirely through the\nrole's trust policy in the customer's account." + }, + "BucketAuthType": { + "type": "string", + "enum": ["assume_role", "access_key"], + "title": "BucketAuthType", + "description": "How omni authenticates against a customer bucket.\n\nASSUME_ROLE is the recommended default for AWS: nothing secret is stored,\nevery service assumes the customer's IAM role via STS on use. ACCESS_KEY\nremains for S3-compatible providers that have no STS." + }, + "BucketCreateParams": { + "properties": { + "name": { + "type": "string", + "maxLength": 255, + "minLength": 1, + "title": "Name", + "description": "Display name for the bucket" + }, + "provider": { + "type": "string", + "const": "aws_s3", + "title": "Provider", + "description": "Object storage provider", + "default": "aws_s3" + }, + "bucket": { "type": "string", "minLength": 1, "title": "Bucket", "description": "The bucket name" }, + "region": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Region", + "description": "The bucket region" + }, + "endpoint_url": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Endpoint Url", + "description": "Custom S3-compatible endpoint (omit for AWS)" + }, + "prefix": { + "type": "string", + "title": "Prefix", + "description": "Key prefix within the bucket", + "default": "" + }, + "sse_kms_key_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Sse Kms Key Id", + "description": "KMS key id/ARN to encrypt writes with (SSE-KMS); omit for the bucket's default encryption" + }, + "credentials": { + "oneOf": [ + { "$ref": "#/components/schemas/BucketAssumeRoleCredentials" }, + { "$ref": "#/components/schemas/BucketAccessKeyCredentials" } + ], + "title": "Credentials", + "description": "How Mixedbread authenticates against the bucket. `assume_role` is the recommended default for AWS; `access_key` is for S3-compatible providers with a custom endpoint.", + "discriminator": { + "propertyName": "type", + "mapping": { + "access_key": "#/components/schemas/BucketAccessKeyCredentials", + "assume_role": "#/components/schemas/BucketAssumeRoleCredentials" + } + } + } + }, + "type": "object", + "required": ["name", "bucket", "credentials"], + "title": "BucketCreateParams", + "description": "Parameters for attaching a customer-owned bucket." + }, + "BucketListResponse": { + "properties": { + "pagination": { "$ref": "#/components/schemas/CursorPaginationResponse" }, + "object": { + "type": "string", + "const": "list", + "title": "Object", + "description": "The object type of the response", + "default": "list" + }, + "data": { + "items": { "$ref": "#/components/schemas/Bucket" }, + "type": "array", + "title": "Data", + "description": "The list of buckets" + } + }, + "type": "object", + "required": ["pagination", "data"], + "title": "BucketListResponse" + }, + "BucketProvider": { + "type": "string", + "enum": ["aws_s3"], + "title": "BucketProvider", + "description": "Object-storage provider backing a bring-your-own bucket." + }, + "BucketRotateCredentialsParams": { + "properties": { + "credentials": { + "$ref": "#/components/schemas/BucketAccessKeyCredentials", + "description": "New bucket access credentials" + } + }, + "type": "object", + "required": ["credentials"], + "title": "BucketRotateCredentialsParams", + "description": "Parameters for rotating a bucket's credentials." + }, + "BucketStatus": { + "type": "string", + "enum": ["pending", "active", "error"], + "title": "BucketStatus", + "description": "Validation lifecycle of a customer bucket." + }, + "Chunk": { + "properties": { + "content": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Content", + "description": "The full content of the chunk" + }, + "content_to_embed": { + "type": "string", + "title": "Content To Embed", + "description": "The content of the chunk to embed" + }, + "elements": { + "items": { "$ref": "#/components/schemas/ChunkElement" }, + "type": "array", + "title": "Elements", + "description": "List of elements contained in this chunk" + } + }, + "type": "object", + "required": ["content_to_embed", "elements"], + "title": "Chunk", + "description": "A chunk of text extracted from a document page." + }, + "ChunkElement": { + "properties": { + "type": { + "$ref": "#/components/schemas/ElementType", + "description": "The type of the extracted element" + }, + "confidence": { + "type": "number", + "maximum": 1, + "minimum": 0, + "title": "Confidence", + "description": "The confidence score of the extraction" + }, + "bbox": { + "prefixItems": [ + { "type": "number" }, + { "type": "number" }, + { "type": "number" }, + { "type": "number" } + ], + "type": "array", + "maxItems": 4, + "minItems": 4, + "title": "Bbox", + "description": "The bounding box coordinates [x1, y1, x2, y2]" + }, + "page": { + "type": "integer", + "minimum": 0, + "title": "Page", + "description": "The page number where the element was found" + }, + "content": { + "type": "string", + "title": "Content", + "description": "The extracted text content of the element" + }, + "summary": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Summary", + "description": "A brief summary of the element's content" + }, + "image": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Image", + "description": "The base64-encoded image data for figure elements" + } + }, + "type": "object", + "required": ["type", "confidence", "bbox", "page", "content"], + "title": "ChunkElement", + "description": "Represents an extracted element from a document with its content and metadata." + }, + "ChunkSearchResultRule": { + "properties": { + "query": { "type": "string", "title": "Query", "description": "The query to trigger the rule" }, + "store_id": { + "type": "string", + "title": "Store Id", + "description": "The store identifier to apply the rule to" + }, + "type": { + "type": "string", + "const": "chunk_search_result", + "title": "Type", + "description": "The type of substitution" + }, + "file_id": { + "type": "string", + "title": "File Id", + "description": "The file ID of the chunk to substitute" + }, + "chunk_index": { + "type": "integer", + "minimum": 0, + "title": "Chunk Index", + "description": "The index of the chunk to substitute" + }, + "result_index": { + "type": "integer", + "minimum": 0, + "title": "Result Index", + "description": "The index where the result will be inserted" + } + }, + "type": "object", + "required": ["query", "store_id", "type", "file_id", "chunk_index", "result_index"], + "title": "ChunkSearchResultRule", + "description": "Represents a chunk search result rule for a vector store search." + }, + "ChunkingStrategy": { + "type": "string", + "enum": ["page"], + "title": "ChunkingStrategy", + "description": "Strategy used for chunking document content." + }, + "CodeChunkGeneratedMetadata": { + "properties": { + "type": { "type": "string", "const": "code", "title": "Type", "default": "code" }, + "file_type": { "type": "string", "title": "File Type" }, + "language": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Language" }, + "word_count": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Word Count" }, + "file_size": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "File Size" }, + "start_line": { "type": "integer", "title": "Start Line", "default": 0 }, + "num_lines": { "type": "integer", "title": "Num Lines", "default": 0 }, + "file_extension": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "File Extension" } + }, + "additionalProperties": true, + "type": "object", + "required": ["file_type"], + "title": "CodeChunkGeneratedMetadata" + }, + "CompleteMultipartUploadRequest": { + "properties": { + "parts": { + "items": { "$ref": "#/components/schemas/MultipartUploadPart" }, + "type": "array", + "minItems": 1, + "title": "Parts", + "description": "List of completed parts with their ETags" + } + }, + "type": "object", + "required": ["parts"], + "title": "CompleteMultipartUploadRequest" + }, + "ConditionOperator": { + "type": "string", + "enum": [ + "eq", + "not_eq", + "gt", + "gte", + "lt", + "lte", + "in", + "not_in", + "like", + "starts_with", + "not_like", + "regex" + ], + "title": "ConditionOperator", + "description": "Operator for a filter condition." + }, + "ConnectorListResponse": { + "properties": { + "pagination": { "$ref": "#/components/schemas/CursorPaginationResponse" }, + "data": { + "items": { "$ref": "#/components/schemas/DataSourceConnector" }, + "type": "array", + "title": "Data", + "description": "The list of connectors" + }, + "object": { + "type": "string", + "const": "list", + "title": "Object", + "description": "The object type of the response", + "default": "list" + } + }, + "type": "object", + "required": ["pagination", "data"], + "title": "ConnectorListResponse", + "description": "A list of connectors with pagination." + }, + "ContextualizationConfig": { + "properties": { + "with_metadata": { + "anyOf": [{ "type": "boolean" }, { "items": { "type": "string" }, "type": "array" }], + "title": "With Metadata", + "description": "Include all metadata or specific fields in the contextualization. Supports dot notation for nested fields (e.g., 'author.name'). When True, all metadata is included (flattened). When a list, only specified fields are included.", + "default": false, + "examples": [true, false, ["title", "author.name", "author.email", "tags"]] + }, + "with_file_context": { + "type": "boolean", + "title": "With File Context", + "description": "Use an LLM to generate a short context for each text chunk that situates it within the full document, improving retrieval accuracy. Only applies to text content during non-sliced ingestion.", + "default": false + } + }, + "type": "object", + "title": "ContextualizationConfig" + }, + "CostHistogramResponse": { + "properties": { + "data": { + "items": { "$ref": "#/components/schemas/DailyCostBucket" }, + "type": "array", + "title": "Data", + "description": "The histogram of cost information" + }, + "object": { + "type": "string", + "const": "cost.histogram", + "title": "Object", + "description": "The object type of the response", + "default": "cost.histogram" + } + }, + "type": "object", + "required": ["data"], + "title": "CostHistogramResponse" + }, + "CostInfo": { + "properties": { + "net_usage_cost": { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", + "title": "Net Usage Cost", + "description": "The net usage cost", + "default": "0" + }, + "gross_usage_cost": { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", + "title": "Gross Usage Cost", + "description": "The gross usage cost", + "default": "0" + }, + "balance_applied": { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", + "title": "Balance Applied", + "description": "The balance applied", + "default": "0" + }, + "phases": { + "items": { "$ref": "#/components/schemas/PhaseCostInfo" }, + "type": "array", + "title": "Phases", + "description": "The cost for each phase in descending order of end date", + "default": [] + }, + "products": { + "items": { "$ref": "#/components/schemas/ProductCostInfo" }, + "type": "array", + "title": "Products", + "description": "The cost for each product. Store, Parsing, Reranking, Embeddings", + "default": [] + } + }, + "type": "object", + "title": "CostInfo", + "description": "Cost information for a billing period.\n\n- net_usage_cost: portion of usage that actually ends up on the invoice after credits,\n computed as gross_usage_cost - balance_applied.\n- gross_usage_cost: metered usage value before balance applied." + }, + "CreateMultipartUploadRequest": { + "properties": { + "filename": { + "type": "string", + "minLength": 1, + "title": "Filename", + "description": "Name of the file including extension", + "examples": ["document.pdf"] + }, + "file_size": { + "type": "integer", + "exclusiveMinimum": 0, + "title": "File Size", + "description": "Total size of the file in bytes", + "examples": [10485760] + }, + "mime_type": { + "type": "string", + "pattern": "^[\\w\\.\\-\\+]+/[\\w\\.\\-\\+]+(\\.\\w+)*$", + "title": "Mime Type", + "description": "MIME type of the file", + "examples": ["application/pdf"] + }, + "part_count": { + "type": "integer", + "maximum": 10000, + "minimum": 1, + "title": "Part Count", + "description": "Number of parts to split the upload into", + "default": 1, + "examples": [3] + } + }, + "type": "object", + "required": ["filename", "file_size", "mime_type"], + "title": "CreateMultipartUploadRequest" + }, + "CreateMultipartUploadResponse": { + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "The multipart upload ID (use this to complete or abort)" + }, + "part_urls": { + "items": { "$ref": "#/components/schemas/MultipartUploadPartUrl" }, + "type": "array", + "title": "Part Urls", + "description": "Presigned URLs for uploading parts" + } + }, + "type": "object", + "required": ["id", "part_urls"], + "title": "CreateMultipartUploadResponse" + }, + "CreatedJsonSchema": { + "properties": { + "json_schema": { + "additionalProperties": true, + "type": "object", + "title": "Json Schema", + "description": "The created JSON schema" + } + }, + "type": "object", + "required": ["json_schema"], + "title": "CreatedJsonSchema", + "description": "Result of creating a JSON schema." + }, + "CursorPaginationResponse": { + "properties": { + "has_more": { + "type": "boolean", + "title": "Has More", + "description": "Contextual direction-aware flag: True if more items exist in the requested pagination direction. For 'after': more items after this page. For 'before': more items before this page.", + "examples": [true, false] + }, + "first_cursor": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "First Cursor", + "description": "Cursor of the first item in this page. Use for backward pagination. None if page is empty.", + "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ==", null] + }, + "last_cursor": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Last Cursor", + "description": "Cursor of the last item in this page. Use for forward pagination. None if page is empty.", + "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMFQyMzo1OTo1OS4wMDBaIiwiaWQiOiJ4eXo3ODkifQ==", null] + }, + "total": { + "anyOf": [{ "type": "integer" }, { "type": "null" }], + "title": "Total", + "description": "Total number of items available across all pages. Only included when include_total=true was requested. Expensive operation - use sparingly.", + "examples": [42, 0, null] + } + }, + "type": "object", + "required": ["has_more", "first_cursor", "last_cursor"], + "title": "CursorPaginationResponse", + "description": "Response model for cursor-based pagination." + }, + "DailyCostBucket": { + "properties": { + "day": { + "type": "string", + "format": "date-time", + "title": "Day", + "description": "The date of the cost bucket" + }, + "cost": { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", + "title": "Cost", + "description": "The cost of the cost bucket" + }, + "cost_per_metric": { + "additionalProperties": { "type": "string", "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, + "type": "object", + "title": "Cost Per Metric", + "description": "The cost per metric" + } + }, + "type": "object", + "required": ["day", "cost", "cost_per_metric"], + "title": "DailyCostBucket", + "description": "Daily cost bucket." + }, + "DataSource": { + "properties": { + "id": { "type": "string", "title": "Id", "description": "The ID of the data source" }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At", + "description": "The creation time of the data source" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "title": "Updated At", + "description": "The last update time of the data source" + }, + "type": { "$ref": "#/components/schemas/DataSourceType", "description": "The type of data source" }, + "name": { "type": "string", "title": "Name", "description": "The name of the data source" }, + "metadata": { + "anyOf": [{}, { "type": "null" }], + "title": "Metadata", + "description": "The metadata of the data source" + }, + "auth_params": { + "anyOf": [ + { + "oneOf": [ + { "$ref": "#/components/schemas/DataSourceOAuth2Params" }, + { "$ref": "#/components/schemas/DataSourceApiKeyParams" } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "api_key": "#/components/schemas/DataSourceApiKeyParams", + "oauth2": "#/components/schemas/DataSourceOAuth2Params" + } + } + }, + { "type": "null" } + ], + "title": "Auth Params", + "description": "Authentication parameters" + }, + "object": { + "type": "string", + "const": "data_source", + "title": "Object", + "description": "The type of the object", + "default": "data_source" + } + }, + "type": "object", + "required": ["id", "created_at", "updated_at", "type", "name", "metadata", "auth_params"], + "title": "DataSource", + "description": "Service-level representation of a data source." + }, + "DataSourceApiKeyParams": { + "properties": { + "type": { "type": "string", "const": "api_key", "title": "Type", "default": "api_key" }, + "api_key": { "type": "string", "title": "Api Key", "description": "The API key" } + }, + "type": "object", + "required": ["api_key"], + "title": "DataSourceApiKeyParams", + "description": "Authentication parameters for a API key data source." + }, + "DataSourceConnector": { + "properties": { + "id": { "type": "string", "title": "Id", "description": "The ID of the connector" }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At", + "description": "The creation time of the connector" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "title": "Updated At", + "description": "The last update time of the connector" + }, + "store_id": { "type": "string", "title": "Store Id", "description": "The ID of the store" }, + "data_source_id": { "type": "string", - "title": "Tool Name", - "description": "Name of the tool invoked (gen_ai.tool.name)", - "examples": ["search_batch"] + "title": "Data Source Id", + "description": "The ID of the data source" }, - "tool_type": { + "name": { "type": "string", - "enum": ["function", "extension", "datastore"], - "title": "Tool Type", - "description": "Category of the tool (gen_ai.tool.type)", - "default": "function" + "title": "Name", + "description": "The name of the connector", + "default": "New Connector" + }, + "metadata": { + "anyOf": [{}, { "type": "null" }], + "title": "Metadata", + "description": "The metadata of the connector" + }, + "polling_interval": { + "type": "string", + "format": "duration", + "title": "Polling Interval", + "description": "The polling interval of the connector" }, "started_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Started At", + "description": "The start time of the connector" + }, + "finished_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Finished At", + "description": "The finish time of the connector" + }, + "last_synced_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Last Synced At", + "description": "The last sync time of the connector" + }, + "status": { + "$ref": "#/components/schemas/SyncStatus", + "description": "The sync status of the connector" + }, + "error": { + "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], + "title": "Error", + "description": "The sync error of the connector" + }, + "object": { + "type": "string", + "const": "data_source.connector", + "title": "Object", + "description": "The type of the object", + "default": "data_source.connector" + } + }, + "type": "object", + "required": [ + "id", + "created_at", + "updated_at", + "store_id", + "data_source_id", + "metadata", + "polling_interval", + "started_at", + "finished_at", + "last_synced_at", + "status", + "error" + ], + "title": "DataSourceConnector", + "description": "Service-level representation of a connector." + }, + "DataSourceConnectorCreateParams": { + "properties": { + "store_id": { "type": "string", "title": "Store Id", "description": "The ID of the store" }, + "name": { + "type": "string", + "title": "Name", + "description": "The name of the connector", + "default": "New Connector" + }, + "trigger_sync": { + "type": "boolean", + "title": "Trigger Sync", + "description": "Whether the connector should be synced after creation", + "default": true + }, + "metadata": { + "anyOf": [{}, { "type": "null" }], + "title": "Metadata", + "description": "The metadata of the connector" + }, + "polling_interval": { + "anyOf": [{ "type": "integer" }, { "type": "string" }, { "type": "null" }], + "title": "Polling Interval", + "description": "Polling interval for the connector. Defaults to 30 minutes if not specified. Can be provided as:\n- int: Number of seconds (e.g., 1800 for 30 minutes)\n- str: Duration string (e.g., '30m', '1h', '2d') or ISO 8601 format (e.g., 'PT30M', 'P1D')\nValid range: 15 seconds to 30 days", + "examples": [1800, "30m", "1h", "PT30M"] + } + }, + "type": "object", + "required": ["store_id"], + "title": "DataSourceConnectorCreateParams", + "description": "Parameters for creating a connector." + }, + "DataSourceConnectorDeleted": { + "properties": { + "id": { "type": "string", "title": "Id", "description": "The ID of the connector" }, + "deleted": { + "type": "boolean", + "title": "Deleted", + "description": "Whether the connector was deleted", + "default": true + }, + "object": { + "type": "string", + "const": "data_source.connector", + "title": "Object", + "description": "The type of the object", + "default": "data_source.connector" + } + }, + "type": "object", + "required": ["id"], + "title": "DataSourceConnectorDeleted", + "description": "Deleted connector." + }, + "DataSourceConnectorUpdateParams": { + "properties": { + "name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Name", + "description": "The name of the connector" + }, + "metadata": { + "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], + "title": "Metadata", + "description": "The metadata of the connector" + }, + "trigger_sync": { + "anyOf": [{ "type": "boolean" }, { "type": "null" }], + "title": "Trigger Sync", + "description": "Whether the connector should be synced after update" + }, + "polling_interval": { + "anyOf": [{ "type": "integer" }, { "type": "string" }, { "type": "null" }], + "title": "Polling Interval", + "description": "Polling interval for the connector. Defaults to 30 minutes if not specified. Can be provided as:\n- int: Number of seconds (e.g., 1800 for 30 minutes)\n- str: Duration string (e.g., '30m', '1h', '2d') or ISO 8601 format (e.g., 'PT30M', 'P1D')\nValid range: 15 seconds to 30 days", + "examples": [1800, "30m", "1h", "PT30M"] + } + }, + "type": "object", + "title": "DataSourceConnectorUpdateParams", + "description": "Parameters for updating a connector." + }, + "DataSourceDeleted": { + "properties": { + "id": { "type": "string", "title": "Id", "description": "The ID of the data source" }, + "deleted": { + "type": "boolean", + "title": "Deleted", + "description": "Whether the data source was deleted", + "default": true + }, + "object": { + "type": "string", + "const": "data_source", + "title": "Object", + "description": "The type of the object", + "default": "data_source" + } + }, + "type": "object", + "required": ["id"], + "title": "DataSourceDeleted", + "description": "Deleted data source." + }, + "DataSourceInstallation": { + "properties": { + "installation_id": { + "type": "string", + "title": "Installation Id", + "description": "Integration installation ID" + }, + "provider": { + "type": "string", + "title": "Provider", + "description": "The integration provider identifier" + }, + "display_name": { + "type": "string", + "title": "Display Name", + "description": "Human-readable connected account/workspace name" + }, + "status": { "type": "string", "title": "Status", "description": "The installation status" }, + "store_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Store Id", + "description": "Mixedbread ingestion store ID" + }, + "store_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Store Name", + "description": "Mixedbread ingestion store name" + }, + "item_count": { + "type": "integer", + "title": "Item Count", + "description": "Number of selected ingestion items (channels/folders)", + "default": 0 + } + }, + "type": "object", + "required": ["installation_id", "provider", "display_name", "status"], + "title": "DataSourceInstallation", + "description": "Provider-agnostic summary of a connected data source for the overview list." + }, + "DataSourceInstallationListResponse": { + "properties": { + "data": { + "items": { "$ref": "#/components/schemas/DataSourceInstallation" }, + "type": "array", + "title": "Data", + "description": "Connected data sources" + } + }, + "type": "object", + "required": ["data"], + "title": "DataSourceInstallationListResponse", + "description": "List of all connected data sources across providers." + }, + "DataSourceListResponse": { + "properties": { + "pagination": { "$ref": "#/components/schemas/CursorPaginationResponse" }, + "data": { + "items": { "$ref": "#/components/schemas/DataSource" }, + "type": "array", + "title": "Data", + "description": "The list of data sources" + }, + "object": { + "type": "string", + "const": "list", + "title": "Object", + "description": "The object type of the response", + "default": "list" + } + }, + "type": "object", + "required": ["pagination", "data"], + "title": "DataSourceListResponse", + "description": "A list of data sources with pagination." + }, + "DataSourceOAuth2Params": { + "properties": { + "type": { "type": "string", "const": "oauth2", "title": "Type", "default": "oauth2" }, + "created_at": { "type": "string", "format": "date-time", - "title": "Started At", - "description": "Time when the tool call began" + "title": "Created At", + "description": "The timestamp when the OAuth2 credentials were created" + }, + "scope": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Scope", + "description": "The OAuth2 scope", + "default": "read" + }, + "access_token": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Access Token", + "description": "The OAuth2 access token" + }, + "refresh_token": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Refresh Token", + "description": "The OAuth2 refresh token" }, - "duration": { - "type": "string", - "format": "duration", - "title": "Duration", - "description": "Time taken to execute the tool call" + "token_type": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Token Type", + "description": "The OAuth2 token type" }, - "arguments": { - "additionalProperties": true, - "type": "object", - "title": "Arguments", - "description": "Arguments passed to the tool (gen_ai.tool.call.arguments)" + "expires_on": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Expires On", + "description": "The OAuth2 token expiration timestamp" }, - "result": { + "additional_params": { "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], - "title": "Result", - "description": "Result returned to the model (gen_ai.tool.call.result). None if the tool errored." - }, - "error": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Error", - "description": "Error message if the tool call failed" + "title": "Additional Params", + "description": "Additional parameters for the OAuth2 flow" } }, "type": "object", - "required": ["tool_call_id", "tool_name", "started_at", "duration", "arguments"], - "title": "AgenticToolCall", - "description": "Represents a single tool call made by the agent during an agentic search.\n\nFields follow the OpenTelemetry GenAI semantic conventions for tool calls:\nhttps://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/" + "title": "DataSourceOAuth2Params", + "description": "Authentication parameters for a OAuth data source." }, - "ApiKey": { + "DataSourceType": { "type": "string", "enum": ["notion", "linear"], "title": "DataSourceType" }, + "DeprecatedStoreFileUpsertParams": { "properties": { - "id": { "type": "string", "title": "Id", "description": "The ID of the API key" }, - "name": { "type": "string", "title": "Name", "description": "The name of the API key" }, - "redacted_value": { - "type": "string", - "title": "Redacted Value", - "description": "The redacted value of the API key" - }, - "expires_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Expires At", - "description": "The expiration datetime of the API key" + "metadata": { + "anyOf": [{}, { "type": "null" }], + "title": "Metadata", + "description": "Optional metadata for the file" }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At", - "description": "The creation datetime of the API key" + "config": { + "$ref": "#/components/schemas/StoreFileConfig", + "description": "Configuration for adding the file" }, - "updated_at": { - "type": "string", - "format": "date-time", - "title": "Updated At", - "description": "The last update datetime of the API key" + "external_id": { + "anyOf": [{ "type": "string", "maxLength": 256 }, { "type": "null" }], + "title": "External Id", + "description": "External identifier for this file in the store" }, - "last_active_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Last Active At", - "description": "The last active datetime of the API key" + "overwrite": { + "type": "boolean", + "title": "Overwrite", + "description": "If true, overwrite an existing file with the same external_id", + "default": true, + "examples": [false, true] }, - "object": { + "file_id": { "type": "string", - "const": "api_key", - "title": "Object", - "description": "The type of the object", - "default": "api_key" + "format": "uuid", + "title": "File Id", + "description": "ID of the file to add" }, - "scope": { - "anyOf": [ - { "items": { "$ref": "#/components/schemas/Scope" }, "type": "array" }, - { "type": "null" } - ], - "title": "Scope", - "description": "The scope of the API key" + "experimental": { + "anyOf": [{ "$ref": "#/components/schemas/StoreFileConfig" }, { "type": "null" }], + "description": "Strategy for adding the file. This field is deprecated. Please use the top-level 'config' field instead. If this is provided, it will override the top-level 'config' field.", + "deprecated": true } }, "type": "object", - "required": ["id", "name", "redacted_value", "created_at", "updated_at"], - "title": "ApiKey", - "description": "Response model for an API key." - }, - "ApiKeyCreateOrUpdateParams": { - "properties": { - "type": { "type": "string", "const": "api_key", "title": "Type", "default": "api_key" }, - "api_key": { "type": "string", "title": "Api Key", "description": "The API key" } - }, - "type": "object", - "required": ["api_key"], - "title": "ApiKeyCreateOrUpdateParams", - "description": "Base class for API key create or update parameters." + "required": ["file_id"], + "title": "DeprecatedStoreFileUpsertParams" }, - "ApiKeyCreateParams": { + "DocumentParserResult": { "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "A name/description for the API key", - "default": "API Key" + "chunking_strategy": { + "$ref": "#/components/schemas/ChunkingStrategy", + "description": "The strategy used for chunking the document" }, - "scope": { - "anyOf": [ - { "items": { "$ref": "#/components/schemas/Scope" }, "type": "array" }, - { "type": "null" } - ], - "title": "Scope", - "description": "The scope of the API key" + "return_format": { + "$ref": "#/components/schemas/ReturnFormat", + "description": "The format of the returned content" }, - "expires_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Expires At", - "description": "Optional expiration datetime" + "element_types": { + "items": { "$ref": "#/components/schemas/ElementType" }, + "type": "array", + "title": "Element Types", + "description": "The types of elements extracted" + }, + "chunks": { + "items": { "$ref": "#/components/schemas/Chunk" }, + "type": "array", + "title": "Chunks", + "description": "List of extracted chunks from the document" + }, + "page_sizes": { + "items": { + "prefixItems": [{ "type": "integer" }, { "type": "integer" }], + "type": "array", + "maxItems": 2, + "minItems": 2 + }, + "type": "array", + "title": "Page Sizes", + "description": "List of (width, height) tuples for each page" } }, "type": "object", - "title": "ApiKeyCreateParams", - "description": "Parameters for creating an API key." + "required": ["chunking_strategy", "return_format", "element_types", "chunks"], + "title": "DocumentParserResult", + "description": "Result of document parsing operation." }, - "ApiKeyCreated": { + "ElementType": { + "type": "string", + "enum": [ + "header", + "footer", + "title", + "section-header", + "page-number", + "list-item", + "figure", + "table", + "form", + "text", + "footnote" + ], + "title": "ElementType", + "description": "Types of elements that can be extracted from a document." + }, + "Embedding": { "properties": { - "id": { "type": "string", "title": "Id", "description": "The ID of the API key" }, - "name": { "type": "string", "title": "Name", "description": "The name of the API key" }, - "redacted_value": { - "type": "string", - "title": "Redacted Value", - "description": "The redacted value of the API key" - }, - "expires_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Expires At", - "description": "The expiration datetime of the API key" - }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At", - "description": "The creation datetime of the API key" - }, - "updated_at": { - "type": "string", - "format": "date-time", - "title": "Updated At", - "description": "The last update datetime of the API key" + "embedding": { + "$ref": "#/components/schemas/EmbeddingItem", + "description": "The encoded embedding." }, - "last_active_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Last Active At", - "description": "The last active datetime of the API key" + "index": { + "type": "integer", + "title": "Index", + "description": "The index of the embedding.", + "examples": [0] }, "object": { "type": "string", - "const": "api_key", + "const": "embedding", "title": "Object", - "description": "The type of the object", - "default": "api_key" + "description": "The object type of the embedding.", + "default": "embedding", + "examples": ["embedding"] + } + }, + "type": "object", + "required": ["embedding", "index"], + "title": "Embedding" + }, + "EmbeddingCreateParams": { + "properties": { + "model": { + "type": "string", + "maxLength": 500, + "minLength": 1, + "title": "Model", + "description": "The model to use for creating embeddings.", + "examples": ["mixedbread-ai/mxbai-embed-large-v1"] }, - "scope": { + "input": { "anyOf": [ - { "items": { "$ref": "#/components/schemas/Scope" }, "type": "array" }, - { "type": "null" } + { "type": "string", "maxLength": 64000, "minLength": 1 }, + { "items": { "type": "string" }, "type": "array", "maxItems": 256, "minItems": 1 } ], - "title": "Scope", - "description": "The scope of the API key" + "title": "Input", + "description": "The input to create embeddings for." + }, + "dimensions": { + "anyOf": [{ "type": "integer", "exclusiveMinimum": 0 }, { "type": "null" }], + "title": "Dimensions", + "description": "The number of dimensions to use for the embeddings.", + "examples": [768] }, - "value": { "type": "string", "title": "Value", "description": "The value of the API key" } - }, - "type": "object", - "required": ["id", "name", "redacted_value", "created_at", "updated_at", "value"], - "title": "ApiKeyCreated", - "description": "Response model for creating an API key." - }, - "ApiKeyDeleted": { - "properties": { - "id": { "type": "string", "title": "Id", "description": "The ID of the deleted API key" }, - "deleted": { + "prompt": { + "anyOf": [{ "type": "string", "maxLength": 32000, "minLength": 1 }, { "type": "null" }], + "title": "Prompt", + "description": "The prompt to use for the embedding creation.", + "examples": ["Provide a detailed summary of the following text."] + }, + "normalized": { "type": "boolean", - "title": "Deleted", - "description": "Whether the API key was deleted" + "title": "Normalized", + "description": "Whether to normalize the embeddings.", + "default": true, + "examples": [true] }, - "object": { - "type": "string", - "const": "api_key", - "title": "Object", - "description": "The type of the object deleted", - "default": "api_key" + "encoding_format": { + "anyOf": [ + { "$ref": "#/components/schemas/EncodingFormat" }, + { "items": { "$ref": "#/components/schemas/EncodingFormat" }, "type": "array" } + ], + "title": "Encoding Format", + "description": "The encoding format(s) of the embeddings. Can be a single format or a list of formats.", + "default": "float", + "examples": ["float", ["int8", "float"]] } }, "type": "object", - "required": ["id", "deleted"], - "title": "ApiKeyDeleted", - "description": "Response model for deleting an API key." + "required": ["model", "input"], + "title": "EmbeddingCreateParams", + "description": "Parameters for creating embeddings." }, - "ApiKeyListResponse": { + "EmbeddingCreateResponse": { "properties": { - "pagination": { "$ref": "#/components/schemas/PaginationWithTotal" }, + "usage": { + "$ref": "#/components/schemas/Usage", + "description": "The usage of the model", + "examples": [{ "completion_tokens": 10, "prompt_tokens": 10, "total_tokens": 20 }] + }, + "model": { "type": "string", "title": "Model", "description": "The model used" }, + "data": { + "anyOf": [ + { "items": { "$ref": "#/components/schemas/Embedding" }, "type": "array" }, + { "items": { "$ref": "#/components/schemas/MultiEncodingEmbedding" }, "type": "array" } + ], + "title": "Data", + "description": "The created embeddings." + }, "object": { "type": "string", "const": "list", @@ -4446,322 +6868,385 @@ "description": "The object type of the response", "default": "list" }, - "data": { - "items": { "$ref": "#/components/schemas/ApiKey" }, - "type": "array", - "title": "Data", - "description": "The list of API keys" - } - }, - "type": "object", - "required": ["pagination", "data"], - "title": "ApiKeyListResponse" - }, - "ApiKeyUpdateParams": { - "properties": { - "name": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Name", - "description": "A name/description for the API key" + "normalized": { + "type": "boolean", + "title": "Normalized", + "description": "Whether the embeddings are normalized.", + "examples": [true] }, - "expires_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Expires At", - "description": "Optional expiration datetime" + "encoding_format": { + "anyOf": [ + { "$ref": "#/components/schemas/EncodingFormat" }, + { "items": { "$ref": "#/components/schemas/EncodingFormat" }, "type": "array" } + ], + "title": "Encoding Format", + "description": "The encoding formats of the embeddings.", + "examples": ["float"] + }, + "dimensions": { + "anyOf": [{ "type": "integer" }, { "type": "null" }], + "title": "Dimensions", + "description": "The number of dimensions used for the embeddings.", + "examples": [768] } }, "type": "object", - "title": "ApiKeyUpdateParams", - "description": "Parameters for updating an API key." + "required": ["usage", "model", "data", "normalized", "encoding_format", "dimensions"], + "title": "EmbeddingCreateResponse" }, - "AudioChunkGeneratedMetadata": { - "properties": { - "type": { "type": "string", "const": "audio", "title": "Type", "default": "audio" }, - "file_type": { "type": "string", "title": "File Type", "default": "audio/mpeg" }, - "file_size": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "File Size" }, - "total_duration_seconds": { - "anyOf": [{ "type": "number" }, { "type": "null" }], - "title": "Total Duration Seconds" - }, - "sample_rate": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Sample Rate" }, - "channels": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Channels" }, - "audio_format": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Audio Format" }, - "bpm": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Bpm" }, - "file_extension": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "File Extension" } - }, - "additionalProperties": true, - "type": "object", - "title": "AudioChunkGeneratedMetadata" + "EmbeddingItem": { + "anyOf": [ + { "items": { "type": "number" }, "type": "array" }, + { "items": { "type": "integer" }, "type": "array" }, + { "type": "string" } + ], + "title": "EmbeddingItem", + "description": "The encoded embedding data by encoding format.", + "examples": [0.1, 0.2, 0.3] }, - "AudioUrl": { + "EncodingFormat": { + "type": "string", + "enum": ["float", "float16", "base64", "binary", "ubinary", "int8", "uint8"], + "title": "EncodingFormat", + "description": "Enumeration of encoding formats." + }, + "EnhancedJsonSchema": { "properties": { - "url": { - "type": "string", - "title": "Url", - "description": "The audio URL. Can be either a URL or a Data URI." + "json_schema": { + "additionalProperties": true, + "type": "object", + "title": "Json Schema", + "description": "The enhanced JSON schema" } }, "type": "object", - "required": ["url"], - "title": "AudioUrl", - "description": "Model for audio URL validation." + "required": ["json_schema"], + "title": "EnhancedJsonSchema", + "description": "Result of enhancing a JSON schema." }, - "AudioUrlInputChunk": { + "ErrorResponse": { + "properties": { "error": { "$ref": "#/components/schemas/InnerErrorResponse" } }, + "type": "object", + "required": ["error"], + "title": "ErrorResponse", + "description": "Error Pydantic Response Service Message" + }, + "ExpiresAfter": { "properties": { - "chunk_index": { - "type": "integer", - "title": "Chunk Index", - "description": "position of the chunk in a file", - "examples": [0, 1, 2, 3, 4] - }, - "mime_type": { - "type": "string", - "title": "Mime Type", - "description": "mime type of the chunk", - "default": "audio/mpeg", - "examples": ["audio/mpeg"] - }, - "generated_metadata": { - "anyOf": [ - { - "oneOf": [ - { "$ref": "#/components/schemas/MarkdownChunkGeneratedMetadata" }, - { "$ref": "#/components/schemas/TextChunkGeneratedMetadata" }, - { "$ref": "#/components/schemas/PDFChunkGeneratedMetadata" }, - { "$ref": "#/components/schemas/CodeChunkGeneratedMetadata" }, - { "$ref": "#/components/schemas/AudioChunkGeneratedMetadata" }, - { "$ref": "#/components/schemas/VideoChunkGeneratedMetadata" }, - { "$ref": "#/components/schemas/ImageChunkGeneratedMetadata" } - ], - "discriminator": { - "propertyName": "type", - "mapping": { - "audio": "#/components/schemas/AudioChunkGeneratedMetadata", - "code": "#/components/schemas/CodeChunkGeneratedMetadata", - "image": "#/components/schemas/ImageChunkGeneratedMetadata", - "markdown": "#/components/schemas/MarkdownChunkGeneratedMetadata", - "pdf": "#/components/schemas/PDFChunkGeneratedMetadata", - "text": "#/components/schemas/TextChunkGeneratedMetadata", - "video": "#/components/schemas/VideoChunkGeneratedMetadata" - } - } - }, - { "type": "null" } - ], - "title": "Generated Metadata", - "description": "metadata of the chunk", - "examples": [ - { - "file_size": 1024, - "file_type": "text/plain", - "language": "en", - "type": "text", - "word_count": 100 - } - ] - }, - "model": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Model", - "description": "model used for this chunk", - "examples": ["text-embedding-ada-002", "clip-vit-large-patch14"] - }, - "type": { + "anchor": { "type": "string", - "const": "audio_url", - "title": "Type", - "description": "Input type identifier", - "default": "audio_url" - }, - "transcription": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Transcription", - "description": "speech recognition (sr) text of the audio", - "examples": ["The year 2025 reports for .."] - }, - "summary": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Summary", - "description": "summary of the audio", - "examples": ["A financial report audio for 2025"] - }, - "audio_url": { - "anyOf": [{ "$ref": "#/components/schemas/AudioUrl" }, { "type": "null" }], - "description": "Audio URL" + "const": "last_active_at", + "title": "Anchor", + "description": "Anchor date for the expiration policy", + "default": "last_active_at" }, - "sampling_rate": { + "days": { "type": "integer", - "title": "Sampling Rate", - "description": "The sampling rate of the audio." + "title": "Days", + "description": "Number of days after which the store expires", + "default": 30 } }, "type": "object", - "required": ["chunk_index", "sampling_rate"], - "title": "AudioUrlInputChunk" + "title": "ExpiresAfter", + "description": "Represents an expiration policy for a store." }, - "BalanceInfo": { + "ExtractContentCreateParams": { "properties": { - "current_balance": { - "type": "number", - "title": "Current Balance", - "description": "The current balance" + "content": { + "anyOf": [ + { "type": "string" }, + { "items": { "type": "string" }, "type": "array" }, + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/TextInput" }, + { "$ref": "#/components/schemas/ImageUrlInput" } + ] + }, + "type": "array" + } + ], + "minLength": 1, + "title": "Content", + "description": "The content to extract from" }, - "next_effective_balance": { - "type": "number", - "title": "Next Effective Balance", - "description": "The next effective balance" + "json_schema": { + "additionalProperties": true, + "type": "object", + "title": "Json Schema", + "description": "The JSON schema to use for extraction" }, - "next_effective_date": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Next Effective Date", - "description": "The next effective date" + "instructions": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Instructions", + "description": "Additional instructions for the extraction" } }, "type": "object", - "title": "BalanceInfo", - "description": "Information about an organization's credit balance." + "required": ["content", "json_schema"], + "title": "ExtractContentCreateParams", + "description": "Parameters for extracting content using a schema." }, - "BillingPeriodSummary": { + "ExtractJobCreateParams": { "properties": { - "period": { "$ref": "#/components/schemas/Period", "description": "The billing period" }, - "cost": { "$ref": "#/components/schemas/CostInfo", "description": "The cost information" }, - "balance": { "$ref": "#/components/schemas/BalanceInfo", "description": "The balance information" }, - "usages": { - "additionalProperties": { "$ref": "#/components/schemas/UsageInfo" }, - "type": "object", - "title": "Usages", - "description": "The monthly usages information per metric" - }, - "generated_at": { + "file_id": { "type": "string", - "format": "date-time", - "title": "Generated At", - "description": "The date and time the summary was generated" + "title": "File Id", + "description": "The ID of the file to extract from" + }, + "json_schema": { + "additionalProperties": true, + "type": "object", + "title": "Json Schema", + "description": "The JSON schema to use for extraction" } }, "type": "object", - "required": ["period", "cost", "balance", "usages", "generated_at"], - "title": "BillingPeriodSummary", - "description": "High level billing summary for the currently active period." + "required": ["file_id", "json_schema"], + "title": "ExtractJobCreateParams", + "description": "Parameters for creating an extraction job." }, - "Body_create_file": { + "ExtractionJob": { "properties": { - "file": { + "id": { "type": "string", - "format": "binary", - "title": "File", - "description": "The file to upload" + "format": "uuid", + "title": "Id", + "description": "Unique identifier for the extraction job" + }, + "organization_id": { + "type": "string", + "format": "uuid", + "title": "Organization Id", + "description": "ID of the organization that owns this job" + }, + "file_id": { + "type": "string", + "format": "uuid", + "title": "File Id", + "description": "ID of the file being extracted" + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At", + "description": "When the job was created" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "title": "Updated At", + "description": "When the job was last updated" + }, + "started_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Started At", + "description": "When the job started processing" + }, + "finished_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Finished At", + "description": "When the job finished processing" + }, + "status": { + "$ref": "#/components/schemas/ParsingJobStatus", + "description": "Current status of the job" + }, + "result": { + "anyOf": [{ "$ref": "#/components/schemas/ExtractionResult" }, { "type": "null" }], + "description": "The extraction results if completed" + }, + "error": { + "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], + "title": "Error", + "description": "Error information if failed" + }, + "json_schema": { + "additionalProperties": true, + "type": "object", + "title": "Json Schema", + "description": "The JSON schema used for extraction" } }, "type": "object", - "required": ["file"], - "title": "Body_create_file" + "required": [ + "id", + "organization_id", + "file_id", + "created_at", + "updated_at", + "started_at", + "finished_at", + "status", + "result", + "error", + "json_schema" + ], + "title": "ExtractionJob", + "description": "A job for extracting structured data from documents." }, - "Body_update_file": { + "ExtractionResult": { "properties": { - "file": { - "type": "string", - "format": "binary", - "title": "File", - "description": "The file to update" - } + "data": { "additionalProperties": true, "type": "object", "title": "Data" }, + "warnings": { "items": { "type": "string" }, "type": "array", "title": "Warnings" } }, "type": "object", - "required": ["file"], - "title": "Body_update_file" + "required": ["data", "warnings"], + "title": "ExtractionResult", + "description": "The result of an extraction job." }, - "Body_upload_store_file": { + "FileCounts": { "properties": { - "file": { - "type": "string", - "format": "binary", - "title": "File", - "description": "The file to upload and index" + "pending": { + "type": "integer", + "title": "Pending", + "description": "Number of files waiting to be processed", + "default": 0, + "examples": [5] }, - "params": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Params" } + "in_progress": { + "type": "integer", + "title": "In Progress", + "description": "Number of files currently being processed", + "default": 0, + "examples": [5] + }, + "cancelled": { + "type": "integer", + "title": "Cancelled", + "description": "Number of files whose processing was cancelled", + "default": 0, + "examples": [2] + }, + "completed": { + "type": "integer", + "title": "Completed", + "description": "Number of successfully processed files", + "default": 0, + "examples": [42] + }, + "failed": { + "type": "integer", + "title": "Failed", + "description": "Number of files that failed processing", + "default": 0, + "examples": [1] + }, + "total": { + "type": "integer", + "title": "Total", + "description": "Total number of files", + "default": 0, + "examples": [50] + } }, "type": "object", - "required": ["file"], - "title": "Body_upload_store_file" + "title": "FileCounts", + "description": "Tracks counts of files in different states within a store." }, - "Chunk": { + "FileDeleted": { "properties": { - "content": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Content", - "description": "The full content of the chunk" + "id": { "type": "string", "title": "Id", "description": "The ID of the deleted file" }, + "deleted": { + "type": "boolean", + "title": "Deleted", + "description": "Whether the file was deleted", + "default": true }, - "content_to_embed": { + "object": { + "type": "string", + "const": "file", + "title": "Object", + "description": "The type of the deleted object", + "default": "file" + } + }, + "type": "object", + "required": ["id"], + "title": "FileDeleted" + }, + "FileListResponse": { + "properties": { + "pagination": { "$ref": "#/components/schemas/CursorPaginationResponse" }, + "object": { "type": "string", - "title": "Content To Embed", - "description": "The content of the chunk to embed" + "const": "list", + "title": "Object", + "description": "The object type of the response", + "default": "list" }, - "elements": { - "items": { "$ref": "#/components/schemas/ChunkElement" }, + "data": { + "items": { "$ref": "#/components/schemas/FileObject" }, "type": "array", - "title": "Elements", - "description": "List of elements contained in this chunk" + "title": "Data", + "description": "The list of files" } }, "type": "object", - "required": ["content_to_embed", "elements"], - "title": "Chunk", - "description": "A chunk of text extracted from a document page." + "required": ["pagination", "data"], + "title": "FileListResponse" }, - "ChunkElement": { + "FileObject": { "properties": { - "type": { - "$ref": "#/components/schemas/ElementType", - "description": "The type of the extracted element" - }, - "confidence": { - "type": "number", - "maximum": 1, - "minimum": 0, - "title": "Confidence", - "description": "The confidence score of the extraction" + "id": { + "type": "string", + "title": "Id", + "description": "Unique identifier for the file", + "examples": ["file_abc123", "file_xyz789"] }, - "bbox": { - "prefixItems": [ - { "type": "number" }, - { "type": "number" }, - { "type": "number" }, - { "type": "number" } - ], - "type": "array", - "maxItems": 4, - "minItems": 4, - "title": "Bbox", - "description": "The bounding box coordinates [x1, y1, x2, y2]" + "filename": { + "type": "string", + "minLength": 1, + "title": "Filename", + "description": "Name of the file including extension", + "examples": ["document.pdf", "image.jpg"] }, - "page": { + "bytes": { "type": "integer", - "minimum": 0, - "title": "Page", - "description": "The page number where the element was found" + "exclusiveMinimum": 0, + "title": "Bytes", + "description": "Size of the file in bytes", + "examples": [1024, 2048] }, - "content": { + "mime_type": { "type": "string", - "title": "Content", - "description": "The extracted text content of the element" + "pattern": "^[\\w\\.\\-\\+]+/[\\w\\.\\-\\+]+(\\.\\w+)*$", + "title": "Mime Type", + "description": "MIME type of the file", + "examples": [ + "application/pdf", + "image/jpeg", + "application/vnd.openxmlformats-officedocument.presentationml.presentation", + "application/x-ipynb+json" + ] }, - "summary": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Summary", - "description": "A brief summary of the element's content" + "version": { + "type": "integer", + "minimum": 1, + "title": "Version", + "description": "Version of the file", + "examples": [1, 2] }, - "image": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Image", - "description": "The base64-encoded image data for figure elements" + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At", + "description": "Timestamp when the file was created" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "title": "Updated At", + "description": "Timestamp when the file was last updated" } }, "type": "object", - "required": ["type", "confidence", "bbox", "page", "content"], - "title": "ChunkElement", - "description": "Represents an extracted element from a document with its content and metadata." + "required": ["id", "filename", "bytes", "mime_type", "version", "created_at", "updated_at"], + "title": "FileObject", + "description": "A model representing a file object in the system.\n\nThis model contains metadata about files stored in the system, including\nidentifiers, size information, and timestamps." }, - "ChunkSearchResultRule": { + "FileSearchResultRule": { "properties": { "query": { "type": "string", "title": "Query", "description": "The query to trigger the rule" }, "store_id": { @@ -4771,20 +7256,21 @@ }, "type": { "type": "string", - "const": "chunk_search_result", + "const": "file_search_result", "title": "Type", "description": "The type of substitution" }, "file_id": { "type": "string", "title": "File Id", - "description": "The file ID of the chunk to substitute" + "description": "The file ID of the file to substitute" }, "chunk_index": { "type": "integer", "minimum": 0, "title": "Chunk Index", - "description": "The index of the chunk to substitute" + "description": "An optional chunk index to use for the chunk substitution", + "default": 0 }, "result_index": { "type": "integer", @@ -4794,428 +7280,519 @@ } }, "type": "object", - "required": ["query", "store_id", "type", "file_id", "chunk_index", "result_index"], - "title": "ChunkSearchResultRule", - "description": "Represents a chunk search result rule for a vector store search." - }, - "ChunkingStrategy": { - "type": "string", - "enum": ["page"], - "title": "ChunkingStrategy", - "description": "Strategy used for chunking document content." + "required": ["query", "store_id", "type", "file_id", "result_index"], + "title": "FileSearchResultRule", + "description": "Represents a file search result rule for a vector store search." }, - "CodeChunkGeneratedMetadata": { + "GoogleDriveFolder": { "properties": { - "type": { "type": "string", "const": "code", "title": "Type", "default": "code" }, - "file_type": { "type": "string", "title": "File Type" }, - "language": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Language" }, - "word_count": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Word Count" }, - "file_size": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "File Size" }, - "start_line": { "type": "integer", "title": "Start Line", "default": 0 }, - "num_lines": { "type": "integer", "title": "Num Lines", "default": 0 }, - "file_extension": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "File Extension" } + "id": { "type": "string", "title": "Id", "description": "Google Drive folder ID" }, + "name": { "type": "string", "title": "Name", "description": "Google Drive folder name" }, + "is_selected": { + "type": "boolean", + "title": "Is Selected", + "description": "Whether this folder is selected for store ingestion", + "default": false + }, + "web_view_link": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Web View Link", + "description": "Google Drive web view link" + }, + "last_synced_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Last Synced At", + "description": "Last successful sync time" + } }, - "additionalProperties": true, "type": "object", - "required": ["file_type"], - "title": "CodeChunkGeneratedMetadata" + "required": ["id", "name"], + "title": "GoogleDriveFolder", + "description": "Google Drive folder exposed for connector configuration." }, - "CompleteMultipartUploadRequest": { + "GoogleDriveFolderSelection": { "properties": { - "parts": { - "items": { "$ref": "#/components/schemas/MultipartUploadPart" }, + "is_installed": { + "type": "boolean", + "title": "Is Installed", + "description": "Whether Google Drive is installed for the organization" + }, + "installation_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Installation Id", + "description": "Google Drive installation ID" + }, + "account_email": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Account Email", + "description": "Connected Google account email" + }, + "store_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Store Id", + "description": "Mixedbread store ID" + }, + "store_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Store Name", + "description": "Mixedbread store name" + }, + "auto_sync_all": { + "type": "boolean", + "title": "Auto Sync All", + "description": "Whether the entire Drive (all current and future files) is synced automatically", + "default": false + }, + "folders": { + "items": { "$ref": "#/components/schemas/GoogleDriveFolder" }, "type": "array", - "minItems": 1, - "title": "Parts", - "description": "List of completed parts with their ETags" + "title": "Folders", + "description": "Available Google Drive folders" } }, "type": "object", - "required": ["parts"], - "title": "CompleteMultipartUploadRequest" - }, - "ConditionOperator": { - "type": "string", - "enum": [ - "eq", - "not_eq", - "gt", - "gte", - "lt", - "lte", - "in", - "not_in", - "like", - "starts_with", - "not_like", - "regex" - ], - "title": "ConditionOperator", - "description": "Operator for a filter condition." + "required": ["is_installed", "folders"], + "title": "GoogleDriveFolderSelection", + "description": "Google Drive folder selection for a store connector." }, - "ConnectorListResponse": { + "GoogleDriveFolderSelectionResponse": { "properties": { - "pagination": { "$ref": "#/components/schemas/CursorPaginationResponse" }, "data": { - "items": { "$ref": "#/components/schemas/DataSourceConnector" }, + "$ref": "#/components/schemas/GoogleDriveFolderSelection", + "description": "Google Drive folder selection" + } + }, + "type": "object", + "required": ["data"], + "title": "GoogleDriveFolderSelectionResponse", + "description": "Google Drive folder selection response." + }, + "GoogleDriveFolderSelectionUpdate": { + "properties": { + "store_id": { "type": "string", "title": "Store Id", "description": "Mixedbread store ID" }, + "selected_folder_ids": { + "items": { "type": "string" }, "type": "array", - "title": "Data", - "description": "The list of connectors" + "title": "Selected Folder Ids", + "description": "Selected Google Drive folder IDs" }, - "object": { + "backfill_folder_ids": { + "items": { "type": "string" }, + "type": "array", + "title": "Backfill Folder Ids", + "description": "Folders queued for backfill ingestion" + }, + "skipped_folders": { + "additionalProperties": { "type": "string" }, + "type": "object", + "title": "Skipped Folders", + "description": "Folder IDs skipped with a reason" + } + }, + "type": "object", + "required": ["store_id", "selected_folder_ids", "backfill_folder_ids", "skipped_folders"], + "title": "GoogleDriveFolderSelectionUpdate", + "description": "Result of updating Google Drive folder selection." + }, + "GoogleDriveFolderSelectionUpdateParams": { + "properties": { + "installation_id": { "type": "string", - "const": "list", - "title": "Object", - "description": "The object type of the response", - "default": "list" + "format": "uuid", + "title": "Installation Id", + "description": "Google Drive installation ID" + }, + "folder_ids": { + "items": { "type": "string" }, + "type": "array", + "title": "Folder Ids", + "description": "Google Drive folder IDs to ingest into the store" } }, "type": "object", - "required": ["pagination", "data"], - "title": "ConnectorListResponse", - "description": "A list of connectors with pagination." + "required": ["installation_id", "folder_ids"], + "title": "GoogleDriveFolderSelectionUpdateParams", + "description": "Parameters for selecting Google Drive folders for store ingestion." }, - "ContextualizationConfig": { + "GoogleDriveFolderSelectionUpdateResponse": { "properties": { - "with_metadata": { - "anyOf": [{ "type": "boolean" }, { "items": { "type": "string" }, "type": "array" }], - "title": "With Metadata", - "description": "Include all metadata or specific fields in the contextualization. Supports dot notation for nested fields (e.g., 'author.name'). When True, all metadata is included (flattened). When a list, only specified fields are included.", - "default": false, - "examples": [true, false, ["title", "author.name", "author.email", "tags"]] + "data": { + "$ref": "#/components/schemas/GoogleDriveFolderSelectionUpdate", + "description": "Google Drive folder selection update" + } + }, + "type": "object", + "required": ["data"], + "title": "GoogleDriveFolderSelectionUpdateResponse", + "description": "Google Drive folder selection update response." + }, + "GoogleDriveInstallationConfigUpdateBody": { + "properties": { + "auto_sync_all": { + "type": "boolean", + "title": "Auto Sync All", + "description": "Whether the entire Drive (all current and future files) is synced automatically" + } + }, + "type": "object", + "required": ["auto_sync_all"], + "title": "GoogleDriveInstallationConfigUpdateBody", + "description": "Request body for updating a Google Drive installation's data source config." + }, + "GoogleDriveInstallationOverview": { + "properties": { + "installation_id": { + "type": "string", + "title": "Installation Id", + "description": "Google Drive installation ID" + }, + "account_email": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Account Email", + "description": "Connected Google account email" + }, + "account_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Account Name", + "description": "Connected Google account name" + }, + "status": { "type": "string", "title": "Status", "description": "The installation status" }, + "store_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Store Id", + "description": "Mixedbread ingestion store ID" }, - "with_file_context": { + "store_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Store Name", + "description": "Mixedbread ingestion store name" + }, + "syncing_folder_count": { + "type": "integer", + "title": "Syncing Folder Count", + "description": "Number of Google Drive folders selected for ingestion", + "default": 0 + }, + "auto_sync_all": { "type": "boolean", - "title": "With File Context", - "description": "Use an LLM to generate a short context for each text chunk that situates it within the full document, improving retrieval accuracy. Only applies to text content during non-sliced ingestion.", + "title": "Auto Sync All", + "description": "Whether the entire Drive is synced automatically", "default": false } }, "type": "object", - "title": "ContextualizationConfig" + "required": ["installation_id", "account_email", "account_name", "status"], + "title": "GoogleDriveInstallationOverview", + "description": "Summary of a connected Google Drive account for the data sources overview." }, - "CostHistogramResponse": { + "GoogleDriveInstallationOverviewListResponse": { "properties": { "data": { - "items": { "$ref": "#/components/schemas/DailyCostBucket" }, + "items": { "$ref": "#/components/schemas/GoogleDriveInstallationOverview" }, "type": "array", "title": "Data", - "description": "The histogram of cost information" - }, - "object": { - "type": "string", - "const": "cost.histogram", - "title": "Object", - "description": "The object type of the response", - "default": "cost.histogram" + "description": "Connected Google Drive accounts" } }, "type": "object", "required": ["data"], - "title": "CostHistogramResponse" + "title": "GoogleDriveInstallationOverviewListResponse", + "description": "List of connected Google Drive accounts for the data sources overview." }, - "CostInfo": { + "GoogleDriveSync": { "properties": { - "net_usage_cost": { - "type": "string", - "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", - "title": "Net Usage Cost", - "description": "The net usage cost", - "default": "0" - }, - "gross_usage_cost": { - "type": "string", - "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", - "title": "Gross Usage Cost", - "description": "The gross usage cost", - "default": "0" - }, - "balance_applied": { + "installation_id": { "type": "string", - "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", - "title": "Balance Applied", - "description": "The balance applied", - "default": "0" - }, - "phases": { - "items": { "$ref": "#/components/schemas/PhaseCostInfo" }, - "type": "array", - "title": "Phases", - "description": "The cost for each phase in descending order of end date", - "default": [] + "title": "Installation Id", + "description": "Google Drive installation ID" }, - "products": { - "items": { "$ref": "#/components/schemas/ProductCostInfo" }, - "type": "array", - "title": "Products", - "description": "The cost for each product. Store, Parsing, Reranking, Embeddings", - "default": [] + "queued": { + "type": "boolean", + "title": "Queued", + "description": "Whether an incremental sync was queued" } }, "type": "object", - "title": "CostInfo", - "description": "Cost information for a billing period.\n\n- net_usage_cost: portion of usage that actually ends up on the invoice after credits,\n computed as gross_usage_cost - balance_applied.\n- gross_usage_cost: metered usage value before balance applied." + "required": ["installation_id", "queued"], + "title": "GoogleDriveSync", + "description": "Result of triggering a Google Drive sync." }, - "CreateMultipartUploadRequest": { + "GoogleDriveSyncParams": { "properties": { - "filename": { - "type": "string", - "minLength": 1, - "title": "Filename", - "description": "Name of the file including extension", - "examples": ["document.pdf"] - }, - "file_size": { - "type": "integer", - "exclusiveMinimum": 0, - "title": "File Size", - "description": "Total size of the file in bytes", - "examples": [10485760] - }, - "mime_type": { + "installation_id": { "type": "string", - "pattern": "^[\\w\\.\\-\\+]+/[\\w\\.\\-\\+]+(\\.\\w+)*$", - "title": "Mime Type", - "description": "MIME type of the file", - "examples": ["application/pdf"] - }, - "part_count": { - "type": "integer", - "maximum": 10000, - "minimum": 1, - "title": "Part Count", - "description": "Number of parts to split the upload into", - "default": 1, - "examples": [3] + "format": "uuid", + "title": "Installation Id", + "description": "Google Drive installation ID" } }, "type": "object", - "required": ["filename", "file_size", "mime_type"], - "title": "CreateMultipartUploadRequest" + "required": ["installation_id"], + "title": "GoogleDriveSyncParams", + "description": "Parameters for manually syncing a Google Drive connector." }, - "CreateMultipartUploadResponse": { + "GoogleDriveSyncResponse": { "properties": { - "id": { - "type": "string", - "title": "Id", - "description": "The multipart upload ID (use this to complete or abort)" - }, - "part_urls": { - "items": { "$ref": "#/components/schemas/MultipartUploadPartUrl" }, - "type": "array", - "title": "Part Urls", - "description": "Presigned URLs for uploading parts" + "data": { + "$ref": "#/components/schemas/GoogleDriveSync", + "description": "Google Drive manual sync result" } }, "type": "object", - "required": ["id", "part_urls"], - "title": "CreateMultipartUploadResponse" + "required": ["data"], + "title": "GoogleDriveSyncResponse", + "description": "Google Drive manual sync response." }, - "CreatedJsonSchema": { + "HTTPValidationError": { "properties": { - "json_schema": { - "additionalProperties": true, - "type": "object", - "title": "Json Schema", - "description": "The created JSON schema" + "detail": { + "items": { "$ref": "#/components/schemas/ValidationError" }, + "type": "array", + "title": "Detail" } }, "type": "object", - "required": ["json_schema"], - "title": "CreatedJsonSchema", - "description": "Result of creating a JSON schema." + "title": "HTTPValidationError" }, - "CursorPaginationResponse": { + "ImageChunkGeneratedMetadata": { "properties": { - "has_more": { - "type": "boolean", - "title": "Has More", - "description": "Contextual direction-aware flag: True if more items exist in the requested pagination direction. For 'after': more items after this page. For 'before': more items before this page.", - "examples": [true, false] - }, - "first_cursor": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "First Cursor", - "description": "Cursor of the first item in this page. Use for backward pagination. None if page is empty.", - "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ==", null] - }, - "last_cursor": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Last Cursor", - "description": "Cursor of the last item in this page. Use for forward pagination. None if page is empty.", - "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMFQyMzo1OTo1OS4wMDBaIiwiaWQiOiJ4eXo3ODkifQ==", null] + "type": { "type": "string", "const": "image", "title": "Type", "default": "image" }, + "file_type": { "type": "string", "title": "File Type", "default": "image/jpeg" }, + "file_size": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "File Size" }, + "width": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Width" }, + "height": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Height" }, + "file_extension": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "File Extension" } + }, + "additionalProperties": true, + "type": "object", + "title": "ImageChunkGeneratedMetadata" + }, + "ImageUrl-Input": { + "properties": { + "url": { + "anyOf": [ + { "type": "string", "maxLength": 2083, "minLength": 1, "format": "uri" }, + { + "type": "string", + "pattern": "data:(?P[\\w]+\\/[\\w\\-\\+\\.]+)?(?:\\;name\\=(?P[\\w\\.\\-%!*'~\\(\\)]+))?(?:\\;charset\\=(?P[\\w\\-\\+\\.]+))?(?P\\;base64)?,(?P.*)", + "examples": [ + "data:text/plain;charset=utf-8;base64,VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wZWQgb3ZlciB0aGUgbGF6eSBkb2cu" + ] + } + ], + "title": "Url", + "description": "The image URL. Can be either a URL or a Data URI." }, - "total": { - "anyOf": [{ "type": "integer" }, { "type": "null" }], - "title": "Total", - "description": "Total number of items available across all pages. Only included when include_total=true was requested. Expensive operation - use sparingly.", - "examples": [42, 0, null] + "format": { + "type": "string", + "title": "Format", + "description": "The image format/mimetype", + "default": "" } }, "type": "object", - "required": ["has_more", "first_cursor", "last_cursor"], - "title": "CursorPaginationResponse", - "description": "Response model for cursor-based pagination." + "required": ["url"], + "title": "ImageUrl", + "description": "Model for image URL validation." }, - "DailyCostBucket": { + "ImageUrl-Output": { "properties": { - "day": { + "url": { "type": "string", - "format": "date-time", - "title": "Day", - "description": "The date of the cost bucket" + "title": "Url", + "description": "The image URL. Can be either a URL or a Data URI." }, - "cost": { + "format": { "type": "string", - "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", - "title": "Cost", - "description": "The cost of the cost bucket" - }, - "cost_per_metric": { - "additionalProperties": { "type": "string", "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, - "type": "object", - "title": "Cost Per Metric", - "description": "The cost per metric" + "title": "Format", + "description": "The image format/mimetype", + "default": "" } }, "type": "object", - "required": ["day", "cost", "cost_per_metric"], - "title": "DailyCostBucket", - "description": "Daily cost bucket." + "required": ["url"], + "title": "ImageUrl", + "description": "Model for image URL validation." }, - "DataSource": { + "ImageUrlInput": { "properties": { - "id": { "type": "string", "title": "Id", "description": "The ID of the data source" }, - "created_at": { + "type": { "type": "string", - "format": "date-time", - "title": "Created At", - "description": "The creation time of the data source" + "const": "image_url", + "title": "Type", + "description": "Input type identifier", + "default": "image_url" }, - "updated_at": { - "type": "string", - "format": "date-time", - "title": "Updated At", - "description": "The last update time of the data source" + "image_url": { + "$ref": "#/components/schemas/ImageUrl-Input", + "description": "The image input specification." + } + }, + "type": "object", + "required": ["image_url"], + "title": "ImageUrlInput", + "description": "Model for image input validation." + }, + "ImageUrlInputChunk": { + "properties": { + "chunk_index": { + "type": "integer", + "title": "Chunk Index", + "description": "position of the chunk in a file", + "examples": [0, 1, 2, 3, 4] }, - "type": { "$ref": "#/components/schemas/DataSourceType", "description": "The type of data source" }, - "name": { "type": "string", "title": "Name", "description": "The name of the data source" }, - "metadata": { - "anyOf": [{}, { "type": "null" }], - "title": "Metadata", - "description": "The metadata of the data source" + "mime_type": { + "type": "string", + "title": "Mime Type", + "description": "mime type of the chunk", + "default": "image/jpeg", + "examples": ["image/jpeg"] }, - "auth_params": { + "generated_metadata": { "anyOf": [ { "oneOf": [ - { "$ref": "#/components/schemas/DataSourceOAuth2Params" }, - { "$ref": "#/components/schemas/DataSourceApiKeyParams" } + { "$ref": "#/components/schemas/MarkdownChunkGeneratedMetadata" }, + { "$ref": "#/components/schemas/TextChunkGeneratedMetadata" }, + { "$ref": "#/components/schemas/PDFChunkGeneratedMetadata" }, + { "$ref": "#/components/schemas/CodeChunkGeneratedMetadata" }, + { "$ref": "#/components/schemas/AudioChunkGeneratedMetadata" }, + { "$ref": "#/components/schemas/VideoChunkGeneratedMetadata" }, + { "$ref": "#/components/schemas/ImageChunkGeneratedMetadata" } ], "discriminator": { "propertyName": "type", "mapping": { - "api_key": "#/components/schemas/DataSourceApiKeyParams", - "oauth2": "#/components/schemas/DataSourceOAuth2Params" + "audio": "#/components/schemas/AudioChunkGeneratedMetadata", + "code": "#/components/schemas/CodeChunkGeneratedMetadata", + "image": "#/components/schemas/ImageChunkGeneratedMetadata", + "markdown": "#/components/schemas/MarkdownChunkGeneratedMetadata", + "pdf": "#/components/schemas/PDFChunkGeneratedMetadata", + "text": "#/components/schemas/TextChunkGeneratedMetadata", + "video": "#/components/schemas/VideoChunkGeneratedMetadata" } } }, { "type": "null" } ], - "title": "Auth Params", - "description": "Authentication parameters" + "title": "Generated Metadata", + "description": "metadata of the chunk", + "examples": [ + { + "file_size": 1024, + "file_type": "text/plain", + "language": "en", + "type": "text", + "word_count": 100 + } + ] }, - "object": { + "model": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Model", + "description": "model used for this chunk", + "examples": ["text-embedding-ada-002", "clip-vit-large-patch14"] + }, + "type": { "type": "string", - "const": "data_source", - "title": "Object", - "description": "The type of the object", - "default": "data_source" + "const": "image_url", + "title": "Type", + "description": "Input type identifier", + "default": "image_url" + }, + "ocr_text": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Ocr Text", + "description": "ocr text of the image", + "examples": ["2025 Financial Report"] + }, + "summary": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Summary", + "description": "summary of the image", + "examples": ["A financial report for 2025"] + }, + "image_url": { + "anyOf": [{ "$ref": "#/components/schemas/ImageUrl-Output" }, { "type": "null" }], + "description": "Image URL" } }, "type": "object", - "required": ["id", "created_at", "updated_at", "type", "name", "metadata", "auth_params"], - "title": "DataSource", - "description": "Service-level representation of a data source." + "required": ["chunk_index"], + "title": "ImageUrlInputChunk" }, - "DataSourceApiKeyParams": { + "InfoResponse": { "properties": { - "type": { "type": "string", "const": "api_key", "title": "Type", "default": "api_key" }, - "api_key": { "type": "string", "title": "Api Key", "description": "The API key" } + "name": { "type": "string", "title": "Name" }, + "version": { "type": "string", "title": "Version" } }, "type": "object", - "required": ["api_key"], - "title": "DataSourceApiKeyParams", - "description": "Authentication parameters for a API key data source." + "required": ["name", "version"], + "title": "InfoResponse", + "description": "Info Pydantic Response Service Message" }, - "DataSourceConnector": { + "InnerErrorResponse": { "properties": { - "id": { "type": "string", "title": "Id", "description": "The ID of the connector" }, + "message": { "type": "string", "title": "Message", "description": "The error message" }, + "code": { "type": "integer", "title": "Code", "description": "The error code" }, + "type": { "type": "string", "title": "Type", "description": "The error type" } + }, + "type": "object", + "required": ["message", "code", "type"], + "title": "InnerErrorResponse", + "description": "Inner Error Pydantic Response Service Message" + }, + "IntegrationInstallation": { + "properties": { + "id": { "type": "string", "title": "Id", "description": "The integration installation ID" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At", - "description": "The creation time of the connector" + "description": "The creation time" }, "updated_at": { "type": "string", "format": "date-time", "title": "Updated At", - "description": "The last update time of the connector" + "description": "The last update time" }, - "store_id": { "type": "string", "title": "Store Id", "description": "The ID of the store" }, - "data_source_id": { + "organization_id": { "type": "string", - "title": "Data Source Id", - "description": "The ID of the data source" + "title": "Organization Id", + "description": "The organization ID" }, - "name": { + "provider": { "type": "string", - "title": "Name", - "description": "The name of the connector", - "default": "New Connector" - }, - "metadata": { - "anyOf": [{}, { "type": "null" }], - "title": "Metadata", - "description": "The metadata of the connector" + "title": "Provider", + "description": "The integration provider identifier" }, - "polling_interval": { + "external_account_id": { "type": "string", - "format": "duration", - "title": "Polling Interval", - "description": "The polling interval of the connector" - }, - "started_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Started At", - "description": "The start time of the connector" - }, - "finished_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Finished At", - "description": "The finish time of the connector" + "title": "External Account Id", + "description": "The provider workspace/account ID" }, - "last_synced_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Last Synced At", - "description": "The last sync time of the connector" + "external_account_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "External Account Name", + "description": "The provider workspace/account name" }, - "status": { - "$ref": "#/components/schemas/SyncStatus", - "description": "The sync status of the connector" + "installed_by_user_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Installed By User Id", + "description": "The Mixedbread user who installed the provider" }, - "error": { - "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], - "title": "Error", - "description": "The sync error of the connector" + "status": { "type": "string", "title": "Status", "description": "The installation status" }, + "scopes": { + "anyOf": [{ "items": { "type": "string" }, "type": "array" }, { "type": "null" }], + "title": "Scopes", + "description": "Granted provider scopes" }, - "object": { - "type": "string", - "const": "data_source.connector", - "title": "Object", - "description": "The type of the object", - "default": "data_source.connector" + "metadata": { + "additionalProperties": true, + "type": "object", + "title": "Metadata", + "description": "Provider-specific metadata" } }, "type": "object", @@ -5223,1201 +7800,979 @@ "id", "created_at", "updated_at", - "store_id", - "data_source_id", - "metadata", - "polling_interval", - "started_at", - "finished_at", - "last_synced_at", + "organization_id", + "provider", + "external_account_id", + "external_account_name", + "installed_by_user_id", "status", - "error" + "scopes", + "metadata" ], - "title": "DataSourceConnector", - "description": "Service-level representation of a connector." - }, - "DataSourceConnectorCreateParams": { - "properties": { - "store_id": { "type": "string", "title": "Store Id", "description": "The ID of the store" }, - "name": { - "type": "string", - "title": "Name", - "description": "The name of the connector", - "default": "New Connector" - }, - "trigger_sync": { - "type": "boolean", - "title": "Trigger Sync", - "description": "Whether the connector should be synced after creation", - "default": true - }, - "metadata": { - "anyOf": [{}, { "type": "null" }], - "title": "Metadata", - "description": "The metadata of the connector" - }, - "polling_interval": { - "anyOf": [{ "type": "integer" }, { "type": "string" }, { "type": "null" }], - "title": "Polling Interval", - "description": "Polling interval for the connector. Defaults to 30 minutes if not specified. Can be provided as:\n- int: Number of seconds (e.g., 1800 for 30 minutes)\n- str: Duration string (e.g., '30m', '1h', '2d') or ISO 8601 format (e.g., 'PT30M', 'P1D')\nValid range: 15 seconds to 30 days", - "examples": [1800, "30m", "1h", "PT30M"] - } - }, - "type": "object", - "required": ["store_id"], - "title": "DataSourceConnectorCreateParams", - "description": "Parameters for creating a connector." - }, - "DataSourceConnectorDeleted": { - "properties": { - "id": { "type": "string", "title": "Id", "description": "The ID of the connector" }, - "deleted": { - "type": "boolean", - "title": "Deleted", - "description": "Whether the connector was deleted", - "default": true - }, - "object": { - "type": "string", - "const": "data_source.connector", - "title": "Object", - "description": "The type of the object", - "default": "data_source.connector" - } - }, - "type": "object", - "required": ["id"], - "title": "DataSourceConnectorDeleted", - "description": "Deleted connector." + "title": "IntegrationInstallation", + "description": "Service-level representation of an installed provider integration." }, - "DataSourceConnectorUpdateParams": { + "IntegrationInstallationListResponse": { "properties": { - "name": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Name", - "description": "The name of the connector" - }, - "metadata": { - "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], - "title": "Metadata", - "description": "The metadata of the connector" - }, - "trigger_sync": { - "anyOf": [{ "type": "boolean" }, { "type": "null" }], - "title": "Trigger Sync", - "description": "Whether the connector should be synced after update" + "data": { + "items": { "$ref": "#/components/schemas/IntegrationInstallation" }, + "type": "array", + "title": "Data", + "description": "Integration installations" }, - "polling_interval": { - "anyOf": [{ "type": "integer" }, { "type": "string" }, { "type": "null" }], - "title": "Polling Interval", - "description": "Polling interval for the connector. Defaults to 30 minutes if not specified. Can be provided as:\n- int: Number of seconds (e.g., 1800 for 30 minutes)\n- str: Duration string (e.g., '30m', '1h', '2d') or ISO 8601 format (e.g., 'PT30M', 'P1D')\nValid range: 15 seconds to 30 days", - "examples": [1800, "30m", "1h", "PT30M"] + "pagination": { + "$ref": "#/components/schemas/CursorPaginationResponse", + "description": "Pagination information" } }, "type": "object", - "title": "DataSourceConnectorUpdateParams", - "description": "Parameters for updating a connector." - }, - "DataSourceDeleted": { - "properties": { - "id": { "type": "string", "title": "Id", "description": "The ID of the data source" }, - "deleted": { - "type": "boolean", - "title": "Deleted", - "description": "Whether the data source was deleted", - "default": true - }, - "object": { - "type": "string", - "const": "data_source", - "title": "Object", - "description": "The type of the object", - "default": "data_source" + "required": ["data", "pagination"], + "title": "IntegrationInstallationListResponse", + "description": "List of integration installations with pagination." + }, + "IntegrationInstallationResponse": { + "properties": { + "data": { + "$ref": "#/components/schemas/IntegrationInstallation", + "description": "Integration installation" } }, "type": "object", - "required": ["id"], - "title": "DataSourceDeleted", - "description": "Deleted data source." + "required": ["data"], + "title": "IntegrationInstallationResponse", + "description": "Integration installation response." }, - "DataSourceListResponse": { + "IntegrationProviderListResponse": { "properties": { - "pagination": { "$ref": "#/components/schemas/CursorPaginationResponse" }, "data": { - "items": { "$ref": "#/components/schemas/DataSource" }, + "items": { "$ref": "#/components/schemas/IntegrationProviderManifest" }, "type": "array", "title": "Data", - "description": "The list of data sources" - }, - "object": { - "type": "string", - "const": "list", - "title": "Object", - "description": "The object type of the response", - "default": "list" + "description": "Supported integration providers" } }, "type": "object", - "required": ["pagination", "data"], - "title": "DataSourceListResponse", - "description": "A list of data sources with pagination." + "required": ["data"], + "title": "IntegrationProviderListResponse", + "description": "List of supported integration providers." }, - "DataSourceOAuth2Params": { + "IntegrationProviderManifest": { "properties": { - "type": { "type": "string", "const": "oauth2", "title": "Type", "default": "oauth2" }, - "created_at": { + "provider": { "type": "string", - "format": "date-time", - "title": "Created At", - "description": "The timestamp when the OAuth2 credentials were created" - }, - "scope": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Scope", - "description": "The OAuth2 scope", - "default": "read" + "enum": ["slack", "notion", "linear", "google_drive"], + "title": "Provider", + "description": "The integration provider identifier" }, - "access_token": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Access Token", - "description": "The OAuth2 access token" + "display_name": { + "type": "string", + "title": "Display Name", + "description": "Human-readable provider name" }, - "refresh_token": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Refresh Token", - "description": "The OAuth2 refresh token" + "auth_type": { + "type": "string", + "enum": ["oauth2", "bot_token", "api_key"], + "title": "Auth Type", + "description": "Primary authorization method" }, - "token_type": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Token Type", - "description": "The OAuth2 token type" + "capabilities": { + "items": { "type": "string", "enum": ["ingest_to_store", "notify", "external_action"] }, + "type": "array", + "title": "Capabilities", + "description": "Supported integration capabilities" }, - "expires_on": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Expires On", - "description": "The OAuth2 token expiration timestamp" + "required_scopes": { + "items": { "type": "string" }, + "type": "array", + "title": "Required Scopes", + "description": "Provider scopes required for the initial install" }, - "additional_params": { - "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], - "title": "Additional Params", - "description": "Additional parameters for the OAuth2 flow" + "ingestion_backing": { + "anyOf": [ + { "type": "string", "enum": ["data_source_connector", "integration_job"] }, + { "type": "null" } + ], + "title": "Ingestion Backing", + "description": "The backend subsystem used for ingestion, if ingestion is supported" } }, "type": "object", - "title": "DataSourceOAuth2Params", - "description": "Authentication parameters for a OAuth data source." + "required": ["provider", "display_name", "auth_type", "capabilities", "required_scopes"], + "title": "IntegrationProviderManifest", + "description": "Provider metadata exposed to product surfaces." }, - "DataSourceType": { "type": "string", "enum": ["notion", "linear"], "title": "DataSourceType" }, - "DeprecatedStoreFileUpsertParams": { + "JsonSchemaCreateParams": { + "properties": { + "description": { + "type": "string", + "title": "Description", + "description": "Description of the data to extract" + } + }, + "type": "object", + "required": ["description"], + "title": "JsonSchemaCreateParams", + "description": "Parameters for creating a JSON schema." + }, + "JsonSchemaEnhanceParams": { + "properties": { + "json_schema": { + "additionalProperties": true, + "type": "object", + "title": "Json Schema", + "description": "The JSON schema to enhance" + } + }, + "type": "object", + "required": ["json_schema"], + "title": "JsonSchemaEnhanceParams", + "description": "Parameters for enhancing a JSON schema." + }, + "JsonSchemaValidateParams": { + "properties": { + "json_schema": { + "additionalProperties": true, + "type": "object", + "title": "Json Schema", + "description": "The JSON schema to validate" + } + }, + "type": "object", + "required": ["json_schema"], + "title": "JsonSchemaValidateParams", + "description": "Parameters for validating a JSON schema." + }, + "LinearDataSourceCreateOrUpdateParams": { "properties": { + "type": { + "type": "string", + "const": "linear", + "title": "Type", + "description": "The type of data source to create", + "default": "linear" + }, + "name": { "type": "string", "title": "Name", "description": "The name of the data source" }, "metadata": { "anyOf": [{}, { "type": "null" }], "title": "Metadata", - "description": "Optional metadata for the file" - }, - "config": { - "$ref": "#/components/schemas/StoreFileConfig", - "description": "Configuration for adding the file" - }, - "external_id": { - "anyOf": [{ "type": "string", "maxLength": 256 }, { "type": "null" }], - "title": "External Id", - "description": "External identifier for this file in the store" - }, - "overwrite": { - "type": "boolean", - "title": "Overwrite", - "description": "If true, overwrite an existing file with the same external_id", - "default": true, - "examples": [false, true] - }, - "file_id": { - "type": "string", - "format": "uuid", - "title": "File Id", - "description": "ID of the file to add" + "description": "The metadata of the data source" }, - "experimental": { - "anyOf": [{ "$ref": "#/components/schemas/StoreFileConfig" }, { "type": "null" }], - "description": "Strategy for adding the file. This field is deprecated. Please use the top-level 'config' field instead. If this is provided, it will override the top-level 'config' field.", - "deprecated": true + "auth_params": { + "anyOf": [ + { + "oneOf": [{ "$ref": "#/components/schemas/OAuth2CreateOrUpdateParams" }], + "discriminator": { + "propertyName": "type", + "mapping": { "oauth2": "#/components/schemas/OAuth2CreateOrUpdateParams" } + } + }, + { "type": "null" } + ], + "title": "Auth Params", + "description": "The authentication parameters of the data source. Linear only supports OAuth2." } }, "type": "object", - "required": ["file_id"], - "title": "DeprecatedStoreFileUpsertParams" + "required": ["name"], + "title": "LinearDataSourceCreateOrUpdateParams", + "description": "Parameters for creating or updating a Linear data source." }, - "DocumentParserResult": { + "MarkdownChunkGeneratedMetadata": { "properties": { - "chunking_strategy": { - "$ref": "#/components/schemas/ChunkingStrategy", - "description": "The strategy used for chunking the document" - }, - "return_format": { - "$ref": "#/components/schemas/ReturnFormat", - "description": "The format of the returned content" + "type": { "type": "string", "const": "markdown", "title": "Type", "default": "markdown" }, + "file_type": { + "type": "string", + "const": "text/markdown", + "title": "File Type", + "default": "text/markdown" }, - "element_types": { - "items": { "$ref": "#/components/schemas/ElementType" }, + "language": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Language" }, + "word_count": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Word Count" }, + "file_size": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "File Size" }, + "chunk_headings": { + "items": { "$ref": "#/components/schemas/MarkdownHeading" }, "type": "array", - "title": "Element Types", - "description": "The types of elements extracted" + "title": "Chunk Headings" }, - "chunks": { - "items": { "$ref": "#/components/schemas/Chunk" }, + "heading_context": { + "items": { "$ref": "#/components/schemas/MarkdownHeading" }, "type": "array", - "title": "Chunks", - "description": "List of extracted chunks from the document" + "title": "Heading Context" }, - "page_sizes": { - "items": { - "prefixItems": [{ "type": "integer" }, { "type": "integer" }], - "type": "array", - "maxItems": 2, - "minItems": 2 - }, - "type": "array", - "title": "Page Sizes", - "description": "List of (width, height) tuples for each page" - } + "start_line": { "type": "integer", "title": "Start Line", "default": 0 }, + "num_lines": { "type": "integer", "title": "Num Lines", "default": 0 }, + "file_extension": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "File Extension" + }, + "frontmatter": { "additionalProperties": true, "type": "object", "title": "Frontmatter" } }, + "additionalProperties": true, "type": "object", - "required": ["chunking_strategy", "return_format", "element_types", "chunks"], - "title": "DocumentParserResult", - "description": "Result of document parsing operation." - }, - "ElementType": { - "type": "string", - "enum": [ - "header", - "footer", - "title", - "section-header", - "page-number", - "list-item", - "figure", - "table", - "form", - "text", - "footnote" - ], - "title": "ElementType", - "description": "Types of elements that can be extracted from a document." + "title": "MarkdownChunkGeneratedMetadata" }, - "Embedding": { - "properties": { - "embedding": { - "$ref": "#/components/schemas/EmbeddingItem", - "description": "The encoded embedding." - }, - "index": { - "type": "integer", - "title": "Index", - "description": "The index of the embedding.", - "examples": [0] - }, - "object": { - "type": "string", - "const": "embedding", - "title": "Object", - "description": "The object type of the embedding.", - "default": "embedding", - "examples": ["embedding"] - } + "MarkdownHeading": { + "properties": { + "level": { "type": "integer", "title": "Level" }, + "text": { "type": "string", "title": "Text" } }, "type": "object", - "required": ["embedding", "index"], - "title": "Embedding" + "required": ["level", "text"], + "title": "MarkdownHeading" }, - "EmbeddingCreateParams": { + "MetadataCursorPagination": { "properties": { - "model": { - "type": "string", - "maxLength": 500, - "minLength": 1, - "title": "Model", - "description": "The model to use for creating embeddings.", - "examples": ["mixedbread-ai/mxbai-embed-large-v1"] - }, - "input": { - "anyOf": [ - { "type": "string", "maxLength": 64000, "minLength": 1 }, - { "items": { "type": "string" }, "type": "array", "maxItems": 256, "minItems": 1 } - ], - "title": "Input", - "description": "The input to create embeddings for." + "limit": { + "type": "integer", + "maximum": 100, + "minimum": 1, + "title": "Limit", + "description": "Maximum number of items to return per page (1-100)", + "default": 20, + "examples": [10, 20, 50] }, - "dimensions": { - "anyOf": [{ "type": "integer", "exclusiveMinimum": 0 }, { "type": "null" }], - "title": "Dimensions", - "description": "The number of dimensions to use for the embeddings.", - "examples": [768] + "after": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "After", + "description": "Cursor for forward pagination - get items after this position. Use last_cursor from previous response.", + "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ=="] }, - "prompt": { - "anyOf": [{ "type": "string", "maxLength": 32000, "minLength": 1 }, { "type": "null" }], - "title": "Prompt", - "description": "The prompt to use for the embedding creation.", - "examples": ["Provide a detailed summary of the following text."] + "before": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Before", + "description": "Cursor for backward pagination - get items before this position. Use first_cursor from previous response.", + "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ=="] }, - "normalized": { + "include_total": { "type": "boolean", - "title": "Normalized", - "description": "Whether to normalize the embeddings.", - "default": true, - "examples": [true] + "title": "Include Total", + "description": "Whether to include total count in response (expensive operation)", + "default": false, + "examples": [false, true] }, - "encoding_format": { + "statuses": { "anyOf": [ - { "$ref": "#/components/schemas/EncodingFormat" }, - { "items": { "$ref": "#/components/schemas/EncodingFormat" }, "type": "array" } + { "items": { "$ref": "#/components/schemas/StoreFileStatus" }, "type": "array" }, + { "type": "null" } ], - "title": "Encoding Format", - "description": "The encoding format(s) of the embeddings. Can be a single format or a list of formats.", - "default": "float", - "examples": ["float", ["int8", "float"]] + "title": "Statuses", + "description": "Status to filter by" + }, + "metadata_filter": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Input" }, + { "$ref": "#/components/schemas/SearchFilterCondition" }, + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Input" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, + { "type": "null" } + ], + "title": "Metadata Filter", + "description": "Metadata filter to apply to the query" } }, "type": "object", - "required": ["model", "input"], - "title": "EmbeddingCreateParams", - "description": "Parameters for creating embeddings." + "title": "MetadataCursorPagination", + "description": "Cursor pagination with status and metadata." }, - "EmbeddingCreateResponse": { + "MetadataFacets": { "properties": { - "usage": { - "$ref": "#/components/schemas/Usage", - "description": "The usage of the model", - "examples": [{ "completion_tokens": 10, "prompt_tokens": 10, "total_tokens": 20 }] + "facets": { + "additionalProperties": { "additionalProperties": true, "type": "object" }, + "type": "object", + "title": "Facets", + "description": "Metadata facets", + "examples": [ + { "author": { "count": 1, "value": "John Doe" }, "year": { "count": 2, "value": "2024" } } + ] + } + }, + "type": "object", + "required": ["facets"], + "title": "MetadataFacets", + "description": "Represents metadata facets for a store." + }, + "MetadataFacetsParams": { + "properties": { + "store_identifiers": { + "items": { "anyOf": [{ "type": "string" }, { "type": "string", "format": "uuid" }] }, + "type": "array", + "maxItems": 16, + "minItems": 1, + "title": "Store Identifiers", + "description": "IDs or names of stores" }, - "model": { "type": "string", "title": "Model", "description": "The model used" }, - "data": { + "top_k": { + "type": "integer", + "minimum": 1, + "title": "Top K", + "description": "Number of results to return", + "default": 10 + }, + "filters": { "anyOf": [ - { "items": { "$ref": "#/components/schemas/Embedding" }, "type": "array" }, - { "items": { "$ref": "#/components/schemas/MultiEncodingEmbedding" }, "type": "array" } + { "$ref": "#/components/schemas/SearchFilter-Input" }, + { "$ref": "#/components/schemas/SearchFilterCondition" }, + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Input" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, + { "type": "null" } ], - "title": "Data", - "description": "The created embeddings." - }, - "object": { - "type": "string", - "const": "list", - "title": "Object", - "description": "The object type of the response", - "default": "list" - }, - "normalized": { - "type": "boolean", - "title": "Normalized", - "description": "Whether the embeddings are normalized.", - "examples": [true] + "title": "Filters", + "description": "Optional filter conditions" }, - "encoding_format": { + "file_ids": { "anyOf": [ - { "$ref": "#/components/schemas/EncodingFormat" }, - { "items": { "$ref": "#/components/schemas/EncodingFormat" }, "type": "array" } + { + "prefixItems": [ + { "$ref": "#/components/schemas/ConditionOperator" }, + { "items": { "type": "string", "format": "uuid" }, "type": "array" } + ], + "type": "array", + "maxItems": 2, + "minItems": 2 + }, + { "items": { "type": "string", "format": "uuid" }, "type": "array" }, + { "type": "null" } ], - "title": "Encoding Format", - "description": "The encoding formats of the embeddings.", - "examples": ["float"] + "title": "File Ids", + "description": "Optional list of file IDs to filter chunks by (inclusion filter)", + "examples": [ + ["123e4567-e89b-12d3-a456-426614174000", "123e4567-e89b-12d3-a456-426614174001"], + ["in", ["123e4567-e89b-12d3-a456-426614174000"]], + ["not_in", ["123e4567-e89b-12d3-a456-426614174000"]] + ] }, - "dimensions": { - "anyOf": [{ "type": "integer" }, { "type": "null" }], - "title": "Dimensions", - "description": "The number of dimensions used for the embeddings.", - "examples": [768] - } - }, - "type": "object", - "required": ["usage", "model", "data", "normalized", "encoding_format", "dimensions"], - "title": "EmbeddingCreateResponse" - }, - "EmbeddingItem": { - "anyOf": [ - { "items": { "type": "number" }, "type": "array" }, - { "items": { "type": "integer" }, "type": "array" }, - { "type": "string" } - ], - "title": "EmbeddingItem", - "description": "The encoded embedding data by encoding format.", - "examples": [0.1, 0.2, 0.3] - }, - "EncodingFormat": { - "type": "string", - "enum": ["float", "float16", "base64", "binary", "ubinary", "int8", "uint8"], - "title": "EncodingFormat", - "description": "Enumeration of encoding formats." - }, - "EnhancedJsonSchema": { - "properties": { - "json_schema": { - "additionalProperties": true, - "type": "object", - "title": "Json Schema", - "description": "The enhanced JSON schema" + "query": { + "anyOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }], + "title": "Query", + "description": "Search query text", + "examples": ["how to configure SSL"] + }, + "search_options": { + "$ref": "#/components/schemas/StoreChunkSearchOptions", + "description": "Search configuration options" + }, + "facets": { + "anyOf": [{ "items": { "type": "string" }, "type": "array" }, { "type": "null" }], + "title": "Facets", + "description": "Optional list of facets to return. Use dot for nested fields.", + "examples": ["author", "year", "author.name"] + }, + "max_fields": { + "type": "integer", + "maximum": 256, + "minimum": 1, + "title": "Max Fields", + "description": "Maximum number of distinct metadata fields (keys) to return.", + "default": 64 + }, + "max_values_per_field": { + "type": "integer", + "maximum": 256, + "minimum": 1, + "title": "Max Values Per Field", + "description": "Maximum number of distinct values returned per field, ranked by count.", + "default": 32 + }, + "max_files": { + "type": "integer", + "maximum": 100000, + "minimum": 1, + "title": "Max Files", + "description": "Maximum number of store files scanned to compute facets.", + "default": 10000 } }, "type": "object", - "required": ["json_schema"], - "title": "EnhancedJsonSchema", - "description": "Result of enhancing a JSON schema." + "required": ["store_identifiers"], + "title": "MetadataFacetsParams", + "description": "Parameters for getting metadata facets." }, - "ErrorResponse": { - "properties": { "error": { "$ref": "#/components/schemas/InnerErrorResponse" } }, - "type": "object", - "required": ["error"], - "title": "ErrorResponse", - "description": "Error Pydantic Response Service Message" + "Mode": { + "type": "string", + "enum": ["fast", "high_quality"], + "title": "Mode", + "description": "The mode of the document parser." }, - "ExpiresAfter": { + "MultiEncodingEmbedding": { "properties": { - "anchor": { - "type": "string", - "const": "last_active_at", - "title": "Anchor", - "description": "Anchor date for the expiration policy", - "default": "last_active_at" + "embedding": { + "$ref": "#/components/schemas/MultipleEncodingsEmbeddingItem", + "description": "The encoded embedding data by encoding format.Returned, if more than one encoding format is used.", + "examples": [{ "float": [0.1, 0.2, 0.3], "int8": [1, 2, 3] }] }, - "days": { + "index": { "type": "integer", - "title": "Days", - "description": "Number of days after which the store expires", - "default": 30 + "title": "Index", + "description": "The index of the embedding.", + "examples": [0] + }, + "object": { + "type": "string", + "const": "embedding_dict", + "title": "Object", + "description": "The object type of the embedding.", + "default": "embedding_dict", + "examples": ["embedding_dict"] } }, "type": "object", - "title": "ExpiresAfter", - "description": "Represents an expiration policy for a store." + "required": ["embedding", "index"], + "title": "MultiEncodingEmbedding" }, - "ExtractContentCreateParams": { - "properties": { - "content": { - "anyOf": [ - { "type": "string" }, - { "items": { "type": "string" }, "type": "array" }, - { - "items": { - "anyOf": [ - { "$ref": "#/components/schemas/TextInput" }, - { "$ref": "#/components/schemas/ImageUrlInput" } - ] - }, - "type": "array" - } - ], + "MultiModalQuery": { + "anyOf": [ + { + "type": "string", "minLength": 1, - "title": "Content", - "description": "The content to extract from" + "description": "The text input document to create embeddings for.", + "examples": ["This is a sample text input."] }, - "json_schema": { - "additionalProperties": true, - "type": "object", - "title": "Json Schema", - "description": "The JSON schema to use for extraction" + { + "oneOf": [ + { "$ref": "#/components/schemas/ImageUrlInput" }, + { "$ref": "#/components/schemas/TextInput" } + ], + "description": "The input to create embeddings for.", + "discriminator": { + "propertyName": "type", + "mapping": { + "image_url": "#/components/schemas/ImageUrlInput", + "text": "#/components/schemas/TextInput" + } + } + } + ] + }, + "MultipartUploadDetailResponse": { + "properties": { + "id": { "type": "string", "title": "Id", "description": "The multipart upload record ID" }, + "filename": { "type": "string", "title": "Filename", "description": "Original filename" }, + "file_size": { "type": "integer", "title": "File Size", "description": "Total file size in bytes" }, + "mime_type": { "type": "string", "title": "Mime Type", "description": "MIME type of the file" }, + "part_count": { + "type": "integer", + "title": "Part Count", + "description": "Number of parts the file was split into" }, - "instructions": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Instructions", - "description": "Additional instructions for the extraction" + "created_at": { + "type": "string", + "title": "Created At", + "description": "When the upload was initiated" + }, + "completed_parts": { + "items": { "$ref": "#/components/schemas/MultipartUploadPart" }, + "type": "array", + "title": "Completed Parts", + "description": "Parts that have already been uploaded" + }, + "part_urls": { + "items": { "$ref": "#/components/schemas/MultipartUploadPartUrl" }, + "type": "array", + "title": "Part Urls", + "description": "Presigned URLs for the parts that still need to be uploaded" } }, "type": "object", - "required": ["content", "json_schema"], - "title": "ExtractContentCreateParams", - "description": "Parameters for extracting content using a schema." + "required": [ + "id", + "filename", + "file_size", + "mime_type", + "part_count", + "created_at", + "completed_parts", + "part_urls" + ], + "title": "MultipartUploadDetailResponse" }, - "ExtractJobCreateParams": { + "MultipartUploadListResponse": { "properties": { - "file_id": { - "type": "string", - "title": "File Id", - "description": "The ID of the file to extract from" - }, - "json_schema": { - "additionalProperties": true, - "type": "object", - "title": "Json Schema", - "description": "The JSON schema to use for extraction" + "data": { + "items": { "$ref": "#/components/schemas/MultipartUploadObject" }, + "type": "array", + "title": "Data", + "description": "List of in-progress multipart uploads" } }, "type": "object", - "required": ["file_id", "json_schema"], - "title": "ExtractJobCreateParams", - "description": "Parameters for creating an extraction job." + "required": ["data"], + "title": "MultipartUploadListResponse" }, - "ExtractionJob": { + "MultipartUploadObject": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id", - "description": "Unique identifier for the extraction job" - }, - "organization_id": { - "type": "string", - "format": "uuid", - "title": "Organization Id", - "description": "ID of the organization that owns this job" - }, - "file_id": { - "type": "string", - "format": "uuid", - "title": "File Id", - "description": "ID of the file being extracted" + "id": { "type": "string", "title": "Id", "description": "The multipart upload record ID" }, + "filename": { "type": "string", "title": "Filename", "description": "Original filename" }, + "file_size": { "type": "integer", "title": "File Size", "description": "Total file size in bytes" }, + "mime_type": { "type": "string", "title": "Mime Type", "description": "MIME type of the file" }, + "part_count": { + "type": "integer", + "title": "Part Count", + "description": "Number of parts the file was split into" }, "created_at": { "type": "string", - "format": "date-time", "title": "Created At", - "description": "When the job was created" + "description": "When the upload was initiated" + } + }, + "type": "object", + "required": ["id", "filename", "file_size", "mime_type", "part_count", "created_at"], + "title": "MultipartUploadObject" + }, + "MultipartUploadPart": { + "properties": { + "part_number": { + "type": "integer", + "minimum": 1, + "title": "Part Number", + "description": "1-based part number" }, - "updated_at": { + "etag": { "type": "string", - "format": "date-time", - "title": "Updated At", - "description": "When the job was last updated" - }, - "started_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Started At", - "description": "When the job started processing" - }, - "finished_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Finished At", - "description": "When the job finished processing" - }, - "status": { - "$ref": "#/components/schemas/ParsingJobStatus", - "description": "Current status of the job" - }, - "result": { - "anyOf": [{ "$ref": "#/components/schemas/ExtractionResult" }, { "type": "null" }], - "description": "The extraction results if completed" - }, - "error": { - "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], - "title": "Error", - "description": "Error information if failed" + "title": "Etag", + "description": "ETag returned by the storage backend after uploading the part" + } + }, + "type": "object", + "required": ["part_number", "etag"], + "title": "MultipartUploadPart" + }, + "MultipartUploadPartUrl": { + "properties": { + "part_number": { + "type": "integer", + "minimum": 1, + "title": "Part Number", + "description": "1-based part number" }, - "json_schema": { - "additionalProperties": true, - "type": "object", - "title": "Json Schema", - "description": "The JSON schema used for extraction" - } + "url": { "type": "string", "title": "Url", "description": "Presigned URL for uploading this part" } }, "type": "object", - "required": [ - "id", - "organization_id", - "file_id", - "created_at", - "updated_at", - "started_at", - "finished_at", - "status", - "result", - "error", - "json_schema" - ], - "title": "ExtractionJob", - "description": "A job for extracting structured data from documents." + "required": ["part_number", "url"], + "title": "MultipartUploadPartUrl" }, - "ExtractionResult": { + "MultipleEncodingsEmbeddingItem": { "properties": { - "data": { "additionalProperties": true, "type": "object", "title": "Data" }, - "warnings": { "items": { "type": "string" }, "type": "array", "title": "Warnings" } + "float": { "items": { "type": "number" }, "type": "array", "title": "Float" }, + "int8": { "items": { "type": "integer" }, "type": "array", "title": "Int8" }, + "uint8": { "items": { "type": "integer" }, "type": "array", "title": "Uint8" }, + "binary": { "items": { "type": "integer" }, "type": "array", "title": "Binary" }, + "ubinary": { "items": { "type": "integer" }, "type": "array", "title": "Ubinary" }, + "base64": { "type": "string", "title": "Base64" } }, "type": "object", - "required": ["data", "warnings"], - "title": "ExtractionResult", - "description": "The result of an extraction job." + "title": "MultipleEncodingsEmbeddingItem" }, - "FileCounts": { + "NotionDataSourceCreateOrUpdateParams": { "properties": { - "pending": { - "type": "integer", - "title": "Pending", - "description": "Number of files waiting to be processed", - "default": 0, - "examples": [5] - }, - "in_progress": { - "type": "integer", - "title": "In Progress", - "description": "Number of files currently being processed", - "default": 0, - "examples": [5] - }, - "cancelled": { - "type": "integer", - "title": "Cancelled", - "description": "Number of files whose processing was cancelled", - "default": 0, - "examples": [2] - }, - "completed": { - "type": "integer", - "title": "Completed", - "description": "Number of successfully processed files", - "default": 0, - "examples": [42] + "type": { + "type": "string", + "const": "notion", + "title": "Type", + "description": "The type of data source to create", + "default": "notion" }, - "failed": { - "type": "integer", - "title": "Failed", - "description": "Number of files that failed processing", - "default": 0, - "examples": [1] + "name": { "type": "string", "title": "Name", "description": "The name of the data source" }, + "metadata": { + "anyOf": [{}, { "type": "null" }], + "title": "Metadata", + "description": "The metadata of the data source" }, - "total": { - "type": "integer", - "title": "Total", - "description": "Total number of files", - "default": 0, - "examples": [50] + "auth_params": { + "anyOf": [ + { + "oneOf": [ + { "$ref": "#/components/schemas/OAuth2CreateOrUpdateParams" }, + { "$ref": "#/components/schemas/ApiKeyCreateOrUpdateParams" } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "api_key": "#/components/schemas/ApiKeyCreateOrUpdateParams", + "oauth2": "#/components/schemas/OAuth2CreateOrUpdateParams" + } + } + }, + { "type": "null" } + ], + "title": "Auth Params", + "description": "The authentication parameters of the data source. Notion supports OAuth2 and API key." } }, "type": "object", - "title": "FileCounts", - "description": "Tracks counts of files in different states within a store." + "required": ["name"], + "title": "NotionDataSourceCreateOrUpdateParams", + "description": "Parameters for creating or updating a Notion data source." }, - "FileDeleted": { + "OAuth2CreateOrUpdateParams": { "properties": { - "id": { "type": "string", "title": "Id", "description": "The ID of the deleted file" }, - "deleted": { - "type": "boolean", - "title": "Deleted", - "description": "Whether the file was deleted", - "default": true - }, - "object": { - "type": "string", - "const": "file", - "title": "Object", - "description": "The type of the deleted object", - "default": "file" - } + "type": { "type": "string", "const": "oauth2", "title": "Type", "default": "oauth2" } }, "type": "object", - "required": ["id"], - "title": "FileDeleted" + "title": "OAuth2CreateOrUpdateParams", + "description": "Base class for OAuth2 create or update parameters." }, - "FileListResponse": { + "PDFChunkGeneratedMetadata": { "properties": { - "pagination": { "$ref": "#/components/schemas/CursorPaginationResponse" }, - "object": { + "type": { "type": "string", "const": "pdf", "title": "Type", "default": "pdf" }, + "file_type": { "type": "string", - "const": "list", - "title": "Object", - "description": "The object type of the response", - "default": "list" + "const": "application/pdf", + "title": "File Type", + "default": "application/pdf" }, - "data": { - "items": { "$ref": "#/components/schemas/FileObject" }, - "type": "array", - "title": "Data", - "description": "The list of files" - } + "total_pages": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Total Pages" }, + "total_size": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Total Size" }, + "file_extension": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "File Extension" } }, + "additionalProperties": true, "type": "object", - "required": ["pagination", "data"], - "title": "FileListResponse" + "title": "PDFChunkGeneratedMetadata" }, - "FileObject": { + "PaginationWithTotal": { "properties": { - "id": { - "type": "string", - "title": "Id", - "description": "Unique identifier for the file", - "examples": ["file_abc123", "file_xyz789"] - }, - "filename": { - "type": "string", - "minLength": 1, - "title": "Filename", - "description": "Name of the file including extension", - "examples": ["document.pdf", "image.jpg"] - }, - "bytes": { + "limit": { "type": "integer", - "exclusiveMinimum": 0, - "title": "Bytes", - "description": "Size of the file in bytes", - "examples": [1024, 2048] - }, - "mime_type": { - "type": "string", - "pattern": "^[\\w\\.\\-\\+]+/[\\w\\.\\-\\+]+(\\.\\w+)*$", - "title": "Mime Type", - "description": "MIME type of the file", - "examples": [ - "application/pdf", - "image/jpeg", - "application/vnd.openxmlformats-officedocument.presentationml.presentation", - "application/x-ipynb+json" - ] + "maximum": 1000, + "title": "Limit", + "description": "Maximum number of items to return per page", + "default": 100 }, - "version": { + "offset": { "type": "integer", - "minimum": 1, - "title": "Version", - "description": "Version of the file", - "examples": [1, 2] - }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At", - "description": "Timestamp when the file was created" + "title": "Offset", + "description": "Offset of the first item to return", + "default": 0 }, - "updated_at": { - "type": "string", - "format": "date-time", - "title": "Updated At", - "description": "Timestamp when the file was last updated" + "total": { + "type": "integer", + "title": "Total", + "description": "Total number of items available", + "default": 0 } }, "type": "object", - "required": ["id", "filename", "bytes", "mime_type", "version", "created_at", "updated_at"], - "title": "FileObject", - "description": "A model representing a file object in the system.\n\nThis model contains metadata about files stored in the system, including\nidentifiers, size information, and timestamps." + "title": "PaginationWithTotal", + "description": "Pagination model that includes total count of items." }, - "FileSearchResultRule": { + "ParsingJob": { "properties": { - "query": { "type": "string", "title": "Query", "description": "The query to trigger the rule" }, - "store_id": { - "type": "string", - "title": "Store Id", - "description": "The store identifier to apply the rule to" + "id": { "type": "string", "title": "Id", "description": "The ID of the job" }, + "file_id": { "type": "string", "title": "File Id", "description": "The ID of the file to parse" }, + "filename": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Filename", + "description": "The name of the file" + }, + "status": { + "$ref": "#/components/schemas/ParsingJobStatus", + "description": "The status of the job" + }, + "error": { + "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], + "title": "Error", + "description": "The error of the job" + }, + "result": { + "anyOf": [{ "$ref": "#/components/schemas/DocumentParserResult" }, { "type": "null" }], + "description": "The result of the job" + }, + "started_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Started At", + "description": "The started time of the job" }, - "type": { - "type": "string", - "const": "file_search_result", - "title": "Type", - "description": "The type of substitution" + "finished_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Finished At", + "description": "The finished time of the job" }, - "file_id": { + "created_at": { "type": "string", - "title": "File Id", - "description": "The file ID of the file to substitute" + "format": "date-time", + "title": "Created At", + "description": "The creation time of the job" }, - "chunk_index": { - "type": "integer", - "minimum": 0, - "title": "Chunk Index", - "description": "An optional chunk index to use for the chunk substitution", - "default": 0 + "updated_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Updated At", + "description": "The updated time of the job" }, - "result_index": { - "type": "integer", - "minimum": 0, - "title": "Result Index", - "description": "The index where the result will be inserted" - } - }, - "type": "object", - "required": ["query", "store_id", "type", "file_id", "result_index"], - "title": "FileSearchResultRule", - "description": "Represents a file search result rule for a vector store search." - }, - "HTTPValidationError": { - "properties": { - "detail": { - "items": { "$ref": "#/components/schemas/ValidationError" }, - "type": "array", - "title": "Detail" + "object": { + "type": "string", + "const": "parsing_job", + "title": "Object", + "description": "The type of the object", + "default": "parsing_job" } }, "type": "object", - "title": "HTTPValidationError" - }, - "ImageChunkGeneratedMetadata": { - "properties": { - "type": { "type": "string", "const": "image", "title": "Type", "default": "image" }, - "file_type": { "type": "string", "title": "File Type", "default": "image/jpeg" }, - "file_size": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "File Size" }, - "width": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Width" }, - "height": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Height" }, - "file_extension": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "File Extension" } - }, - "additionalProperties": true, - "type": "object", - "title": "ImageChunkGeneratedMetadata" + "required": ["id", "file_id", "status"], + "title": "ParsingJob", + "description": "A job for parsing documents with its current state and result." }, - "ImageUrl-Input": { + "ParsingJobCreateParams": { "properties": { - "url": { + "file_id": { "type": "string", "title": "File Id", "description": "The ID of the file to parse" }, + "element_types": { "anyOf": [ - { "type": "string", "maxLength": 2083, "minLength": 1, "format": "uri" }, - { - "type": "string", - "pattern": "data:(?P[\\w]+\\/[\\w\\-\\+\\.]+)?(?:\\;name\\=(?P[\\w\\.\\-%!*'~\\(\\)]+))?(?:\\;charset\\=(?P[\\w\\-\\+\\.]+))?(?P\\;base64)?,(?P.*)", - "examples": [ - "data:text/plain;charset=utf-8;base64,VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wZWQgb3ZlciB0aGUgbGF6eSBkb2cu" - ] - } + { "items": { "$ref": "#/components/schemas/ElementType" }, "type": "array" }, + { "type": "null" } ], - "title": "Url", - "description": "The image URL. Can be either a URL or a Data URI." + "title": "Element Types", + "description": "The elements to extract from the document" }, - "format": { - "type": "string", - "title": "Format", - "description": "The image format/mimetype", - "default": "" + "chunking_strategy": { + "$ref": "#/components/schemas/ChunkingStrategy", + "description": "The strategy to use for chunking the content", + "default": "page" + }, + "return_format": { + "$ref": "#/components/schemas/ReturnFormat", + "description": "The format of the returned content", + "default": "markdown" + }, + "mode": { + "$ref": "#/components/schemas/Mode", + "description": "The strategy to use for OCR", + "default": "high_quality" } }, "type": "object", - "required": ["url"], - "title": "ImageUrl", - "description": "Model for image URL validation." + "required": ["file_id"], + "title": "ParsingJobCreateParams", + "description": "Parameters for creating a parsing job." }, - "ImageUrl-Output": { + "ParsingJobDeleted": { "properties": { - "url": { - "type": "string", - "title": "Url", - "description": "The image URL. Can be either a URL or a Data URI." + "id": { "type": "string", "title": "Id", "description": "The ID of the deleted job" }, + "deleted": { + "type": "boolean", + "title": "Deleted", + "description": "Whether the job was deleted", + "default": true }, - "format": { + "object": { "type": "string", - "title": "Format", - "description": "The image format/mimetype", - "default": "" + "const": "parsing_job", + "title": "Object", + "description": "The type of the object", + "default": "parsing_job" } }, "type": "object", - "required": ["url"], - "title": "ImageUrl", - "description": "Model for image URL validation." + "required": ["id"], + "title": "ParsingJobDeleted", + "description": "A deleted parsing job." }, - "ImageUrlInput": { + "ParsingJobListItem": { "properties": { - "type": { - "type": "string", - "const": "image_url", - "title": "Type", - "description": "Input type identifier", - "default": "image_url" + "id": { "type": "string", "title": "Id", "description": "The ID of the job" }, + "file_id": { "type": "string", "title": "File Id", "description": "The ID of the file to parse" }, + "filename": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Filename", + "description": "The name of the file" }, - "image_url": { - "$ref": "#/components/schemas/ImageUrl-Input", - "description": "The image input specification." - } - }, - "type": "object", - "required": ["image_url"], - "title": "ImageUrlInput", - "description": "Model for image input validation." - }, - "ImageUrlInputChunk": { - "properties": { - "chunk_index": { - "type": "integer", - "title": "Chunk Index", - "description": "position of the chunk in a file", - "examples": [0, 1, 2, 3, 4] + "status": { + "$ref": "#/components/schemas/ParsingJobStatus", + "description": "The status of the job" }, - "mime_type": { - "type": "string", - "title": "Mime Type", - "description": "mime type of the chunk", - "default": "image/jpeg", - "examples": ["image/jpeg"] + "error": { + "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], + "title": "Error", + "description": "The error of the job" }, - "generated_metadata": { - "anyOf": [ - { - "oneOf": [ - { "$ref": "#/components/schemas/MarkdownChunkGeneratedMetadata" }, - { "$ref": "#/components/schemas/TextChunkGeneratedMetadata" }, - { "$ref": "#/components/schemas/PDFChunkGeneratedMetadata" }, - { "$ref": "#/components/schemas/CodeChunkGeneratedMetadata" }, - { "$ref": "#/components/schemas/AudioChunkGeneratedMetadata" }, - { "$ref": "#/components/schemas/VideoChunkGeneratedMetadata" }, - { "$ref": "#/components/schemas/ImageChunkGeneratedMetadata" } - ], - "discriminator": { - "propertyName": "type", - "mapping": { - "audio": "#/components/schemas/AudioChunkGeneratedMetadata", - "code": "#/components/schemas/CodeChunkGeneratedMetadata", - "image": "#/components/schemas/ImageChunkGeneratedMetadata", - "markdown": "#/components/schemas/MarkdownChunkGeneratedMetadata", - "pdf": "#/components/schemas/PDFChunkGeneratedMetadata", - "text": "#/components/schemas/TextChunkGeneratedMetadata", - "video": "#/components/schemas/VideoChunkGeneratedMetadata" - } - } - }, - { "type": "null" } - ], - "title": "Generated Metadata", - "description": "metadata of the chunk", - "examples": [ - { - "file_size": 1024, - "file_type": "text/plain", - "language": "en", - "type": "text", - "word_count": 100 - } - ] + "started_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Started At", + "description": "The started time of the job" }, - "model": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Model", - "description": "model used for this chunk", - "examples": ["text-embedding-ada-002", "clip-vit-large-patch14"] + "finished_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Finished At", + "description": "The finished time of the job" }, - "type": { + "created_at": { "type": "string", - "const": "image_url", - "title": "Type", - "description": "Input type identifier", - "default": "image_url" - }, - "ocr_text": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Ocr Text", - "description": "ocr text of the image", - "examples": ["2025 Financial Report"] + "format": "date-time", + "title": "Created At", + "description": "The creation time of the job" }, - "summary": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Summary", - "description": "summary of the image", - "examples": ["A financial report for 2025"] + "updated_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Updated At", + "description": "The updated time of the job" }, - "image_url": { - "anyOf": [{ "$ref": "#/components/schemas/ImageUrl-Output" }, { "type": "null" }], - "description": "Image URL" + "object": { + "type": "string", + "const": "parsing_job", + "title": "Object", + "description": "The type of the object", + "default": "parsing_job" } }, "type": "object", - "required": ["chunk_index"], - "title": "ImageUrlInputChunk" - }, - "InfoResponse": { - "properties": { - "name": { "type": "string", "title": "Name" }, - "version": { "type": "string", "title": "Version" } - }, - "type": "object", - "required": ["name", "version"], - "title": "InfoResponse", - "description": "Info Pydantic Response Service Message" - }, - "InnerErrorResponse": { - "properties": { - "message": { "type": "string", "title": "Message", "description": "The error message" }, - "code": { "type": "integer", "title": "Code", "description": "The error code" }, - "type": { "type": "string", "title": "Type", "description": "The error type" } - }, - "type": "object", - "required": ["message", "code", "type"], - "title": "InnerErrorResponse", - "description": "Inner Error Pydantic Response Service Message" + "required": ["id", "file_id", "status"], + "title": "ParsingJobListItem", + "description": "A parsing job item for list responses." }, - "JsonSchemaCreateParams": { + "ParsingJobListResponse": { "properties": { - "description": { + "pagination": { "$ref": "#/components/schemas/CursorPaginationResponse" }, + "data": { + "items": { "$ref": "#/components/schemas/ParsingJobListItem" }, + "type": "array", + "title": "Data", + "description": "The list of parsing jobs" + }, + "object": { "type": "string", - "title": "Description", - "description": "Description of the data to extract" + "const": "list", + "title": "Object", + "description": "The object type of the response", + "default": "list" } }, "type": "object", - "required": ["description"], - "title": "JsonSchemaCreateParams", - "description": "Parameters for creating a JSON schema." + "required": ["pagination", "data"], + "title": "ParsingJobListResponse", + "description": "A list of parsing jobs with pagination." }, - "JsonSchemaEnhanceParams": { - "properties": { - "json_schema": { - "additionalProperties": true, - "type": "object", - "title": "Json Schema", - "description": "The JSON schema to enhance" - } - }, - "type": "object", - "required": ["json_schema"], - "title": "JsonSchemaEnhanceParams", - "description": "Parameters for enhancing a JSON schema." + "ParsingJobStatus": { + "type": "string", + "enum": ["pending", "in_progress", "cancelled", "completed", "failed"], + "title": "ParsingJobStatus" }, - "JsonSchemaValidateParams": { + "Period": { "properties": { - "json_schema": { - "additionalProperties": true, - "type": "object", - "title": "Json Schema", - "description": "The JSON schema to validate" + "start": { + "type": "string", + "format": "date-time", + "title": "Start", + "description": "The start of the billing period" + }, + "end": { + "type": "string", + "format": "date-time", + "title": "End", + "description": "The end of the billing period" } }, "type": "object", - "required": ["json_schema"], - "title": "JsonSchemaValidateParams", - "description": "Parameters for validating a JSON schema." + "required": ["start", "end"], + "title": "Period", + "description": "Inclusive/exclusive window describing a billing period." }, - "LinearDataSourceCreateOrUpdateParams": { + "PhaseCostInfo": { "properties": { - "type": { + "period": { "$ref": "#/components/schemas/Period", "description": "The period" }, + "net_usage_cost": { "type": "string", - "const": "linear", - "title": "Type", - "description": "The type of data source to create", - "default": "linear" + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", + "title": "Net Usage Cost", + "description": "The net usage cost" }, - "name": { "type": "string", "title": "Name", "description": "The name of the data source" }, - "metadata": { - "anyOf": [{}, { "type": "null" }], - "title": "Metadata", - "description": "The metadata of the data source" + "gross_usage_cost": { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", + "title": "Gross Usage Cost", + "description": "The gross usage cost" }, - "auth_params": { - "anyOf": [ - { - "oneOf": [{ "$ref": "#/components/schemas/OAuth2CreateOrUpdateParams" }], - "discriminator": { - "propertyName": "type", - "mapping": { "oauth2": "#/components/schemas/OAuth2CreateOrUpdateParams" } - } - }, - { "type": "null" } - ], - "title": "Auth Params", - "description": "The authentication parameters of the data source. Linear only supports OAuth2." + "balance_applied": { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", + "title": "Balance Applied", + "description": "The balance applied" } }, "type": "object", - "required": ["name"], - "title": "LinearDataSourceCreateOrUpdateParams", - "description": "Parameters for creating or updating a Linear data source." + "required": ["period", "net_usage_cost", "gross_usage_cost", "balance_applied"], + "title": "PhaseCostInfo", + "description": "Cost information for a billing phase." }, - "MarkdownChunkGeneratedMetadata": { + "ProductCostInfo": { "properties": { - "type": { "type": "string", "const": "markdown", "title": "Type", "default": "markdown" }, - "file_type": { + "product_name": { "type": "string", - "const": "text/markdown", - "title": "File Type", - "default": "text/markdown" - }, - "language": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Language" }, - "word_count": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Word Count" }, - "file_size": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "File Size" }, - "chunk_headings": { - "items": { "$ref": "#/components/schemas/MarkdownHeading" }, - "type": "array", - "title": "Chunk Headings" + "title": "Product Name", + "description": "The name of the product. Store, Parsing, Reranking, Embeddings" }, - "heading_context": { - "items": { "$ref": "#/components/schemas/MarkdownHeading" }, - "type": "array", - "title": "Heading Context" + "gross_usage_cost": { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", + "title": "Gross Usage Cost", + "description": "The gross usage cost of the product" }, - "start_line": { "type": "integer", "title": "Start Line", "default": 0 }, - "num_lines": { "type": "integer", "title": "Num Lines", "default": 0 }, - "file_extension": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "File Extension" + "net_usage_cost": { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", + "title": "Net Usage Cost", + "description": "The net usage cost of the product" }, - "frontmatter": { "additionalProperties": true, "type": "object", "title": "Frontmatter" } - }, - "additionalProperties": true, - "type": "object", - "title": "MarkdownChunkGeneratedMetadata" - }, - "MarkdownHeading": { - "properties": { - "level": { "type": "integer", "title": "Level" }, - "text": { "type": "string", "title": "Text" } + "balance_applied": { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", + "title": "Balance Applied", + "description": "The balance applied to the product" + } }, "type": "object", - "required": ["level", "text"], - "title": "MarkdownHeading" + "required": ["product_name", "gross_usage_cost", "net_usage_cost", "balance_applied"], + "title": "ProductCostInfo", + "description": "Cost information for a product." }, - "MetadataCursorPagination": { + "QueryEnhanceMetadataFilter": { "properties": { - "limit": { - "type": "integer", - "maximum": 100, - "minimum": 1, - "title": "Limit", - "description": "Maximum number of items to return per page (1-100)", - "default": 20, - "examples": [10, 20, 50] - }, - "after": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "After", - "description": "Cursor for forward pagination - get items after this position. Use last_cursor from previous response.", - "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ=="] - }, - "before": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Before", - "description": "Cursor for backward pagination - get items before this position. Use first_cursor from previous response.", - "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ=="] - }, - "include_total": { - "type": "boolean", - "title": "Include Total", - "description": "Whether to include total count in response (expensive operation)", - "default": false, - "examples": [false, true] - }, - "statuses": { - "anyOf": [ - { "items": { "$ref": "#/components/schemas/StoreFileStatus" }, "type": "array" }, - { "type": "null" } - ], - "title": "Statuses", - "description": "Status to filter by" + "key": { "type": "string", "minLength": 1, "title": "Key", "description": "Metadata field key" }, + "operator": { + "$ref": "#/components/schemas/ConditionOperator", + "description": "Comparison operator" }, - "metadata_filter": { + "value": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter-Input" }, - { "$ref": "#/components/schemas/SearchFilterCondition" }, + { "type": "string" }, + { "type": "integer" }, + { "type": "number" }, + { "type": "boolean" }, { "items": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter-Input" }, - { "$ref": "#/components/schemas/SearchFilterCondition" } + { "type": "string" }, + { "type": "integer" }, + { "type": "number" }, + { "type": "boolean" } ] }, "type": "array" }, { "type": "null" } ], - "title": "Metadata Filter", - "description": "Metadata filter to apply to the query" - } - }, - "type": "object", - "title": "MetadataCursorPagination", - "description": "Cursor pagination with status and metadata." - }, - "MetadataFacets": { - "properties": { - "facets": { - "additionalProperties": { "additionalProperties": true, "type": "object" }, - "type": "object", - "title": "Facets", - "description": "Metadata facets", - "examples": [ - { "author": { "count": 1, "value": "John Doe" }, "year": { "count": 2, "value": "2024" } } - ] + "title": "Value", + "description": "Value to compare against. Use a list for `in`/`not_in`." } }, + "additionalProperties": false, "type": "object", - "required": ["facets"], - "title": "MetadataFacets", - "description": "Represents metadata facets for a store." + "required": ["key", "operator", "value"], + "title": "QueryEnhanceMetadataFilter", + "description": "Metadata filter condition." }, - "MetadataFacetsParams": { + "QueryEnhanceParams": { "properties": { "store_identifiers": { "items": { "anyOf": [{ "type": "string" }, { "type": "string", "format": "uuid" }] }, @@ -6475,8 +8830,7 @@ ] }, "query": { - "anyOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }], - "title": "Query", + "$ref": "#/components/schemas/MultiModalQuery", "description": "Search query text", "examples": ["how to configure SSL"] }, @@ -6484,480 +8838,363 @@ "$ref": "#/components/schemas/StoreChunkSearchOptions", "description": "Search configuration options" }, - "facets": { - "anyOf": [{ "items": { "type": "string" }, "type": "array" }, { "type": "null" }], - "title": "Facets", - "description": "Optional list of facets to return. Use dot for nested fields.", - "examples": ["author", "year", "author.name"] - }, - "max_fields": { - "type": "integer", - "maximum": 256, - "minimum": 1, - "title": "Max Fields", - "description": "Maximum number of distinct metadata fields (keys) to return.", - "default": 64 - }, - "max_values_per_field": { - "type": "integer", - "maximum": 256, - "minimum": 1, - "title": "Max Values Per Field", - "description": "Maximum number of distinct values returned per field, ranked by count.", - "default": 32 - }, - "max_files": { - "type": "integer", - "maximum": 100000, - "minimum": 1, - "title": "Max Files", - "description": "Maximum number of store files scanned to compute facets.", - "default": 10000 + "instructions": { + "anyOf": [{ "type": "string", "maxLength": 2000 }, { "type": "null" }], + "title": "Instructions", + "description": "Optional guidance for query enhancement." } }, "type": "object", - "required": ["store_identifiers"], - "title": "MetadataFacetsParams", - "description": "Parameters for getting metadata facets." - }, - "Mode": { - "type": "string", - "enum": ["fast", "high_quality"], - "title": "Mode", - "description": "The mode of the document parser." + "required": ["store_identifiers", "query"], + "title": "QueryEnhanceParams", + "description": "Parameters for enhancing a search query." }, - "MultiEncodingEmbedding": { + "QueryEnhanceQueryItem": { "properties": { - "embedding": { - "$ref": "#/components/schemas/MultipleEncodingsEmbeddingItem", - "description": "The encoded embedding data by encoding format.Returned, if more than one encoding format is used.", - "examples": [{ "float": [0.1, 0.2, 0.3], "int8": [1, 2, 3] }] - }, - "index": { - "type": "integer", - "title": "Index", - "description": "The index of the embedding.", - "examples": [0] - }, - "object": { - "type": "string", - "const": "embedding_dict", - "title": "Object", - "description": "The object type of the embedding.", - "default": "embedding_dict", - "examples": ["embedding_dict"] - } - }, - "type": "object", - "required": ["embedding", "index"], - "title": "MultiEncodingEmbedding" - }, - "MultiModalQuery": { - "anyOf": [ - { - "type": "string", - "minLength": 1, - "description": "The text input document to create embeddings for.", - "examples": ["This is a sample text input."] - }, - { - "oneOf": [ - { "$ref": "#/components/schemas/ImageUrlInput" }, - { "$ref": "#/components/schemas/TextInput" } + "type": { "type": "string", "const": "query", "title": "Type", "default": "query" }, + "query": { "type": "string", "minLength": 1, "title": "Query", "description": "Search query text" }, + "metadata_filters": { + "anyOf": [ + { "items": { "$ref": "#/components/schemas/QueryEnhanceMetadataFilter" }, "type": "array" }, + { "type": "null" } ], - "description": "The input to create embeddings for.", - "discriminator": { - "propertyName": "type", - "mapping": { - "image_url": "#/components/schemas/ImageUrlInput", - "text": "#/components/schemas/TextInput" - } - } - } - ] - }, - "MultipartUploadDetailResponse": { - "properties": { - "id": { "type": "string", "title": "Id", "description": "The multipart upload record ID" }, - "filename": { "type": "string", "title": "Filename", "description": "Original filename" }, - "file_size": { "type": "integer", "title": "File Size", "description": "Total file size in bytes" }, - "mime_type": { "type": "string", "title": "Mime Type", "description": "MIME type of the file" }, - "part_count": { - "type": "integer", - "title": "Part Count", - "description": "Number of parts the file was split into" + "title": "Metadata Filters", + "description": "Metadata filters to apply" }, - "created_at": { + "filter_mode": { "type": "string", - "title": "Created At", - "description": "When the upload was initiated" + "enum": ["all", "any"], + "title": "Filter Mode", + "description": "How to combine filters", + "default": "all" }, - "completed_parts": { - "items": { "$ref": "#/components/schemas/MultipartUploadPart" }, - "type": "array", - "title": "Completed Parts", - "description": "Parts that have already been uploaded" + "rank_by": { + "type": "null", + "title": "Rank By", + "description": "Always null for semantic query items. Use a sort item to rank by metadata." }, - "part_urls": { - "items": { "$ref": "#/components/schemas/MultipartUploadPartUrl" }, - "type": "array", - "title": "Part Urls", - "description": "Presigned URLs for the parts that still need to be uploaded" + "direction": { + "type": "null", + "title": "Direction", + "description": "Always null for semantic query items. Use a sort item to set rank direction." } }, "type": "object", - "required": [ - "id", - "filename", - "file_size", - "mime_type", - "part_count", - "created_at", - "completed_parts", - "part_urls" - ], - "title": "MultipartUploadDetailResponse" + "required": ["query"], + "title": "QueryEnhanceQueryItem", + "description": "Enhanced semantic search query with optional filters." }, - "MultipartUploadListResponse": { + "QueryEnhanceResults": { "properties": { - "data": { - "items": { "$ref": "#/components/schemas/MultipartUploadObject" }, + "items": { + "items": { + "oneOf": [ + { "$ref": "#/components/schemas/QueryEnhanceQueryItem" }, + { "$ref": "#/components/schemas/QueryEnhanceSortItem" } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "query": "#/components/schemas/QueryEnhanceQueryItem", + "sort": "#/components/schemas/QueryEnhanceSortItem" + } + } + }, "type": "array", - "title": "Data", - "description": "List of in-progress multipart uploads" + "maxItems": 1, + "minItems": 1, + "title": "Items", + "description": "Enhanced query item" } }, "type": "object", - "required": ["data"], - "title": "MultipartUploadListResponse" + "required": ["items"], + "title": "QueryEnhanceResults", + "description": "Enhanced query response." }, - "MultipartUploadObject": { + "QueryEnhanceSortItem": { "properties": { - "id": { "type": "string", "title": "Id", "description": "The multipart upload record ID" }, - "filename": { "type": "string", "title": "Filename", "description": "Original filename" }, - "file_size": { "type": "integer", "title": "File Size", "description": "Total file size in bytes" }, - "mime_type": { "type": "string", "title": "Mime Type", "description": "MIME type of the file" }, - "part_count": { - "type": "integer", - "title": "Part Count", - "description": "Number of parts the file was split into" + "type": { "type": "string", "const": "sort", "title": "Type", "default": "sort" }, + "metadata_filters": { + "anyOf": [ + { "items": { "$ref": "#/components/schemas/QueryEnhanceMetadataFilter" }, "type": "array" }, + { "type": "null" } + ], + "title": "Metadata Filters", + "description": "Metadata filters to apply" }, - "created_at": { + "filter_mode": { "type": "string", - "title": "Created At", - "description": "When the upload was initiated" - } - }, - "type": "object", - "required": ["id", "filename", "file_size", "mime_type", "part_count", "created_at"], - "title": "MultipartUploadObject" - }, - "MultipartUploadPart": { - "properties": { - "part_number": { - "type": "integer", - "minimum": 1, - "title": "Part Number", - "description": "1-based part number" + "enum": ["all", "any"], + "title": "Filter Mode", + "description": "How to combine filters", + "default": "all" }, - "etag": { + "rank_by": { "type": "string", - "title": "Etag", - "description": "ETag returned by the storage backend after uploading the part" + "minLength": 1, + "title": "Rank By", + "description": "Metadata field to rank results by" + }, + "direction": { + "type": "string", + "enum": ["asc", "desc"], + "title": "Direction", + "description": "Ranking direction" } }, "type": "object", - "required": ["part_number", "etag"], - "title": "MultipartUploadPart" + "required": ["rank_by", "direction"], + "title": "QueryEnhanceSortItem", + "description": "Ranking request based on metadata." }, - "MultipartUploadPartUrl": { + "QueryRegexSubstitutionRule": { "properties": { - "part_number": { - "type": "integer", - "minimum": 1, - "title": "Part Number", - "description": "1-based part number" + "query": { "type": "string", "title": "Query", "description": "The query to trigger the rule" }, + "store_id": { + "type": "string", + "title": "Store Id", + "description": "The store identifier to apply the rule to" }, - "url": { "type": "string", "title": "Url", "description": "Presigned URL for uploading this part" } - }, - "type": "object", - "required": ["part_number", "url"], - "title": "MultipartUploadPartUrl" - }, - "MultipleEncodingsEmbeddingItem": { - "properties": { - "float": { "items": { "type": "number" }, "type": "array", "title": "Float" }, - "int8": { "items": { "type": "integer" }, "type": "array", "title": "Int8" }, - "uint8": { "items": { "type": "integer" }, "type": "array", "title": "Uint8" }, - "binary": { "items": { "type": "integer" }, "type": "array", "title": "Binary" }, - "ubinary": { "items": { "type": "integer" }, "type": "array", "title": "Ubinary" }, - "base64": { "type": "string", "title": "Base64" } - }, - "type": "object", - "title": "MultipleEncodingsEmbeddingItem" - }, - "NotionDataSourceCreateOrUpdateParams": { - "properties": { "type": { "type": "string", - "const": "notion", + "const": "query_regex", "title": "Type", - "description": "The type of data source to create", - "default": "notion" + "description": "The type of substitution" }, - "name": { "type": "string", "title": "Name", "description": "The name of the data source" }, - "metadata": { - "anyOf": [{}, { "type": "null" }], - "title": "Metadata", - "description": "The metadata of the data source" + "pattern": { + "type": "string", + "title": "Pattern", + "description": "The regex pattern to match", + "examples": ["\\b(\\w+)\\s+world\\b"] }, - "auth_params": { - "anyOf": [ - { - "oneOf": [ - { "$ref": "#/components/schemas/OAuth2CreateOrUpdateParams" }, - { "$ref": "#/components/schemas/ApiKeyCreateOrUpdateParams" } - ], - "discriminator": { - "propertyName": "type", - "mapping": { - "api_key": "#/components/schemas/ApiKeyCreateOrUpdateParams", - "oauth2": "#/components/schemas/OAuth2CreateOrUpdateParams" - } - } - }, - { "type": "null" } - ], - "title": "Auth Params", - "description": "The authentication parameters of the data source. Notion supports OAuth2 and API key." + "flags": { + "items": { "$ref": "#/components/schemas/RegexFlag" }, + "type": "array", + "title": "Flags", + "description": "The regex flags to use", + "default": [] + }, + "replacement": { + "type": "string", + "title": "Replacement", + "description": "The replacement string (can use regex groups)", + "examples": ["\\1\\sglobe"] } }, "type": "object", - "required": ["name"], - "title": "NotionDataSourceCreateOrUpdateParams", - "description": "Parameters for creating or updating a Notion data source." - }, - "OAuth2CreateOrUpdateParams": { - "properties": { - "type": { "type": "string", "const": "oauth2", "title": "Type", "default": "oauth2" } - }, - "type": "object", - "title": "OAuth2CreateOrUpdateParams", - "description": "Base class for OAuth2 create or update parameters." + "required": ["query", "store_id", "type", "pattern", "replacement"], + "title": "QueryRegexSubstitutionRule", + "description": "Represents a regex query substitution rule for a vector store search." }, - "PDFChunkGeneratedMetadata": { + "QueryStringSubstitutionRule": { "properties": { - "type": { "type": "string", "const": "pdf", "title": "Type", "default": "pdf" }, - "file_type": { + "query": { "type": "string", "title": "Query", "description": "The query to trigger the rule" }, + "store_id": { "type": "string", - "const": "application/pdf", - "title": "File Type", - "default": "application/pdf" - }, - "total_pages": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Total Pages" }, - "total_size": { "anyOf": [{ "type": "integer" }, { "type": "null" }], "title": "Total Size" }, - "file_extension": { "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "File Extension" } - }, - "additionalProperties": true, - "type": "object", - "title": "PDFChunkGeneratedMetadata" - }, - "PaginationWithTotal": { - "properties": { - "limit": { - "type": "integer", - "maximum": 1000, - "title": "Limit", - "description": "Maximum number of items to return per page", - "default": 100 + "title": "Store Id", + "description": "The store identifier to apply the rule to" }, - "offset": { - "type": "integer", - "title": "Offset", - "description": "Offset of the first item to return", - "default": 0 + "type": { + "type": "string", + "const": "query_string", + "title": "Type", + "description": "The type of substitution" }, - "total": { - "type": "integer", - "title": "Total", - "description": "Total number of items available", - "default": 0 + "substitution": { + "type": "string", + "title": "Substitution", + "description": "The substitution to apply", + "examples": ["query1", "query2"] } }, "type": "object", - "title": "PaginationWithTotal", - "description": "Pagination model that includes total count of items." + "required": ["query", "store_id", "type", "substitution"], + "title": "QueryStringSubstitutionRule", + "description": "Represents a string query substitution rule for a vector store search." }, - "ParsingJob": { + "QuestionAnsweringOptions": { "properties": { - "id": { "type": "string", "title": "Id", "description": "The ID of the job" }, - "file_id": { "type": "string", "title": "File Id", "description": "The ID of the file to parse" }, - "filename": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Filename", - "description": "The name of the file" - }, - "status": { - "$ref": "#/components/schemas/ParsingJobStatus", - "description": "The status of the job" - }, - "error": { - "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], - "title": "Error", - "description": "The error of the job" - }, - "result": { - "anyOf": [{ "$ref": "#/components/schemas/DocumentParserResult" }, { "type": "null" }], - "description": "The result of the job" - }, - "started_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Started At", - "description": "The started time of the job" - }, - "finished_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Finished At", - "description": "The finished time of the job" - }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At", - "description": "The creation time of the job" - }, - "updated_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Updated At", - "description": "The updated time of the job" + "cite": { + "type": "boolean", + "title": "Cite", + "description": "Whether to use citations", + "default": true }, - "object": { - "type": "string", - "const": "parsing_job", - "title": "Object", - "description": "The type of the object", - "default": "parsing_job" + "multimodal": { + "type": "boolean", + "title": "Multimodal", + "description": "Whether to use multimodal context", + "default": true } }, "type": "object", - "required": ["id", "file_id", "status"], - "title": "ParsingJob", - "description": "A job for parsing documents with its current state and result." + "title": "QuestionAnsweringOptions", + "description": "Options for question answering." }, - "ParsingJobCreateParams": { + "RankedDocument": { "properties": { - "file_id": { "type": "string", "title": "File Id", "description": "The ID of the file to parse" }, - "element_types": { - "anyOf": [ - { "items": { "$ref": "#/components/schemas/ElementType" }, "type": "array" }, - { "type": "null" } - ], - "title": "Element Types", - "description": "The elements to extract from the document" + "index": { + "type": "integer", + "title": "Index", + "description": "The index of the document.", + "examples": [0] }, - "chunking_strategy": { - "$ref": "#/components/schemas/ChunkingStrategy", - "description": "The strategy to use for chunking the content", - "default": "page" + "score": { + "type": "number", + "title": "Score", + "description": "The score of the document.", + "examples": [0.95] }, - "return_format": { - "$ref": "#/components/schemas/ReturnFormat", - "description": "The format of the returned content", - "default": "markdown" + "input": { + "anyOf": [{}, { "type": "null" }], + "title": "Input", + "description": "The input document.", + "examples": [{ "field1": "value1", "field2": "value2" }, "Hello, world!"] }, - "mode": { - "$ref": "#/components/schemas/Mode", - "description": "The strategy to use for OCR", - "default": "high_quality" + "object": { + "type": "string", + "const": "rank_result", + "title": "Object", + "description": "The object type.", + "default": "rank_result", + "examples": ["rank_result"] } }, "type": "object", - "required": ["file_id"], - "title": "ParsingJobCreateParams", - "description": "Parameters for creating a parsing job." + "required": ["index", "score"], + "title": "RankedDocument" }, - "ParsingJobDeleted": { + "RegexFlag": { + "type": "string", + "enum": ["IGNORECASE", "MULTILINE", "DOTALL", "VERBOSE", "ASCII", "UNICODE"], + "title": "RegexFlag", + "description": "Supported regex flags." + }, + "RerankConfig": { "properties": { - "id": { "type": "string", "title": "Id", "description": "The ID of the deleted job" }, - "deleted": { - "type": "boolean", - "title": "Deleted", - "description": "Whether the job was deleted", - "default": true - }, - "object": { + "model": { "type": "string", - "const": "parsing_job", - "title": "Object", - "description": "The type of the object", - "default": "parsing_job" + "maxLength": 500, + "minLength": 1, + "title": "Model", + "description": "The name of the reranking model", + "default": "mixedbread-ai/mxbai-rerank-large-v2", + "examples": ["rerank_model"] + }, + "with_metadata": { + "anyOf": [{ "type": "boolean" }, { "items": { "type": "string" }, "type": "array" }], + "title": "With Metadata", + "description": "Whether to include metadata in the reranked results", + "default": false, + "examples": [true, false, ["metadata1", "metadata2"]] + }, + "top_k": { + "anyOf": [{ "type": "integer", "exclusiveMinimum": 0 }, { "type": "null" }], + "title": "Top K", + "description": "Maximum number of results to return after reranking. If None, returns all reranked results.", + "examples": [10, 50, 100] } }, "type": "object", - "required": ["id"], - "title": "ParsingJobDeleted", - "description": "A deleted parsing job." + "title": "RerankConfig", + "description": "Represents a reranking configuration." }, - "ParsingJobListItem": { + "RerankParams": { "properties": { - "id": { "type": "string", "title": "Id", "description": "The ID of the job" }, - "file_id": { "type": "string", "title": "File Id", "description": "The ID of the file to parse" }, - "filename": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Filename", - "description": "The name of the file" - }, - "status": { - "$ref": "#/components/schemas/ParsingJobStatus", - "description": "The status of the job" + "model": { + "type": "string", + "maxLength": 500, + "minLength": 1, + "title": "Model", + "description": "The model to use for reranking documents.", + "default": "mixedbread-ai/mxbai-rerank-large-v2", + "examples": ["mixedbread-ai/mxbai-rerank-large-v2"] }, - "error": { - "anyOf": [{ "additionalProperties": true, "type": "object" }, { "type": "null" }], - "title": "Error", - "description": "The error of the job" + "query": { + "type": "string", + "maxLength": 32000, + "minLength": 1, + "title": "Query", + "description": "The query to rerank the documents.", + "examples": ["What are the key features of the Mixedbread embedding model?"] }, - "started_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Started At", - "description": "The started time of the job" + "input": { + "items": { "anyOf": [{ "type": "string" }, {}, { "items": {}, "type": "array" }] }, + "type": "array", + "maxItems": 1000, + "minItems": 1, + "title": "Input", + "description": "The input documents to rerank.", + "examples": [ + ["Document 1", "Document 2"], + [ + { "field1": "value1", "field2": "value2" }, + { "field1": "value3", "field2": "value4" } + ] + ] }, - "finished_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Finished At", - "description": "The finished time of the job" + "rank_fields": { + "anyOf": [{ "items": { "type": "string" }, "type": "array", "minItems": 1 }, { "type": "null" }], + "title": "Rank Fields", + "description": "The fields of the documents to rank.", + "examples": [ + ["content", "title"], + ["document.text", "metadata.summary"] + ] }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At", - "description": "The creation time of the job" + "top_k": { + "type": "integer", + "minimum": 1, + "title": "Top K", + "description": "The number of documents to return.", + "default": -1, + "examples": [10] }, - "updated_at": { - "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], - "title": "Updated At", - "description": "The updated time of the job" + "return_input": { + "type": "boolean", + "title": "Return Input", + "description": "Whether to return the documents.", + "default": false, + "examples": [false] }, - "object": { - "type": "string", - "const": "parsing_job", - "title": "Object", - "description": "The type of the object", - "default": "parsing_job" + "rewrite_query": { + "type": "boolean", + "title": "Rewrite Query", + "description": "Wether or not to rewrite the query before passing it to the reranking model", + "default": false, + "examples": [false] } }, "type": "object", - "required": ["id", "file_id", "status"], - "title": "ParsingJobListItem", - "description": "A parsing job item for list responses." + "required": ["query", "input"], + "title": "RerankParams", + "description": "Parameters for reranking documents." }, - "ParsingJobListResponse": { + "RerankResponse": { "properties": { - "pagination": { "$ref": "#/components/schemas/CursorPaginationResponse" }, + "usage": { + "$ref": "#/components/schemas/Usage", + "description": "The usage of the model", + "examples": [{ "completion_tokens": 10, "prompt_tokens": 10, "total_tokens": 20 }] + }, + "model": { "type": "string", "title": "Model", "description": "The model used" }, "data": { - "items": { "$ref": "#/components/schemas/ParsingJobListItem" }, + "items": { "$ref": "#/components/schemas/RankedDocument" }, "type": "array", "title": "Data", - "description": "The list of parsing jobs" + "description": "The ranked documents.", + "examples": [ + [ + { + "index": 0, + "input": { "field1": "value1", "field2": "value2" }, + "object": "rank_result", + "score": 0.95 + }, + { "index": 1, "input": "Hello, world!", "object": "rank_result", "score": 0.94 } + ] + ] }, "object": { "type": "string", @@ -6965,153 +9202,120 @@ "title": "Object", "description": "The object type of the response", "default": "list" - } - }, - "type": "object", - "required": ["pagination", "data"], - "title": "ParsingJobListResponse", - "description": "A list of parsing jobs with pagination." - }, - "ParsingJobStatus": { - "type": "string", - "enum": ["pending", "in_progress", "cancelled", "completed", "failed"], - "title": "ParsingJobStatus" - }, - "Period": { - "properties": { - "start": { - "type": "string", - "format": "date-time", - "title": "Start", - "description": "The start of the billing period" - }, - "end": { - "type": "string", - "format": "date-time", - "title": "End", - "description": "The end of the billing period" - } - }, - "type": "object", - "required": ["start", "end"], - "title": "Period", - "description": "Inclusive/exclusive window describing a billing period." - }, - "PhaseCostInfo": { - "properties": { - "period": { "$ref": "#/components/schemas/Period", "description": "The period" }, - "net_usage_cost": { - "type": "string", - "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", - "title": "Net Usage Cost", - "description": "The net usage cost" }, - "gross_usage_cost": { - "type": "string", - "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", - "title": "Gross Usage Cost", - "description": "The gross usage cost" + "top_k": { + "type": "integer", + "title": "Top K", + "description": "The number of documents to return.", + "examples": [10] }, - "balance_applied": { - "type": "string", - "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", - "title": "Balance Applied", - "description": "The balance applied" + "return_input": { + "type": "boolean", + "title": "Return Input", + "description": "Whether to return the documents.", + "examples": [false] } }, "type": "object", - "required": ["period", "net_usage_cost", "gross_usage_cost", "balance_applied"], - "title": "PhaseCostInfo", - "description": "Cost information for a billing phase." + "required": ["usage", "model", "data", "top_k", "return_input"], + "title": "RerankResponse" }, - "ProductCostInfo": { + "ReturnFormat": { + "type": "string", + "enum": ["html", "markdown", "plain"], + "title": "ReturnFormat", + "description": "Format options for the returned document content." + }, + "Scope": { "properties": { - "product_name": { - "type": "string", - "title": "Product Name", - "description": "The name of the product. Store, Parsing, Reranking, Embeddings" - }, - "gross_usage_cost": { + "method": { "type": "string", - "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", - "title": "Gross Usage Cost", - "description": "The gross usage cost of the product" + "enum": ["read", "write", "delete", "list", "create", "search"], + "title": "Method" }, - "net_usage_cost": { - "type": "string", - "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", - "title": "Net Usage Cost", - "description": "The net usage cost of the product" + "resource_type": { + "anyOf": [{ "type": "string", "const": "store" }, { "type": "null" }], + "title": "Resource Type" }, - "balance_applied": { - "type": "string", - "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", - "title": "Balance Applied", - "description": "The balance applied to the product" + "resource_id": { + "anyOf": [{ "type": "string" }, { "type": "string", "format": "uuid" }, { "type": "null" }], + "title": "Resource Id" } }, "type": "object", - "required": ["product_name", "gross_usage_cost", "net_usage_cost", "balance_applied"], - "title": "ProductCostInfo", - "description": "Cost information for a product." + "required": ["method"], + "title": "Scope" }, - "QueryEnhanceMetadataFilter": { + "SearchCursorPagination": { "properties": { - "key": { "type": "string", "minLength": 1, "title": "Key", "description": "Metadata field key" }, - "operator": { - "$ref": "#/components/schemas/ConditionOperator", - "description": "Comparison operator" + "limit": { + "type": "integer", + "maximum": 100, + "minimum": 1, + "title": "Limit", + "description": "Maximum number of items to return per page (1-100)", + "default": 20, + "examples": [10, 20, 50] }, - "value": { + "after": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "After", + "description": "Cursor for forward pagination - get items after this position. Use last_cursor from previous response.", + "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ=="] + }, + "before": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Before", + "description": "Cursor for backward pagination - get items before this position. Use first_cursor from previous response.", + "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ=="] + }, + "include_total": { + "type": "boolean", + "title": "Include Total", + "description": "Whether to include total count in response (expensive operation)", + "default": false, + "examples": [false, true] + }, + "statuses": { "anyOf": [ - { "type": "string" }, - { "type": "integer" }, - { "type": "number" }, - { "type": "boolean" }, + { "items": { "$ref": "#/components/schemas/StoreFileStatus" }, "type": "array" }, + { "type": "null" } + ], + "title": "Statuses", + "description": "Status to filter by" + }, + "metadata_filter": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Input" }, + { "$ref": "#/components/schemas/SearchFilterCondition" }, { "items": { "anyOf": [ - { "type": "string" }, - { "type": "integer" }, - { "type": "number" }, - { "type": "boolean" } + { "$ref": "#/components/schemas/SearchFilter-Input" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } ] }, "type": "array" }, { "type": "null" } ], - "title": "Value", - "description": "Value to compare against. Use a list for `in`/`not_in`." + "title": "Metadata Filter", + "description": "Metadata filter to apply to the query" + }, + "q": { + "anyOf": [{ "type": "string", "maxLength": 255, "minLength": 1 }, { "type": "null" }], + "title": "Q", + "description": "Search query for fuzzy matching over name and external_id fields" } }, - "additionalProperties": false, "type": "object", - "required": ["key", "operator", "value"], - "title": "QueryEnhanceMetadataFilter", - "description": "Metadata filter condition." + "title": "SearchCursorPagination", + "description": "Cursor pagination with status, metadata, and a search query." }, - "QueryEnhanceParams": { + "SearchFilter-Input": { "properties": { - "store_identifiers": { - "items": { "anyOf": [{ "type": "string" }, { "type": "string", "format": "uuid" }] }, - "type": "array", - "maxItems": 16, - "minItems": 1, - "title": "Store Identifiers", - "description": "IDs or names of stores" - }, - "top_k": { - "type": "integer", - "minimum": 1, - "title": "Top K", - "description": "Number of results to return", - "default": 10 - }, - "filters": { + "all": { "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter-Input" }, - { "$ref": "#/components/schemas/SearchFilterCondition" }, { "items": { "anyOf": [ @@ -7123,689 +9327,573 @@ }, { "type": "null" } ], - "title": "Filters", - "description": "Optional filter conditions" + "title": "All", + "description": "List of conditions or filters to be ANDed together", + "examples": [ + [ + { "key": "price", "operator": "gt", "value": "100" }, + { "key": "color", "operator": "eq", "value": "red" } + ], + null + ] }, - "file_ids": { + "any": { "anyOf": [ { - "prefixItems": [ - { "$ref": "#/components/schemas/ConditionOperator" }, - { "items": { "type": "string", "format": "uuid" }, "type": "array" } - ], - "type": "array", - "maxItems": 2, - "minItems": 2 + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Input" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" }, - { "items": { "type": "string", "format": "uuid" }, "type": "array" }, { "type": "null" } ], - "title": "File Ids", - "description": "Optional list of file IDs to filter chunks by (inclusion filter)", + "title": "Any", + "description": "List of conditions or filters to be ORed together", "examples": [ - ["123e4567-e89b-12d3-a456-426614174000", "123e4567-e89b-12d3-a456-426614174001"], - ["in", ["123e4567-e89b-12d3-a456-426614174000"]], - ["not_in", ["123e4567-e89b-12d3-a456-426614174000"]] + [ + { "key": "price", "operator": "gt", "value": "100" }, + { "key": "color", "operator": "eq", "value": "red" } + ], + null ] }, - "query": { - "$ref": "#/components/schemas/MultiModalQuery", - "description": "Search query text", - "examples": ["how to configure SSL"] - }, - "search_options": { - "$ref": "#/components/schemas/StoreChunkSearchOptions", - "description": "Search configuration options" - }, - "instructions": { - "anyOf": [{ "type": "string", "maxLength": 2000 }, { "type": "null" }], - "title": "Instructions", - "description": "Optional guidance for query enhancement." - } - }, - "type": "object", - "required": ["store_identifiers", "query"], - "title": "QueryEnhanceParams", - "description": "Parameters for enhancing a search query." - }, - "QueryEnhanceQueryItem": { - "properties": { - "type": { "type": "string", "const": "query", "title": "Type", "default": "query" }, - "query": { "type": "string", "minLength": 1, "title": "Query", "description": "Search query text" }, - "metadata_filters": { + "none": { "anyOf": [ - { "items": { "$ref": "#/components/schemas/QueryEnhanceMetadataFilter" }, "type": "array" }, + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Input" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, { "type": "null" } ], - "title": "Metadata Filters", - "description": "Metadata filters to apply" - }, - "filter_mode": { - "type": "string", - "enum": ["all", "any"], - "title": "Filter Mode", - "description": "How to combine filters", - "default": "all" - }, - "rank_by": { - "type": "null", - "title": "Rank By", - "description": "Always null for semantic query items. Use a sort item to rank by metadata." - }, - "direction": { - "type": "null", - "title": "Direction", - "description": "Always null for semantic query items. Use a sort item to set rank direction." - } - }, - "type": "object", - "required": ["query"], - "title": "QueryEnhanceQueryItem", - "description": "Enhanced semantic search query with optional filters." - }, - "QueryEnhanceResults": { - "properties": { - "items": { - "items": { - "oneOf": [ - { "$ref": "#/components/schemas/QueryEnhanceQueryItem" }, - { "$ref": "#/components/schemas/QueryEnhanceSortItem" } - ], - "discriminator": { - "propertyName": "type", - "mapping": { - "query": "#/components/schemas/QueryEnhanceQueryItem", - "sort": "#/components/schemas/QueryEnhanceSortItem" - } - } - }, - "type": "array", - "maxItems": 1, - "minItems": 1, - "title": "Items", - "description": "Enhanced query item" + "title": "None", + "description": "List of conditions or filters to be NOTed", + "examples": [ + [ + { "key": "price", "operator": "gt", "value": "100" }, + { "key": "color", "operator": "eq", "value": "red" } + ], + null + ] } }, "type": "object", - "required": ["items"], - "title": "QueryEnhanceResults", - "description": "Enhanced query response." + "title": "SearchFilter", + "description": "Represents a filter with AND, OR, and NOT conditions." }, - "QueryEnhanceSortItem": { + "SearchFilter-Output": { "properties": { - "type": { "type": "string", "const": "sort", "title": "Type", "default": "sort" }, - "metadata_filters": { + "all": { "anyOf": [ - { "items": { "$ref": "#/components/schemas/QueryEnhanceMetadataFilter" }, "type": "array" }, + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, { "type": "null" } ], - "title": "Metadata Filters", - "description": "Metadata filters to apply" - }, - "filter_mode": { - "type": "string", - "enum": ["all", "any"], - "title": "Filter Mode", - "description": "How to combine filters", - "default": "all" - }, - "rank_by": { - "type": "string", - "minLength": 1, - "title": "Rank By", - "description": "Metadata field to rank results by" - }, - "direction": { - "type": "string", - "enum": ["asc", "desc"], - "title": "Direction", - "description": "Ranking direction" - } - }, - "type": "object", - "required": ["rank_by", "direction"], - "title": "QueryEnhanceSortItem", - "description": "Ranking request based on metadata." - }, - "QueryRegexSubstitutionRule": { - "properties": { - "query": { "type": "string", "title": "Query", "description": "The query to trigger the rule" }, - "store_id": { - "type": "string", - "title": "Store Id", - "description": "The store identifier to apply the rule to" - }, - "type": { - "type": "string", - "const": "query_regex", - "title": "Type", - "description": "The type of substitution" - }, - "pattern": { - "type": "string", - "title": "Pattern", - "description": "The regex pattern to match", - "examples": ["\\b(\\w+)\\s+world\\b"] + "title": "All", + "description": "List of conditions or filters to be ANDed together", + "examples": [ + [ + { "key": "price", "operator": "gt", "value": "100" }, + { "key": "color", "operator": "eq", "value": "red" } + ], + null + ] }, - "flags": { - "items": { "$ref": "#/components/schemas/RegexFlag" }, - "type": "array", - "title": "Flags", - "description": "The regex flags to use", - "default": [] + "any": { + "anyOf": [ + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, + { "type": "null" } + ], + "title": "Any", + "description": "List of conditions or filters to be ORed together", + "examples": [ + [ + { "key": "price", "operator": "gt", "value": "100" }, + { "key": "color", "operator": "eq", "value": "red" } + ], + null + ] }, - "replacement": { - "type": "string", - "title": "Replacement", - "description": "The replacement string (can use regex groups)", - "examples": ["\\1\\sglobe"] + "none": { + "anyOf": [ + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, + { "type": "null" } + ], + "title": "None", + "description": "List of conditions or filters to be NOTed", + "examples": [ + [ + { "key": "price", "operator": "gt", "value": "100" }, + { "key": "color", "operator": "eq", "value": "red" } + ], + null + ] } }, "type": "object", - "required": ["query", "store_id", "type", "pattern", "replacement"], - "title": "QueryRegexSubstitutionRule", - "description": "Represents a regex query substitution rule for a vector store search." + "title": "SearchFilter", + "description": "Represents a filter with AND, OR, and NOT conditions." }, - "QueryStringSubstitutionRule": { + "SearchFilterCondition": { "properties": { - "query": { "type": "string", "title": "Query", "description": "The query to trigger the rule" }, - "store_id": { + "key": { "type": "string", - "title": "Store Id", - "description": "The store identifier to apply the rule to" + "title": "Key", + "description": "The field to apply the condition on", + "examples": ["price", "color"] }, - "type": { - "type": "string", - "const": "query_string", - "title": "Type", - "description": "The type of substitution" + "value": { + "title": "Value", + "description": "The value to compare against", + "examples": ["100", "red"] }, - "substitution": { - "type": "string", - "title": "Substitution", - "description": "The substitution to apply", - "examples": ["query1", "query2"] + "operator": { + "$ref": "#/components/schemas/ConditionOperator", + "description": "The operator for the condition", + "examples": ["eq", "gt"] } }, "type": "object", - "required": ["query", "store_id", "type", "substitution"], - "title": "QueryStringSubstitutionRule", - "description": "Represents a string query substitution rule for a vector store search." + "required": ["key", "value", "operator"], + "title": "SearchFilterCondition", + "description": "Represents a condition with a field, operator, and value." }, - "QuestionAnsweringOptions": { + "SlackChannel": { "properties": { - "cite": { + "id": { "type": "string", "title": "Id", "description": "Slack channel ID" }, + "name": { "type": "string", "title": "Name", "description": "Slack channel name" }, + "is_archived": { "type": "boolean", - "title": "Cite", - "description": "Whether to use citations", - "default": true + "title": "Is Archived", + "description": "Whether the Slack channel is archived" }, - "multimodal": { + "is_member": { "type": "boolean", - "title": "Multimodal", - "description": "Whether to use multimodal context", - "default": true - } - }, - "type": "object", - "title": "QuestionAnsweringOptions", - "description": "Options for question answering." - }, - "RankedDocument": { - "properties": { - "index": { - "type": "integer", - "title": "Index", - "description": "The index of the document.", - "examples": [0] + "title": "Is Member", + "description": "Whether the Slack app bot is a member" }, - "score": { - "type": "number", - "title": "Score", - "description": "The score of the document.", - "examples": [0.95] + "is_selected": { + "type": "boolean", + "title": "Is Selected", + "description": "Whether this channel is selected for store ingestion" }, - "input": { - "anyOf": [{}, { "type": "null" }], - "title": "Input", - "description": "The input document.", - "examples": [{ "field1": "value1", "field2": "value2" }, "Hello, world!"] + "num_members": { + "anyOf": [{ "type": "integer" }, { "type": "null" }], + "title": "Num Members", + "description": "Approximate Slack channel member count" }, - "object": { - "type": "string", - "const": "rank_result", - "title": "Object", - "description": "The object type.", - "default": "rank_result", - "examples": ["rank_result"] - } - }, - "type": "object", - "required": ["index", "score"], - "title": "RankedDocument" - }, - "RegexFlag": { - "type": "string", - "enum": ["IGNORECASE", "MULTILINE", "DOTALL", "VERBOSE", "ASCII", "UNICODE"], - "title": "RegexFlag", - "description": "Supported regex flags." - }, - "RerankConfig": { - "properties": { - "model": { + "sync_status": { "type": "string", - "maxLength": 500, - "minLength": 1, - "title": "Model", - "description": "The name of the reranking model", - "default": "mixedbread-ai/mxbai-rerank-large-v2", - "examples": ["rerank_model"] + "enum": ["syncing", "not_syncing", "error"], + "title": "Sync Status", + "description": "Current Slack ingestion status", + "default": "not_syncing" + }, + "last_synced_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Last Synced At", + "description": "Last successful Slack sync time" + }, + "sync_error": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Sync Error", + "description": "Last Slack sync error" + }, + "last_sync_status": { + "anyOf": [ + { "type": "string", "enum": ["queued", "in_progress", "completed", "skipped", "error"] }, + { "type": "null" } + ], + "title": "Last Sync Status", + "description": "Most recent Slack history import status" + }, + "last_sync_started_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Last Sync Started At", + "description": "Most recent Slack history import start time" + }, + "last_sync_completed_at": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }], + "title": "Last Sync Completed At", + "description": "Most recent Slack history import completion time" + }, + "last_sync_message_count": { + "anyOf": [{ "type": "integer" }, { "type": "null" }], + "title": "Last Sync Message Count", + "description": "Messages fetched in the last Slack history import" }, - "with_metadata": { - "anyOf": [{ "type": "boolean" }, { "items": { "type": "string" }, "type": "array" }], - "title": "With Metadata", - "description": "Whether to include metadata in the reranked results", - "default": false, - "examples": [true, false, ["metadata1", "metadata2"]] + "last_sync_store_file_count": { + "anyOf": [{ "type": "integer" }, { "type": "null" }], + "title": "Last Sync Store File Count", + "description": "Store files written in the last Slack history import" }, - "top_k": { - "anyOf": [{ "type": "integer", "exclusiveMinimum": 0 }, { "type": "null" }], - "title": "Top K", - "description": "Maximum number of results to return after reranking. If None, returns all reranked results.", - "examples": [10, 50, 100] + "last_sync_run_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Last Sync Run Id", + "description": "Most recent Slack history import run ID" + }, + "syncs_in_progress": { + "type": "integer", + "title": "Syncs In Progress", + "description": "Number of active Slack history imports for this channel", + "default": 0 + }, + "last_sync_warning": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Last Sync Warning", + "description": "Most recent Slack item-level sync warning" + }, + "last_sync_failed_item_count": { + "type": "integer", + "title": "Last Sync Failed Item Count", + "description": "Number of Slack items that failed in the most recent import", + "default": 0 + }, + "last_sync_failed_items": { + "items": { "additionalProperties": true, "type": "object" }, + "type": "array", + "title": "Last Sync Failed Items", + "description": "Bounded Slack item failures from the most recent import" } }, "type": "object", - "title": "RerankConfig", - "description": "Represents a reranking configuration." + "required": ["id", "name", "is_archived", "is_member", "is_selected"], + "title": "SlackChannel", + "description": "Slack public channel exposed for connector configuration." }, - "RerankParams": { + "SlackChannelSelection": { "properties": { - "model": { - "type": "string", - "maxLength": 500, - "minLength": 1, - "title": "Model", - "description": "The model to use for reranking documents.", - "default": "mixedbread-ai/mxbai-rerank-large-v2", - "examples": ["mixedbread-ai/mxbai-rerank-large-v2"] + "is_installed": { + "type": "boolean", + "title": "Is Installed", + "description": "Whether Slack is installed for the organization" }, - "query": { - "type": "string", - "maxLength": 32000, - "minLength": 1, - "title": "Query", - "description": "The query to rerank the documents.", - "examples": ["What are the key features of the Mixedbread embedding model?"] + "installation_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Installation Id", + "description": "Slack installation ID" }, - "input": { - "items": { "anyOf": [{ "type": "string" }, {}, { "items": {}, "type": "array" }] }, - "type": "array", - "maxItems": 1000, - "minItems": 1, - "title": "Input", - "description": "The input documents to rerank.", - "examples": [ - ["Document 1", "Document 2"], - [ - { "field1": "value1", "field2": "value2" }, - { "field1": "value3", "field2": "value4" } - ] - ] + "team_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Team Id", + "description": "Slack team ID" }, - "rank_fields": { - "anyOf": [{ "items": { "type": "string" }, "type": "array", "minItems": 1 }, { "type": "null" }], - "title": "Rank Fields", - "description": "The fields of the documents to rank.", - "examples": [ - ["content", "title"], - ["document.text", "metadata.summary"] - ] + "team_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Team Name", + "description": "Slack team name" }, - "top_k": { - "type": "integer", - "minimum": 1, - "title": "Top K", - "description": "The number of documents to return.", - "default": -1, - "examples": [10] + "store_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Store Id", + "description": "Mixedbread store ID" }, - "return_input": { - "type": "boolean", - "title": "Return Input", - "description": "Whether to return the documents.", - "default": false, - "examples": [false] + "store_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Store Name", + "description": "Mixedbread store name" }, - "rewrite_query": { + "auto_sync_all_channels": { "type": "boolean", - "title": "Rewrite Query", - "description": "Wether or not to rewrite the query before passing it to the reranking model", - "default": false, - "examples": [false] + "title": "Auto Sync All Channels", + "description": "Whether all current and future Slack channels are synced automatically", + "default": false + }, + "channels": { + "items": { "$ref": "#/components/schemas/SlackChannel" }, + "type": "array", + "title": "Channels", + "description": "Available public Slack channels" } }, "type": "object", - "required": ["query", "input"], - "title": "RerankParams", - "description": "Parameters for reranking documents." + "required": ["is_installed", "channels"], + "title": "SlackChannelSelection", + "description": "Slack channel selection for a store connector." }, - "RerankResponse": { + "SlackChannelSelectionResponse": { "properties": { - "usage": { - "$ref": "#/components/schemas/Usage", - "description": "The usage of the model", - "examples": [{ "completion_tokens": 10, "prompt_tokens": 10, "total_tokens": 20 }] - }, - "model": { "type": "string", "title": "Model", "description": "The model used" }, "data": { - "items": { "$ref": "#/components/schemas/RankedDocument" }, + "$ref": "#/components/schemas/SlackChannelSelection", + "description": "Slack channel selection" + } + }, + "type": "object", + "required": ["data"], + "title": "SlackChannelSelectionResponse", + "description": "Slack channel selection response." + }, + "SlackChannelSelectionUpdate": { + "properties": { + "store_id": { "type": "string", "title": "Store Id", "description": "Mixedbread store ID" }, + "selected_channel_ids": { + "items": { "type": "string" }, "type": "array", - "title": "Data", - "description": "The ranked documents.", - "examples": [ - [ - { - "index": 0, - "input": { "field1": "value1", "field2": "value2" }, - "object": "rank_result", - "score": 0.95 - }, - { "index": 1, "input": "Hello, world!", "object": "rank_result", "score": 0.94 } - ] - ] + "title": "Selected Channel Ids", + "description": "Selected Slack channel IDs" }, - "object": { - "type": "string", - "const": "list", - "title": "Object", - "description": "The object type of the response", - "default": "list" + "joined_channel_ids": { + "items": { "type": "string" }, + "type": "array", + "title": "Joined Channel Ids", + "description": "Slack channels the app joined while saving" }, - "top_k": { - "type": "integer", - "title": "Top K", - "description": "The number of documents to return.", - "examples": [10] + "backfill_channel_ids": { + "items": { "type": "string" }, + "type": "array", + "title": "Backfill Channel Ids", + "description": "Slack channels queued for historical ingestion" }, - "return_input": { - "type": "boolean", - "title": "Return Input", - "description": "Whether to return the documents.", - "examples": [false] + "skipped_channels": { + "additionalProperties": { "type": "string" }, + "type": "object", + "title": "Skipped Channels", + "description": "Slack channel IDs skipped by Slack error" } }, "type": "object", - "required": ["usage", "model", "data", "top_k", "return_input"], - "title": "RerankResponse" - }, - "ReturnFormat": { - "type": "string", - "enum": ["html", "markdown", "plain"], - "title": "ReturnFormat", - "description": "Format options for the returned document content." + "required": [ + "store_id", + "selected_channel_ids", + "joined_channel_ids", + "backfill_channel_ids", + "skipped_channels" + ], + "title": "SlackChannelSelectionUpdate", + "description": "Result of updating Slack channel selection." }, - "Scope": { + "SlackChannelSelectionUpdateParams": { "properties": { - "method": { + "installation_id": { "type": "string", - "enum": ["read", "write", "delete", "list", "create", "search"], - "title": "Method" - }, - "resource_type": { - "anyOf": [{ "type": "string", "const": "store" }, { "type": "null" }], - "title": "Resource Type" + "format": "uuid", + "title": "Installation Id", + "description": "Slack installation ID" }, - "resource_id": { - "anyOf": [{ "type": "string" }, { "type": "string", "format": "uuid" }, { "type": "null" }], - "title": "Resource Id" + "channel_ids": { + "items": { "type": "string" }, + "type": "array", + "title": "Channel Ids", + "description": "Slack channel IDs to ingest into the store" } }, "type": "object", - "required": ["method"], - "title": "Scope" + "required": ["installation_id", "channel_ids"], + "title": "SlackChannelSelectionUpdateParams", + "description": "Parameters for selecting Slack channels for store ingestion." }, - "SearchCursorPagination": { + "SlackChannelSelectionUpdateResponse": { "properties": { - "limit": { - "type": "integer", - "maximum": 100, - "minimum": 1, - "title": "Limit", - "description": "Maximum number of items to return per page (1-100)", - "default": 20, - "examples": [10, 20, 50] + "data": { + "$ref": "#/components/schemas/SlackChannelSelectionUpdate", + "description": "Slack channel selection update" + } + }, + "type": "object", + "required": ["data"], + "title": "SlackChannelSelectionUpdateResponse", + "description": "Slack channel selection update response." + }, + "SlackChannelSync": { + "properties": { + "store_id": { "type": "string", "title": "Store Id", "description": "Mixedbread store ID" }, + "queued_channel_ids": { + "items": { "type": "string" }, + "type": "array", + "title": "Queued Channel Ids", + "description": "Slack channel IDs queued for historical sync" }, - "after": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "After", - "description": "Cursor for forward pagination - get items after this position. Use last_cursor from previous response.", - "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ=="] + "skipped_channels": { + "additionalProperties": { "type": "string" }, + "type": "object", + "title": "Skipped Channels", + "description": "Slack channel IDs skipped by validation" + } + }, + "type": "object", + "required": ["store_id", "queued_channel_ids", "skipped_channels"], + "title": "SlackChannelSync", + "description": "Result of manually syncing selected Slack channels." + }, + "SlackChannelSyncParams": { + "properties": { + "installation_id": { + "type": "string", + "format": "uuid", + "title": "Installation Id", + "description": "Slack installation ID" }, - "before": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "title": "Before", - "description": "Cursor for backward pagination - get items before this position. Use first_cursor from previous response.", - "examples": ["eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ=="] + "channel_ids": { + "anyOf": [{ "items": { "type": "string" }, "type": "array" }, { "type": "null" }], + "title": "Channel Ids", + "description": "Slack channel IDs to sync. Defaults to all selected channels." }, - "include_total": { + "retry_failed_only": { "type": "boolean", - "title": "Include Total", - "description": "Whether to include total count in response (expensive operation)", - "default": false, - "examples": [false, true] - }, - "statuses": { - "anyOf": [ - { "items": { "$ref": "#/components/schemas/StoreFileStatus" }, "type": "array" }, - { "type": "null" } - ], - "title": "Statuses", - "description": "Status to filter by" - }, - "metadata_filter": { - "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter-Input" }, - { "$ref": "#/components/schemas/SearchFilterCondition" }, - { - "items": { - "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter-Input" }, - { "$ref": "#/components/schemas/SearchFilterCondition" } - ] - }, - "type": "array" - }, - { "type": "null" } - ], - "title": "Metadata Filter", - "description": "Metadata filter to apply to the query" - }, - "q": { - "anyOf": [{ "type": "string", "maxLength": 255, "minLength": 1 }, { "type": "null" }], - "title": "Q", - "description": "Search query for fuzzy matching over name and external_id fields" + "title": "Retry Failed Only", + "description": "Only retry Slack items that failed in the most recent import.", + "default": false + } + }, + "type": "object", + "required": ["installation_id"], + "title": "SlackChannelSyncParams", + "description": "Parameters for manually syncing selected Slack channels." + }, + "SlackChannelSyncResponse": { + "properties": { + "data": { + "$ref": "#/components/schemas/SlackChannelSync", + "description": "Slack channel manual sync result" + } + }, + "type": "object", + "required": ["data"], + "title": "SlackChannelSyncResponse", + "description": "Slack channel manual sync response." + }, + "SlackInstallationConfigUpdateBody": { + "properties": { + "auto_sync_all_channels": { + "type": "boolean", + "title": "Auto Sync All Channels", + "description": "Whether all current and future Slack channels are synced automatically" } }, "type": "object", - "title": "SearchCursorPagination", - "description": "Cursor pagination with status, metadata, and a search query." + "required": ["auto_sync_all_channels"], + "title": "SlackInstallationConfigUpdateBody", + "description": "Request body for updating a Slack installation's data source config." }, - "SearchFilter-Input": { + "SlackInstallationOverview": { "properties": { - "all": { - "anyOf": [ - { - "items": { - "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter-Input" }, - { "$ref": "#/components/schemas/SearchFilterCondition" } - ] - }, - "type": "array" - }, - { "type": "null" } - ], - "title": "All", - "description": "List of conditions or filters to be ANDed together", - "examples": [ - [ - { "key": "price", "operator": "gt", "value": "100" }, - { "key": "color", "operator": "eq", "value": "red" } - ], - null - ] + "installation_id": { + "type": "string", + "title": "Installation Id", + "description": "Slack installation ID" }, - "any": { - "anyOf": [ - { - "items": { - "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter-Input" }, - { "$ref": "#/components/schemas/SearchFilterCondition" } - ] - }, - "type": "array" - }, - { "type": "null" } - ], - "title": "Any", - "description": "List of conditions or filters to be ORed together", - "examples": [ - [ - { "key": "price", "operator": "gt", "value": "100" }, - { "key": "color", "operator": "eq", "value": "red" } - ], - null - ] + "team_id": { "type": "string", "title": "Team Id", "description": "Slack team ID" }, + "team_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Team Name", + "description": "Slack team name" }, - "none": { - "anyOf": [ - { - "items": { - "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter-Input" }, - { "$ref": "#/components/schemas/SearchFilterCondition" } - ] - }, - "type": "array" - }, - { "type": "null" } - ], - "title": "None", - "description": "List of conditions or filters to be NOTed", - "examples": [ - [ - { "key": "price", "operator": "gt", "value": "100" }, - { "key": "color", "operator": "eq", "value": "red" } - ], - null - ] + "status": { "type": "string", "title": "Status", "description": "The installation status" }, + "store_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Store Id", + "description": "Mixedbread ingestion store ID" + }, + "store_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Store Name", + "description": "Mixedbread ingestion store name" + }, + "syncing_channel_count": { + "type": "integer", + "title": "Syncing Channel Count", + "description": "Number of Slack channels selected for ingestion", + "default": 0 + }, + "auto_sync_all_channels": { + "type": "boolean", + "title": "Auto Sync All Channels", + "description": "Whether all current and future Slack channels are synced automatically", + "default": false } }, "type": "object", - "title": "SearchFilter", - "description": "Represents a filter with AND, OR, and NOT conditions." + "required": ["installation_id", "team_id", "team_name", "status"], + "title": "SlackInstallationOverview", + "description": "Summary of a connected Slack workspace for the data sources overview." }, - "SearchFilter-Output": { + "SlackInstallationOverviewListResponse": { "properties": { - "all": { - "anyOf": [ - { - "items": { - "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter-Output" }, - { "$ref": "#/components/schemas/SearchFilterCondition" } - ] - }, - "type": "array" - }, - { "type": "null" } - ], - "title": "All", - "description": "List of conditions or filters to be ANDed together", - "examples": [ - [ - { "key": "price", "operator": "gt", "value": "100" }, - { "key": "color", "operator": "eq", "value": "red" } - ], - null - ] - }, - "any": { - "anyOf": [ - { - "items": { - "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter-Output" }, - { "$ref": "#/components/schemas/SearchFilterCondition" } - ] - }, - "type": "array" - }, - { "type": "null" } - ], - "title": "Any", - "description": "List of conditions or filters to be ORed together", - "examples": [ - [ - { "key": "price", "operator": "gt", "value": "100" }, - { "key": "color", "operator": "eq", "value": "red" } - ], - null - ] - }, - "none": { - "anyOf": [ - { - "items": { - "anyOf": [ - { "$ref": "#/components/schemas/SearchFilter-Output" }, - { "$ref": "#/components/schemas/SearchFilterCondition" } - ] - }, - "type": "array" - }, - { "type": "null" } - ], - "title": "None", - "description": "List of conditions or filters to be NOTed", - "examples": [ - [ - { "key": "price", "operator": "gt", "value": "100" }, - { "key": "color", "operator": "eq", "value": "red" } - ], - null - ] + "data": { + "items": { "$ref": "#/components/schemas/SlackInstallationOverview" }, + "type": "array", + "title": "Data", + "description": "Connected Slack workspaces" } }, "type": "object", - "title": "SearchFilter", - "description": "Represents a filter with AND, OR, and NOT conditions." + "required": ["data"], + "title": "SlackInstallationOverviewListResponse", + "description": "List of connected Slack workspaces for the data sources overview." }, - "SearchFilterCondition": { + "SlackManifestResponse": { "properties": { - "key": { + "manifest": { "type": "string", - "title": "Key", - "description": "The field to apply the condition on", - "examples": ["price", "color"] + "title": "Manifest", + "description": "Slack app manifest YAML pre-filled with this deployment's URLs" + } + }, + "type": "object", + "required": ["manifest"], + "title": "SlackManifestResponse", + "description": "Rendered Slack app manifest for bring-your-own-app setup." + }, + "SlackManualConnectBody": { + "properties": { + "bot_token": { + "type": "string", + "minLength": 1, + "title": "Bot Token", + "description": "Slack bot user OAuth token (xoxb-…)" }, - "value": { - "title": "Value", - "description": "The value to compare against", - "examples": ["100", "red"] + "signing_secret": { + "type": "string", + "minLength": 1, + "title": "Signing Secret", + "description": "Slack app signing secret" }, - "operator": { - "$ref": "#/components/schemas/ConditionOperator", - "description": "The operator for the condition", - "examples": ["eq", "gt"] + "store_name": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Store Name", + "description": "Optional ingestion store name" + }, + "auto_sync_all": { + "type": "boolean", + "title": "Auto Sync All", + "description": "Automatically sync all current and future channels", + "default": false } }, "type": "object", - "required": ["key", "value", "operator"], - "title": "SearchFilterCondition", - "description": "Represents a condition with a field, operator, and value." + "required": ["bot_token", "signing_secret"], + "title": "SlackManualConnectBody", + "description": "Request body for connecting Slack with a customer-provided app (bot token + signing secret)." }, "Store": { "properties": { @@ -7851,6 +9939,11 @@ "anyOf": [{ "$ref": "#/components/schemas/StoreConfig" }, { "type": "null" }], "description": "Store-level configuration defaults" }, + "bucket_id": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Bucket Id", + "description": "Customer bucket backing this store's storage; null = platform default" + }, "file_counts": { "$ref": "#/components/schemas/FileCounts", "description": "Counts of files in different states" @@ -7956,7 +10049,7 @@ "default": "PT0S" }, "query": { - "type": "string", + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Query", "description": "Original query submitted by the user" }, @@ -7996,7 +10089,7 @@ }, "token_usage": { "$ref": "#/components/schemas/AgenticSearchTokenUsage", - "description": "Token usage and cost for LLM calls during the agentic search" + "description": "Token usage for LLM calls during the agentic search" }, "tool_calls": { "items": { "$ref": "#/components/schemas/AgenticToolCall" }, @@ -8014,7 +10107,7 @@ "type": "object", "required": ["id", "created_at", "store_ids", "started_at", "query"], "title": "StoreAgenticSearchEvent", - "description": "Represents an agentic search trace in a vector store.\n\nUnlike StoreSearchEvent, this captures the full sequence of tool calls the\nagent issued (name, arguments, result) so developers can inspect what the\nagent did, along with the token usage and cost." + "description": "Represents an agentic search trace in a vector store.\n\nUnlike StoreSearchEvent, this captures the full sequence of tool calls the\nagent issued (name, arguments, result) so developers can inspect what the\nagent did, along with the token usage." }, "StoreChunkFilterParams": { "properties": { @@ -8186,7 +10279,7 @@ "type": "object", "required": ["store_identifiers", "pattern"], "title": "StoreChunkGrepParams", - "description": "Parameters for matching store chunks against a regular expression.\n\nUnlike semantic search, grep performs exact text matching — no embeddings, no\nreranking. It finds chunks whose literal text contains the pattern." + "description": "Parameters for matching store chunks against a regular expression.\n\nUnlike semantic search, grep runs your regex against the literal text of each\nchunk. It finds chunks whose text matches the pattern." }, "StoreChunkGrepTarget": { "type": "string", @@ -8479,6 +10572,7 @@ "store.deleted", "store.updated", "store.search", + "store.grep", "store.web_search", "store.file.created", "store.file.deleted", @@ -8552,13 +10646,13 @@ "event_types": { "anyOf": [ { - "items": { "type": "string", "enum": ["ingestion", "search", "agentic_search"] }, + "items": { "type": "string", "enum": ["ingestion", "search", "agentic_search", "grep"] }, "type": "array" }, { "type": "null" } ], "title": "Event Types", - "description": "Restrict the histogram to these event types. When omitted, includes search, agentic_search, and ingestion events." + "description": "Restrict the histogram to these event types. When omitted, includes search, agentic_search, grep, and ingestion events." } }, "type": "object", @@ -8600,12 +10694,14 @@ "oneOf": [ { "$ref": "#/components/schemas/StoreIngestionEvent" }, { "$ref": "#/components/schemas/StoreSearchEvent" }, - { "$ref": "#/components/schemas/StoreAgenticSearchEvent" } + { "$ref": "#/components/schemas/StoreAgenticSearchEvent" }, + { "$ref": "#/components/schemas/StoreGrepEvent" } ], "discriminator": { "propertyName": "type", "mapping": { "agentic_search": "#/components/schemas/StoreAgenticSearchEvent", + "grep": "#/components/schemas/StoreGrepEvent", "ingestion": "#/components/schemas/StoreIngestionEvent", "search": "#/components/schemas/StoreSearchEvent" } @@ -8796,6 +10892,75 @@ "enum": ["pending", "in_progress", "cancelled", "completed", "failed"], "title": "StoreFileStatus" }, + "StoreGrepEvent": { + "properties": { + "id": { + "type": "string", + "format": "uuid", + "title": "Id", + "description": "Unique identifier for the event" + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At", + "description": "Timestamp when the event was created" + }, + "type": { "type": "string", "const": "grep", "title": "Type", "default": "grep" }, + "store_ids": { + "items": { "type": "string", "format": "uuid" }, + "type": "array", + "title": "Store Ids", + "description": "IDs of the vector stores grepped" + }, + "pattern": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "title": "Pattern", + "description": "Regular expression matched against chunk text" + }, + "case_sensitive": { + "type": "boolean", + "title": "Case Sensitive", + "description": "Whether the pattern was matched case-sensitively", + "default": false + }, + "search_time": { + "type": "string", + "format": "duration", + "title": "Search Time", + "description": "Time taken to grep the vector store", + "default": "PT0S" + }, + "filters": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" }, + { + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/SearchFilter-Output" }, + { "$ref": "#/components/schemas/SearchFilterCondition" } + ] + }, + "type": "array" + }, + { "type": "null" } + ], + "title": "Filters", + "description": "Metadata filters submitted with the grep request" + }, + "results": { + "items": { "$ref": "#/components/schemas/StoreSearchEventResult" }, + "type": "array", + "title": "Results", + "description": "Chunks that matched the pattern" + } + }, + "type": "object", + "required": ["id", "created_at", "store_ids", "pattern"], + "title": "StoreGrepEvent", + "description": "Represents a grep event in a vector store.\n\nGrep matches chunks against a regular expression rather than running a\nsemantic search, so it has no ranking, rewrite, or rerank fields." + }, "StoreGrepResponse": { "properties": { "object": { @@ -9141,7 +11306,7 @@ "default": "PT0S" }, "query": { - "type": "string", + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "Query", "description": "Query used to search the vector store" }, @@ -9227,7 +11392,7 @@ "description": "ID of the store the chunk belongs to" }, "file_id": { - "type": "string", + "anyOf": [{ "type": "string" }, { "type": "null" }], "title": "File Id", "description": "ID of the file the chunk belongs to" },