diff --git a/src/libs/HuggingFace/Generated/HuggingFace.BucketsClient.CreateBucketsByNamespaceByRepoLfsFilesDuplicate.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.BucketsClient.CreateBucketsByNamespaceByRepoLfsFilesDuplicate.g.cs
new file mode 100644
index 00000000..622995c0
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.BucketsClient.CreateBucketsByNamespaceByRepoLfsFilesDuplicate.g.cs
@@ -0,0 +1,491 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ public partial class BucketsClient
+ {
+
+
+ private static readonly global::HuggingFace.EndPointSecurityRequirement s_CreateBucketsByNamespaceByRepoLfsFilesDuplicateSecurityRequirement0 =
+ new global::HuggingFace.EndPointSecurityRequirement
+ {
+ Authorizations = new global::HuggingFace.EndPointAuthorizationRequirement[]
+ { new global::HuggingFace.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::HuggingFace.EndPointSecurityRequirement[] s_CreateBucketsByNamespaceByRepoLfsFilesDuplicateSecurityRequirements =
+ new global::HuggingFace.EndPointSecurityRequirement[]
+ { s_CreateBucketsByNamespaceByRepoLfsFilesDuplicateSecurityRequirement0,
+ };
+ partial void PrepareCreateBucketsByNamespaceByRepoLfsFilesDuplicateArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string @namespace,
+ ref string repo,
+ global::HuggingFace.CreateBucketsLfsFilesDuplicateRequest request);
+ partial void PrepareCreateBucketsByNamespaceByRepoLfsFilesDuplicateRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string @namespace,
+ string repo,
+ global::HuggingFace.CreateBucketsLfsFilesDuplicateRequest request);
+ partial void ProcessCreateBucketsByNamespaceByRepoLfsFilesDuplicateResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessCreateBucketsByNamespaceByRepoLfsFilesDuplicateResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateBucketsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsResponseAsync(
+ @namespace: @namespace,
+ repo: repo,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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> CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsResponseAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateBucketsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareCreateBucketsByNamespaceByRepoLfsFilesDuplicateArguments(
+ httpClient: HttpClient,
+ @namespace: ref @namespace,
+ repo: ref repo,
+ request: request);
+
+
+ var __authorizations = global::HuggingFace.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateBucketsByNamespaceByRepoLfsFilesDuplicateSecurityRequirements,
+ operationName: "CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsync");
+
+ using var __timeoutCancellationTokenSource = global::HuggingFace.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::HuggingFace.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::HuggingFace.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::HuggingFace.PathBuilder(
+ path: $"/api/buckets/{@namespace}/{repo}/lfs-files/duplicate",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::HuggingFace.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::HuggingFace.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareCreateBucketsByNamespaceByRepoLfsFilesDuplicateRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ @namespace: @namespace!,
+ repo: repo!,
+ 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::HuggingFace.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createBucketsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/buckets/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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::HuggingFace.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::HuggingFace.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createBucketsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/buckets/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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::HuggingFace.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::HuggingFace.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::HuggingFace.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::HuggingFace.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createBucketsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/buckets/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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::HuggingFace.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);
+ ProcessCreateBucketsByNamespaceByRepoLfsFilesDuplicateResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::HuggingFace.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createBucketsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/buckets/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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::HuggingFace.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createBucketsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/buckets/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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);
+ ProcessCreateBucketsByNamespaceByRepoLfsFilesDuplicateResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::HuggingFace.CreateBucketsLfsFilesDuplicateResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HuggingFace.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HuggingFace.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::HuggingFace.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ 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::HuggingFace.CreateBucketsLfsFilesDuplicateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HuggingFace.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HuggingFace.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 new global::HuggingFace.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+ global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTarget target,
+ global::System.Collections.Generic.IList files,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::HuggingFace.CreateBucketsLfsFilesDuplicateRequest
+ {
+ Target = target,
+ Files = files,
+ };
+
+ return await CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsync(
+ @namespace: @namespace,
+ repo: repo,
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoCommitByRev.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoCommitByRev.g.cs
index 04893bc5..48c98cbc 100644
--- a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoCommitByRev.g.cs
+++ b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoCommitByRev.g.cs
@@ -65,7 +65,7 @@ partial void ProcessCreateDatasetsByNamespaceByRepoCommitByRevResponseContent(
/// }
/// }
/// {
- /// "key": "file",
+ /// "key": "file",
/// "value": {
/// "path": "string (REQUIRED)",
/// "content": "string (OPTIONAL - required if oldPath not set)",
@@ -174,7 +174,7 @@ partial void ProcessCreateDatasetsByNamespaceByRepoCommitByRevResponseContent(
/// }
/// }
/// {
- /// "key": "file",
+ /// "key": "file",
/// "value": {
/// "path": "string (REQUIRED)",
/// "content": "string (OPTIONAL - required if oldPath not set)",
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoLfsFilesDuplicate.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoLfsFilesDuplicate.g.cs
new file mode 100644
index 00000000..86acc863
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoLfsFilesDuplicate.g.cs
@@ -0,0 +1,491 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ public partial class DatasetsClient
+ {
+
+
+ private static readonly global::HuggingFace.EndPointSecurityRequirement s_CreateDatasetsByNamespaceByRepoLfsFilesDuplicateSecurityRequirement0 =
+ new global::HuggingFace.EndPointSecurityRequirement
+ {
+ Authorizations = new global::HuggingFace.EndPointAuthorizationRequirement[]
+ { new global::HuggingFace.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::HuggingFace.EndPointSecurityRequirement[] s_CreateDatasetsByNamespaceByRepoLfsFilesDuplicateSecurityRequirements =
+ new global::HuggingFace.EndPointSecurityRequirement[]
+ { s_CreateDatasetsByNamespaceByRepoLfsFilesDuplicateSecurityRequirement0,
+ };
+ partial void PrepareCreateDatasetsByNamespaceByRepoLfsFilesDuplicateArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string @namespace,
+ ref string repo,
+ global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequest request);
+ partial void PrepareCreateDatasetsByNamespaceByRepoLfsFilesDuplicateRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string @namespace,
+ string repo,
+ global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequest request);
+ partial void ProcessCreateDatasetsByNamespaceByRepoLfsFilesDuplicateResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessCreateDatasetsByNamespaceByRepoLfsFilesDuplicateResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsResponseAsync(
+ @namespace: @namespace,
+ repo: repo,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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> CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsResponseAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareCreateDatasetsByNamespaceByRepoLfsFilesDuplicateArguments(
+ httpClient: HttpClient,
+ @namespace: ref @namespace,
+ repo: ref repo,
+ request: request);
+
+
+ var __authorizations = global::HuggingFace.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateDatasetsByNamespaceByRepoLfsFilesDuplicateSecurityRequirements,
+ operationName: "CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsync");
+
+ using var __timeoutCancellationTokenSource = global::HuggingFace.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::HuggingFace.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::HuggingFace.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::HuggingFace.PathBuilder(
+ path: $"/api/datasets/{@namespace}/{repo}/lfs-files/duplicate",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::HuggingFace.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::HuggingFace.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareCreateDatasetsByNamespaceByRepoLfsFilesDuplicateRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ @namespace: @namespace!,
+ repo: repo!,
+ 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::HuggingFace.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createDatasetsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/datasets/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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::HuggingFace.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::HuggingFace.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createDatasetsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/datasets/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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::HuggingFace.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::HuggingFace.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::HuggingFace.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::HuggingFace.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createDatasetsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/datasets/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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::HuggingFace.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);
+ ProcessCreateDatasetsByNamespaceByRepoLfsFilesDuplicateResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::HuggingFace.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createDatasetsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/datasets/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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::HuggingFace.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createDatasetsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/datasets/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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);
+ ProcessCreateDatasetsByNamespaceByRepoLfsFilesDuplicateResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HuggingFace.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HuggingFace.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::HuggingFace.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ 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::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HuggingFace.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HuggingFace.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 new global::HuggingFace.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+ global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTarget target,
+ global::System.Collections.Generic.IList files,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequest
+ {
+ Target = target,
+ Files = files,
+ };
+
+ return await CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsync(
+ @namespace: @namespace,
+ repo: repo,
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.IBucketsClient.CreateBucketsByNamespaceByRepoLfsFilesDuplicate.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.IBucketsClient.CreateBucketsByNamespaceByRepoLfsFilesDuplicate.g.cs
new file mode 100644
index 00000000..e35def24
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.IBucketsClient.CreateBucketsByNamespaceByRepoLfsFilesDuplicate.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public partial interface IBucketsClient
+ {
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateBucketsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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> CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsResponseAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateBucketsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateBucketsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+ global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTarget target,
+ global::System.Collections.Generic.IList files,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.IDatasetsClient.CreateDatasetsByNamespaceByRepoCommitByRev.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.IDatasetsClient.CreateDatasetsByNamespaceByRepoCommitByRev.g.cs
index 2a21d2fb..6e8ce368 100644
--- a/src/libs/HuggingFace/Generated/HuggingFace.IDatasetsClient.CreateDatasetsByNamespaceByRepoCommitByRev.g.cs
+++ b/src/libs/HuggingFace/Generated/HuggingFace.IDatasetsClient.CreateDatasetsByNamespaceByRepoCommitByRev.g.cs
@@ -18,7 +18,7 @@ public partial interface IDatasetsClient
/// }
/// }
/// {
- /// "key": "file",
+ /// "key": "file",
/// "value": {
/// "path": "string (REQUIRED)",
/// "content": "string (OPTIONAL - required if oldPath not set)",
@@ -113,7 +113,7 @@ public partial interface IDatasetsClient
/// }
/// }
/// {
- /// "key": "file",
+ /// "key": "file",
/// "value": {
/// "path": "string (REQUIRED)",
/// "content": "string (OPTIONAL - required if oldPath not set)",
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.IDatasetsClient.CreateDatasetsByNamespaceByRepoLfsFilesDuplicate.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.IDatasetsClient.CreateDatasetsByNamespaceByRepoLfsFilesDuplicate.g.cs
new file mode 100644
index 00000000..a800f9fb
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.IDatasetsClient.CreateDatasetsByNamespaceByRepoLfsFilesDuplicate.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public partial interface IDatasetsClient
+ {
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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> CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsResponseAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateDatasetsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+ global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTarget target,
+ global::System.Collections.Generic.IList files,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.IKernelsClient.CreateKernelsByNamespaceByRepoLfsFilesDuplicate.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.IKernelsClient.CreateKernelsByNamespaceByRepoLfsFilesDuplicate.g.cs
new file mode 100644
index 00000000..03530da8
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.IKernelsClient.CreateKernelsByNamespaceByRepoLfsFilesDuplicate.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public partial interface IKernelsClient
+ {
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateKernelsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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> CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsResponseAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateKernelsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+ global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTarget target,
+ global::System.Collections.Generic.IList files,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.IModelsClient.CreateModelsByNamespaceByRepoCommitByRev.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.IModelsClient.CreateModelsByNamespaceByRepoCommitByRev.g.cs
index 72b0f5bb..89c2b818 100644
--- a/src/libs/HuggingFace/Generated/HuggingFace.IModelsClient.CreateModelsByNamespaceByRepoCommitByRev.g.cs
+++ b/src/libs/HuggingFace/Generated/HuggingFace.IModelsClient.CreateModelsByNamespaceByRepoCommitByRev.g.cs
@@ -18,7 +18,7 @@ public partial interface IModelsClient
/// }
/// }
/// {
- /// "key": "file",
+ /// "key": "file",
/// "value": {
/// "path": "string (REQUIRED)",
/// "content": "string (OPTIONAL - required if oldPath not set)",
@@ -113,7 +113,7 @@ public partial interface IModelsClient
/// }
/// }
/// {
- /// "key": "file",
+ /// "key": "file",
/// "value": {
/// "path": "string (REQUIRED)",
/// "content": "string (OPTIONAL - required if oldPath not set)",
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.IModelsClient.CreateModelsByNamespaceByRepoLfsFilesDuplicate.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.IModelsClient.CreateModelsByNamespaceByRepoLfsFilesDuplicate.g.cs
new file mode 100644
index 00000000..c5eafee5
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.IModelsClient.CreateModelsByNamespaceByRepoLfsFilesDuplicate.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public partial interface IModelsClient
+ {
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateModelsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateModelsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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> CreateModelsByNamespaceByRepoLfsFilesDuplicateAsResponseAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateModelsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateModelsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+ global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTarget target,
+ global::System.Collections.Generic.IList files,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ISpacesClient.CreateSpacesByNamespaceByRepoCommitByRev.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ISpacesClient.CreateSpacesByNamespaceByRepoCommitByRev.g.cs
index f5c909df..ce042726 100644
--- a/src/libs/HuggingFace/Generated/HuggingFace.ISpacesClient.CreateSpacesByNamespaceByRepoCommitByRev.g.cs
+++ b/src/libs/HuggingFace/Generated/HuggingFace.ISpacesClient.CreateSpacesByNamespaceByRepoCommitByRev.g.cs
@@ -18,7 +18,7 @@ public partial interface ISpacesClient
/// }
/// }
/// {
- /// "key": "file",
+ /// "key": "file",
/// "value": {
/// "path": "string (REQUIRED)",
/// "content": "string (OPTIONAL - required if oldPath not set)",
@@ -113,7 +113,7 @@ public partial interface ISpacesClient
/// }
/// }
/// {
- /// "key": "file",
+ /// "key": "file",
/// "value": {
/// "path": "string (REQUIRED)",
/// "content": "string (OPTIONAL - required if oldPath not set)",
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ISpacesClient.CreateSpacesByNamespaceByRepoLfsFilesDuplicate.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ISpacesClient.CreateSpacesByNamespaceByRepoLfsFilesDuplicate.g.cs
new file mode 100644
index 00000000..7d27543d
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.ISpacesClient.CreateSpacesByNamespaceByRepoLfsFilesDuplicate.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public partial interface ISpacesClient
+ {
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateSpacesByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateSpacesLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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> CreateSpacesByNamespaceByRepoLfsFilesDuplicateAsResponseAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateSpacesLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateSpacesByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+ global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTarget target,
+ global::System.Collections.Generic.IList files,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateBucketsLfsFilesDuplicateRequestTargetType.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateBucketsLfsFilesDuplicateRequestTargetType.g.cs
new file mode 100644
index 00000000..3b09f458
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateBucketsLfsFilesDuplicateRequestTargetType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace HuggingFace.JsonConverters
+{
+ ///
+ public sealed class CreateBucketsLfsFilesDuplicateRequestTargetTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetType 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::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateBucketsLfsFilesDuplicateRequestTargetTypeNullable.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateBucketsLfsFilesDuplicateRequestTargetTypeNullable.g.cs
new file mode 100644
index 00000000..c17ec2d6
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateBucketsLfsFilesDuplicateRequestTargetTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace HuggingFace.JsonConverters
+{
+ ///
+ public sealed class CreateBucketsLfsFilesDuplicateRequestTargetTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetType? 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::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetType? 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::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateDatasetsLfsFilesDuplicateRequestTargetType.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateDatasetsLfsFilesDuplicateRequestTargetType.g.cs
new file mode 100644
index 00000000..76a4ac55
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateDatasetsLfsFilesDuplicateRequestTargetType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace HuggingFace.JsonConverters
+{
+ ///
+ public sealed class CreateDatasetsLfsFilesDuplicateRequestTargetTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetType 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::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateDatasetsLfsFilesDuplicateRequestTargetTypeNullable.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateDatasetsLfsFilesDuplicateRequestTargetTypeNullable.g.cs
new file mode 100644
index 00000000..1842f742
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateDatasetsLfsFilesDuplicateRequestTargetTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace HuggingFace.JsonConverters
+{
+ ///
+ public sealed class CreateDatasetsLfsFilesDuplicateRequestTargetTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetType? 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::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetType? 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::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateKernelsLfsFilesDuplicateRequestTargetType.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateKernelsLfsFilesDuplicateRequestTargetType.g.cs
new file mode 100644
index 00000000..c25d1796
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateKernelsLfsFilesDuplicateRequestTargetType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace HuggingFace.JsonConverters
+{
+ ///
+ public sealed class CreateKernelsLfsFilesDuplicateRequestTargetTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetType 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::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateKernelsLfsFilesDuplicateRequestTargetTypeNullable.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateKernelsLfsFilesDuplicateRequestTargetTypeNullable.g.cs
new file mode 100644
index 00000000..35fab2da
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateKernelsLfsFilesDuplicateRequestTargetTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace HuggingFace.JsonConverters
+{
+ ///
+ public sealed class CreateKernelsLfsFilesDuplicateRequestTargetTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetType? 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::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetType? 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::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateModelsLfsFilesDuplicateRequestTargetType.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateModelsLfsFilesDuplicateRequestTargetType.g.cs
new file mode 100644
index 00000000..13ba688c
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateModelsLfsFilesDuplicateRequestTargetType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace HuggingFace.JsonConverters
+{
+ ///
+ public sealed class CreateModelsLfsFilesDuplicateRequestTargetTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetType 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::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateModelsLfsFilesDuplicateRequestTargetTypeNullable.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateModelsLfsFilesDuplicateRequestTargetTypeNullable.g.cs
new file mode 100644
index 00000000..01928edf
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateModelsLfsFilesDuplicateRequestTargetTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace HuggingFace.JsonConverters
+{
+ ///
+ public sealed class CreateModelsLfsFilesDuplicateRequestTargetTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetType? 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::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetType? 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::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateSpacesLfsFilesDuplicateRequestTargetType.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateSpacesLfsFilesDuplicateRequestTargetType.g.cs
new file mode 100644
index 00000000..104d8843
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateSpacesLfsFilesDuplicateRequestTargetType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace HuggingFace.JsonConverters
+{
+ ///
+ public sealed class CreateSpacesLfsFilesDuplicateRequestTargetTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTargetType 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::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTargetTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTargetType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTargetType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTargetType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTargetTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateSpacesLfsFilesDuplicateRequestTargetTypeNullable.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateSpacesLfsFilesDuplicateRequestTargetTypeNullable.g.cs
new file mode 100644
index 00000000..0adbc460
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.CreateSpacesLfsFilesDuplicateRequestTargetTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace HuggingFace.JsonConverters
+{
+ ///
+ public sealed class CreateSpacesLfsFilesDuplicateRequestTargetTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTargetType? 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::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTargetTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTargetType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTargetType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTargetType? 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::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTargetTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.KernelsClient.CreateKernelsByNamespaceByRepoLfsFilesDuplicate.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.KernelsClient.CreateKernelsByNamespaceByRepoLfsFilesDuplicate.g.cs
new file mode 100644
index 00000000..34892507
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.KernelsClient.CreateKernelsByNamespaceByRepoLfsFilesDuplicate.g.cs
@@ -0,0 +1,491 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ public partial class KernelsClient
+ {
+
+
+ private static readonly global::HuggingFace.EndPointSecurityRequirement s_CreateKernelsByNamespaceByRepoLfsFilesDuplicateSecurityRequirement0 =
+ new global::HuggingFace.EndPointSecurityRequirement
+ {
+ Authorizations = new global::HuggingFace.EndPointAuthorizationRequirement[]
+ { new global::HuggingFace.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::HuggingFace.EndPointSecurityRequirement[] s_CreateKernelsByNamespaceByRepoLfsFilesDuplicateSecurityRequirements =
+ new global::HuggingFace.EndPointSecurityRequirement[]
+ { s_CreateKernelsByNamespaceByRepoLfsFilesDuplicateSecurityRequirement0,
+ };
+ partial void PrepareCreateKernelsByNamespaceByRepoLfsFilesDuplicateArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string @namespace,
+ ref string repo,
+ global::HuggingFace.CreateKernelsLfsFilesDuplicateRequest request);
+ partial void PrepareCreateKernelsByNamespaceByRepoLfsFilesDuplicateRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string @namespace,
+ string repo,
+ global::HuggingFace.CreateKernelsLfsFilesDuplicateRequest request);
+ partial void ProcessCreateKernelsByNamespaceByRepoLfsFilesDuplicateResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessCreateKernelsByNamespaceByRepoLfsFilesDuplicateResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateKernelsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsResponseAsync(
+ @namespace: @namespace,
+ repo: repo,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ /// 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> CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsResponseAsync(
+ string @namespace,
+ string repo,
+
+ global::HuggingFace.CreateKernelsLfsFilesDuplicateRequest request,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareCreateKernelsByNamespaceByRepoLfsFilesDuplicateArguments(
+ httpClient: HttpClient,
+ @namespace: ref @namespace,
+ repo: ref repo,
+ request: request);
+
+
+ var __authorizations = global::HuggingFace.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateKernelsByNamespaceByRepoLfsFilesDuplicateSecurityRequirements,
+ operationName: "CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsync");
+
+ using var __timeoutCancellationTokenSource = global::HuggingFace.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::HuggingFace.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::HuggingFace.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::HuggingFace.PathBuilder(
+ path: $"/api/kernels/{@namespace}/{repo}/lfs-files/duplicate",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::HuggingFace.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::HuggingFace.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareCreateKernelsByNamespaceByRepoLfsFilesDuplicateRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ @namespace: @namespace!,
+ repo: repo!,
+ 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::HuggingFace.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createKernelsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/kernels/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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::HuggingFace.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::HuggingFace.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createKernelsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/kernels/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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::HuggingFace.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::HuggingFace.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::HuggingFace.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::HuggingFace.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createKernelsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/kernels/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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::HuggingFace.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);
+ ProcessCreateKernelsByNamespaceByRepoLfsFilesDuplicateResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::HuggingFace.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createKernelsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/kernels/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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::HuggingFace.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::HuggingFace.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createKernelsByNamespaceByRepoLfsFilesDuplicate",
+ methodName: "CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsync",
+ pathTemplate: "$\"/api/kernels/{@namespace}/{repo}/lfs-files/duplicate\"",
+ 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);
+ ProcessCreateKernelsByNamespaceByRepoLfsFilesDuplicateResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::HuggingFace.CreateKernelsLfsFilesDuplicateResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::HuggingFace.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HuggingFace.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::HuggingFace.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ 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::HuggingFace.CreateKernelsLfsFilesDuplicateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::HuggingFace.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::HuggingFace.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 new global::HuggingFace.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Duplicate xet files
+ /// Duplicate xet-stored LFS files from this repo (source) into another repo (target) by xet hash, without re-uploading file bytes. The caller must then commit the files with their sha256/size as usual.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 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 CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsync(
+ string @namespace,
+ string repo,
+ global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTarget target,
+ global::System.Collections.Generic.IList files,
+ global::HuggingFace.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::HuggingFace.CreateKernelsLfsFilesDuplicateRequest
+ {
+ Target = target,
+ Files = files,
+ };
+
+ return await CreateKernelsByNamespaceByRepoLfsFilesDuplicateAsync(
+ @namespace: @namespace,
+ repo: repo,
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateAgenticProvisioningResourcesRequestVariant2Configuration.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateAgenticProvisioningResourcesRequestVariant2Configuration.g.cs
index 1c5d0450..56904311 100644
--- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateAgenticProvisioningResourcesRequestVariant2Configuration.g.cs
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateAgenticProvisioningResourcesRequestVariant2Configuration.g.cs
@@ -10,7 +10,7 @@ public sealed partial class CreateAgenticProvisioningResourcesRequestVariant2Con
{
///
/// The name of the repository (defaults to a random name if not provided)
- /// Default Value: TKcammzO
+ /// Default Value: mnEYKhTN
///
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
public string? Name { get; set; }
@@ -34,7 +34,7 @@ public sealed partial class CreateAgenticProvisioningResourcesRequestVariant2Con
///
///
/// The name of the repository (defaults to a random name if not provided)
- /// Default Value: TKcammzO
+ /// Default Value: mnEYKhTN
///
///
/// The visibility of the repository (defaults to private)
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequest.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequest.Json.g.cs
new file mode 100644
index 00000000..daa70d69
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequest.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateBucketsLfsFilesDuplicateRequest
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateBucketsLfsFilesDuplicateRequest? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateRequest),
+ jsonSerializerContext) as global::HuggingFace.CreateBucketsLfsFilesDuplicateRequest;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateBucketsLfsFilesDuplicateRequest? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateRequest),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateBucketsLfsFilesDuplicateRequest;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequest.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequest.g.cs
new file mode 100644
index 00000000..da4ccdca
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequest.g.cs
@@ -0,0 +1,55 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateBucketsLfsFilesDuplicateRequest
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("target")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTarget Target { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("files")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Files { 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 CreateBucketsLfsFilesDuplicateRequest(
+ global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTarget target,
+ global::System.Collections.Generic.IList files)
+ {
+ this.Target = target ?? throw new global::System.ArgumentNullException(nameof(target));
+ this.Files = files ?? throw new global::System.ArgumentNullException(nameof(files));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateBucketsLfsFilesDuplicateRequest()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestFile.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestFile.Json.g.cs
new file mode 100644
index 00000000..f45f58a8
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestFile.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateBucketsLfsFilesDuplicateRequestFile
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestFile? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestFile),
+ jsonSerializerContext) as global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestFile;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateBucketsLfsFilesDuplicateRequestFile? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestFile),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestFile;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestFile.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestFile.g.cs
new file mode 100644
index 00000000..347bbe17
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestFile.g.cs
@@ -0,0 +1,64 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateBucketsLfsFilesDuplicateRequestFile
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("xetHash")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string XetHash { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sha256")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Sha256 { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("filename")]
+ public string? Filename { 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 CreateBucketsLfsFilesDuplicateRequestFile(
+ string xetHash,
+ string sha256,
+ string? filename)
+ {
+ this.XetHash = xetHash ?? throw new global::System.ArgumentNullException(nameof(xetHash));
+ this.Sha256 = sha256 ?? throw new global::System.ArgumentNullException(nameof(sha256));
+ this.Filename = filename;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateBucketsLfsFilesDuplicateRequestFile()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestTarget.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestTarget.Json.g.cs
new file mode 100644
index 00000000..f6cbc6d9
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestTarget.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateBucketsLfsFilesDuplicateRequestTarget
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTarget? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTarget),
+ jsonSerializerContext) as global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTarget;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTarget? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTarget),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTarget;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestTarget.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestTarget.g.cs
new file mode 100644
index 00000000..2898d193
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestTarget.g.cs
@@ -0,0 +1,56 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateBucketsLfsFilesDuplicateRequestTarget
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::HuggingFace.JsonConverters.CreateBucketsLfsFilesDuplicateRequestTargetTypeJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetType Type { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("name")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Name { 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 CreateBucketsLfsFilesDuplicateRequestTarget(
+ global::HuggingFace.CreateBucketsLfsFilesDuplicateRequestTargetType type,
+ string name)
+ {
+ this.Type = type;
+ this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateBucketsLfsFilesDuplicateRequestTarget()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestTargetType.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestTargetType.g.cs
new file mode 100644
index 00000000..245eac81
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateRequestTargetType.g.cs
@@ -0,0 +1,63 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public enum CreateBucketsLfsFilesDuplicateRequestTargetType
+ {
+ ///
+ ///
+ ///
+ Dataset,
+ ///
+ ///
+ ///
+ Kernel,
+ ///
+ ///
+ ///
+ Model,
+ ///
+ ///
+ ///
+ Space,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class CreateBucketsLfsFilesDuplicateRequestTargetTypeExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this CreateBucketsLfsFilesDuplicateRequestTargetType value)
+ {
+ return value switch
+ {
+ CreateBucketsLfsFilesDuplicateRequestTargetType.Dataset => "dataset",
+ CreateBucketsLfsFilesDuplicateRequestTargetType.Kernel => "kernel",
+ CreateBucketsLfsFilesDuplicateRequestTargetType.Model => "model",
+ CreateBucketsLfsFilesDuplicateRequestTargetType.Space => "space",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static CreateBucketsLfsFilesDuplicateRequestTargetType? ToEnum(string value)
+ {
+ return value switch
+ {
+ "dataset" => CreateBucketsLfsFilesDuplicateRequestTargetType.Dataset,
+ "kernel" => CreateBucketsLfsFilesDuplicateRequestTargetType.Kernel,
+ "model" => CreateBucketsLfsFilesDuplicateRequestTargetType.Model,
+ "space" => CreateBucketsLfsFilesDuplicateRequestTargetType.Space,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponse.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponse.Json.g.cs
new file mode 100644
index 00000000..f8a1571d
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateBucketsLfsFilesDuplicateResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateBucketsLfsFilesDuplicateResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateResponse),
+ jsonSerializerContext) as global::HuggingFace.CreateBucketsLfsFilesDuplicateResponse;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateBucketsLfsFilesDuplicateResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateBucketsLfsFilesDuplicateResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponse.g.cs
new file mode 100644
index 00000000..a15fc254
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponse.g.cs
@@ -0,0 +1,83 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateBucketsLfsFilesDuplicateResponse
+ {
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("success")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required bool Success { get; set; }
+
+ ///
+ /// Total number of unique files processed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("processed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Processed { get; set; }
+
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("succeeded")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Succeeded { get; set; }
+
+ ///
+ /// Per-file failures
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("failed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Failed { 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.
+ ///
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ ///
+ /// Total number of unique files processed
+ ///
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ ///
+ /// Per-file failures
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateBucketsLfsFilesDuplicateResponse(
+ bool success,
+ int processed,
+ int succeeded,
+ global::System.Collections.Generic.IList failed)
+ {
+ this.Success = success;
+ this.Processed = processed;
+ this.Succeeded = succeeded;
+ this.Failed = failed ?? throw new global::System.ArgumentNullException(nameof(failed));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateBucketsLfsFilesDuplicateResponse()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponse2.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponse2.Json.g.cs
new file mode 100644
index 00000000..b1d88dfb
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponse2.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateBucketsLfsFilesDuplicateResponse2
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateBucketsLfsFilesDuplicateResponse2? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateResponse2),
+ jsonSerializerContext) as global::HuggingFace.CreateBucketsLfsFilesDuplicateResponse2;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateBucketsLfsFilesDuplicateResponse2? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateResponse2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateBucketsLfsFilesDuplicateResponse2;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponse2.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponse2.g.cs
new file mode 100644
index 00000000..48bdeedb
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponse2.g.cs
@@ -0,0 +1,83 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateBucketsLfsFilesDuplicateResponse2
+ {
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("success")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required bool Success { get; set; }
+
+ ///
+ /// Total number of unique files processed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("processed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Processed { get; set; }
+
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("succeeded")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Succeeded { get; set; }
+
+ ///
+ /// Per-file failures
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("failed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Failed { 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.
+ ///
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ ///
+ /// Total number of unique files processed
+ ///
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ ///
+ /// Per-file failures
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateBucketsLfsFilesDuplicateResponse2(
+ bool success,
+ int processed,
+ int succeeded,
+ global::System.Collections.Generic.IList failed)
+ {
+ this.Success = success;
+ this.Processed = processed;
+ this.Succeeded = succeeded;
+ this.Failed = failed ?? throw new global::System.ArgumentNullException(nameof(failed));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateBucketsLfsFilesDuplicateResponse2()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponseFailedItem.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponseFailedItem.Json.g.cs
new file mode 100644
index 00000000..27bf05dc
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponseFailedItem.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateBucketsLfsFilesDuplicateResponseFailedItem
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateBucketsLfsFilesDuplicateResponseFailedItem? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateResponseFailedItem),
+ jsonSerializerContext) as global::HuggingFace.CreateBucketsLfsFilesDuplicateResponseFailedItem;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateBucketsLfsFilesDuplicateResponseFailedItem? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateResponseFailedItem),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateBucketsLfsFilesDuplicateResponseFailedItem;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponseFailedItem.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponseFailedItem.g.cs
new file mode 100644
index 00000000..c4672743
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponseFailedItem.g.cs
@@ -0,0 +1,71 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateBucketsLfsFilesDuplicateResponseFailedItem
+ {
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("xetHash")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string XetHash { get; set; }
+
+ ///
+ /// sha256 of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sha256")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Sha256 { get; set; }
+
+ ///
+ /// Error message
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Error { 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.
+ ///
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ ///
+ /// sha256 of the file that failed
+ ///
+ ///
+ /// Error message
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateBucketsLfsFilesDuplicateResponseFailedItem(
+ string xetHash,
+ string sha256,
+ string error)
+ {
+ this.XetHash = xetHash ?? throw new global::System.ArgumentNullException(nameof(xetHash));
+ this.Sha256 = sha256 ?? throw new global::System.ArgumentNullException(nameof(sha256));
+ this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateBucketsLfsFilesDuplicateResponseFailedItem()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponseFailedItem2.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponseFailedItem2.Json.g.cs
new file mode 100644
index 00000000..ef552ece
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponseFailedItem2.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateBucketsLfsFilesDuplicateResponseFailedItem2
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateBucketsLfsFilesDuplicateResponseFailedItem2? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateResponseFailedItem2),
+ jsonSerializerContext) as global::HuggingFace.CreateBucketsLfsFilesDuplicateResponseFailedItem2;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateBucketsLfsFilesDuplicateResponseFailedItem2? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateBucketsLfsFilesDuplicateResponseFailedItem2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateBucketsLfsFilesDuplicateResponseFailedItem2;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponseFailedItem2.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponseFailedItem2.g.cs
new file mode 100644
index 00000000..688a8be6
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateBucketsLfsFilesDuplicateResponseFailedItem2.g.cs
@@ -0,0 +1,71 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateBucketsLfsFilesDuplicateResponseFailedItem2
+ {
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("xetHash")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string XetHash { get; set; }
+
+ ///
+ /// sha256 of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sha256")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Sha256 { get; set; }
+
+ ///
+ /// Error message
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Error { 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.
+ ///
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ ///
+ /// sha256 of the file that failed
+ ///
+ ///
+ /// Error message
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateBucketsLfsFilesDuplicateResponseFailedItem2(
+ string xetHash,
+ string sha256,
+ string error)
+ {
+ this.XetHash = xetHash ?? throw new global::System.ArgumentNullException(nameof(xetHash));
+ this.Sha256 = sha256 ?? throw new global::System.ArgumentNullException(nameof(sha256));
+ this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateBucketsLfsFilesDuplicateResponseFailedItem2()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequest.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequest.Json.g.cs
new file mode 100644
index 00000000..902a7b08
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequest.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateDatasetsLfsFilesDuplicateRequest
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequest? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequest),
+ jsonSerializerContext) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequest;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateDatasetsLfsFilesDuplicateRequest? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequest),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequest;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequest.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequest.g.cs
new file mode 100644
index 00000000..77919166
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequest.g.cs
@@ -0,0 +1,55 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateDatasetsLfsFilesDuplicateRequest
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("target")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTarget Target { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("files")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Files { 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 CreateDatasetsLfsFilesDuplicateRequest(
+ global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTarget target,
+ global::System.Collections.Generic.IList files)
+ {
+ this.Target = target ?? throw new global::System.ArgumentNullException(nameof(target));
+ this.Files = files ?? throw new global::System.ArgumentNullException(nameof(files));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateDatasetsLfsFilesDuplicateRequest()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestFile.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestFile.Json.g.cs
new file mode 100644
index 00000000..60d950ab
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestFile.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateDatasetsLfsFilesDuplicateRequestFile
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestFile? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestFile),
+ jsonSerializerContext) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestFile;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestFile? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestFile),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestFile;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestFile.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestFile.g.cs
new file mode 100644
index 00000000..28c73c9b
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestFile.g.cs
@@ -0,0 +1,64 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateDatasetsLfsFilesDuplicateRequestFile
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("xetHash")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string XetHash { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sha256")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Sha256 { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("filename")]
+ public string? Filename { 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 CreateDatasetsLfsFilesDuplicateRequestFile(
+ string xetHash,
+ string sha256,
+ string? filename)
+ {
+ this.XetHash = xetHash ?? throw new global::System.ArgumentNullException(nameof(xetHash));
+ this.Sha256 = sha256 ?? throw new global::System.ArgumentNullException(nameof(sha256));
+ this.Filename = filename;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateDatasetsLfsFilesDuplicateRequestFile()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestTarget.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestTarget.Json.g.cs
new file mode 100644
index 00000000..4db17793
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestTarget.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateDatasetsLfsFilesDuplicateRequestTarget
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTarget? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTarget),
+ jsonSerializerContext) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTarget;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTarget? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTarget),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTarget;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestTarget.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestTarget.g.cs
new file mode 100644
index 00000000..85578da9
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestTarget.g.cs
@@ -0,0 +1,56 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateDatasetsLfsFilesDuplicateRequestTarget
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::HuggingFace.JsonConverters.CreateDatasetsLfsFilesDuplicateRequestTargetTypeJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetType Type { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("name")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Name { 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 CreateDatasetsLfsFilesDuplicateRequestTarget(
+ global::HuggingFace.CreateDatasetsLfsFilesDuplicateRequestTargetType type,
+ string name)
+ {
+ this.Type = type;
+ this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateDatasetsLfsFilesDuplicateRequestTarget()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestTargetType.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestTargetType.g.cs
new file mode 100644
index 00000000..3ed448c8
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateRequestTargetType.g.cs
@@ -0,0 +1,63 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public enum CreateDatasetsLfsFilesDuplicateRequestTargetType
+ {
+ ///
+ ///
+ ///
+ Dataset,
+ ///
+ ///
+ ///
+ Kernel,
+ ///
+ ///
+ ///
+ Model,
+ ///
+ ///
+ ///
+ Space,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class CreateDatasetsLfsFilesDuplicateRequestTargetTypeExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this CreateDatasetsLfsFilesDuplicateRequestTargetType value)
+ {
+ return value switch
+ {
+ CreateDatasetsLfsFilesDuplicateRequestTargetType.Dataset => "dataset",
+ CreateDatasetsLfsFilesDuplicateRequestTargetType.Kernel => "kernel",
+ CreateDatasetsLfsFilesDuplicateRequestTargetType.Model => "model",
+ CreateDatasetsLfsFilesDuplicateRequestTargetType.Space => "space",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static CreateDatasetsLfsFilesDuplicateRequestTargetType? ToEnum(string value)
+ {
+ return value switch
+ {
+ "dataset" => CreateDatasetsLfsFilesDuplicateRequestTargetType.Dataset,
+ "kernel" => CreateDatasetsLfsFilesDuplicateRequestTargetType.Kernel,
+ "model" => CreateDatasetsLfsFilesDuplicateRequestTargetType.Model,
+ "space" => CreateDatasetsLfsFilesDuplicateRequestTargetType.Space,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponse.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponse.Json.g.cs
new file mode 100644
index 00000000..6890cbd4
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateDatasetsLfsFilesDuplicateResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse),
+ jsonSerializerContext) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponse.g.cs
new file mode 100644
index 00000000..0993d7c9
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponse.g.cs
@@ -0,0 +1,83 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateDatasetsLfsFilesDuplicateResponse
+ {
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("success")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required bool Success { get; set; }
+
+ ///
+ /// Total number of unique files processed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("processed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Processed { get; set; }
+
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("succeeded")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Succeeded { get; set; }
+
+ ///
+ /// Per-file failures
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("failed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Failed { 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.
+ ///
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ ///
+ /// Total number of unique files processed
+ ///
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ ///
+ /// Per-file failures
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateDatasetsLfsFilesDuplicateResponse(
+ bool success,
+ int processed,
+ int succeeded,
+ global::System.Collections.Generic.IList failed)
+ {
+ this.Success = success;
+ this.Processed = processed;
+ this.Succeeded = succeeded;
+ this.Failed = failed ?? throw new global::System.ArgumentNullException(nameof(failed));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateDatasetsLfsFilesDuplicateResponse()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponse2.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponse2.Json.g.cs
new file mode 100644
index 00000000..e201b6b2
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponse2.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateDatasetsLfsFilesDuplicateResponse2
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse2? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse2),
+ jsonSerializerContext) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse2;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse2? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponse2;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponse2.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponse2.g.cs
new file mode 100644
index 00000000..c0067143
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponse2.g.cs
@@ -0,0 +1,83 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateDatasetsLfsFilesDuplicateResponse2
+ {
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("success")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required bool Success { get; set; }
+
+ ///
+ /// Total number of unique files processed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("processed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Processed { get; set; }
+
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("succeeded")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Succeeded { get; set; }
+
+ ///
+ /// Per-file failures
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("failed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Failed { 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.
+ ///
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ ///
+ /// Total number of unique files processed
+ ///
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ ///
+ /// Per-file failures
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateDatasetsLfsFilesDuplicateResponse2(
+ bool success,
+ int processed,
+ int succeeded,
+ global::System.Collections.Generic.IList failed)
+ {
+ this.Success = success;
+ this.Processed = processed;
+ this.Succeeded = succeeded;
+ this.Failed = failed ?? throw new global::System.ArgumentNullException(nameof(failed));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateDatasetsLfsFilesDuplicateResponse2()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponseFailedItem.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponseFailedItem.Json.g.cs
new file mode 100644
index 00000000..e8a9db3f
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponseFailedItem.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateDatasetsLfsFilesDuplicateResponseFailedItem
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponseFailedItem? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponseFailedItem),
+ jsonSerializerContext) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponseFailedItem;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateDatasetsLfsFilesDuplicateResponseFailedItem? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponseFailedItem),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponseFailedItem;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponseFailedItem.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponseFailedItem.g.cs
new file mode 100644
index 00000000..d1efcaf7
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponseFailedItem.g.cs
@@ -0,0 +1,71 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateDatasetsLfsFilesDuplicateResponseFailedItem
+ {
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("xetHash")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string XetHash { get; set; }
+
+ ///
+ /// sha256 of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sha256")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Sha256 { get; set; }
+
+ ///
+ /// Error message
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Error { 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.
+ ///
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ ///
+ /// sha256 of the file that failed
+ ///
+ ///
+ /// Error message
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateDatasetsLfsFilesDuplicateResponseFailedItem(
+ string xetHash,
+ string sha256,
+ string error)
+ {
+ this.XetHash = xetHash ?? throw new global::System.ArgumentNullException(nameof(xetHash));
+ this.Sha256 = sha256 ?? throw new global::System.ArgumentNullException(nameof(sha256));
+ this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateDatasetsLfsFilesDuplicateResponseFailedItem()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponseFailedItem2.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponseFailedItem2.Json.g.cs
new file mode 100644
index 00000000..630f63d5
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponseFailedItem2.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateDatasetsLfsFilesDuplicateResponseFailedItem2
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponseFailedItem2? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponseFailedItem2),
+ jsonSerializerContext) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponseFailedItem2;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateDatasetsLfsFilesDuplicateResponseFailedItem2? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponseFailedItem2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateDatasetsLfsFilesDuplicateResponseFailedItem2;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponseFailedItem2.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponseFailedItem2.g.cs
new file mode 100644
index 00000000..b98a8763
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateDatasetsLfsFilesDuplicateResponseFailedItem2.g.cs
@@ -0,0 +1,71 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateDatasetsLfsFilesDuplicateResponseFailedItem2
+ {
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("xetHash")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string XetHash { get; set; }
+
+ ///
+ /// sha256 of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sha256")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Sha256 { get; set; }
+
+ ///
+ /// Error message
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Error { 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.
+ ///
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ ///
+ /// sha256 of the file that failed
+ ///
+ ///
+ /// Error message
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateDatasetsLfsFilesDuplicateResponseFailedItem2(
+ string xetHash,
+ string sha256,
+ string error)
+ {
+ this.XetHash = xetHash ?? throw new global::System.ArgumentNullException(nameof(xetHash));
+ this.Sha256 = sha256 ?? throw new global::System.ArgumentNullException(nameof(sha256));
+ this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateDatasetsLfsFilesDuplicateResponseFailedItem2()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequest.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequest.Json.g.cs
new file mode 100644
index 00000000..ad98b853
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequest.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateKernelsLfsFilesDuplicateRequest
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateKernelsLfsFilesDuplicateRequest? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateRequest),
+ jsonSerializerContext) as global::HuggingFace.CreateKernelsLfsFilesDuplicateRequest;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateKernelsLfsFilesDuplicateRequest? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateRequest),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateKernelsLfsFilesDuplicateRequest;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequest.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequest.g.cs
new file mode 100644
index 00000000..22a56199
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequest.g.cs
@@ -0,0 +1,55 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateKernelsLfsFilesDuplicateRequest
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("target")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTarget Target { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("files")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Files { 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 CreateKernelsLfsFilesDuplicateRequest(
+ global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTarget target,
+ global::System.Collections.Generic.IList files)
+ {
+ this.Target = target ?? throw new global::System.ArgumentNullException(nameof(target));
+ this.Files = files ?? throw new global::System.ArgumentNullException(nameof(files));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateKernelsLfsFilesDuplicateRequest()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestFile.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestFile.Json.g.cs
new file mode 100644
index 00000000..70c88088
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestFile.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateKernelsLfsFilesDuplicateRequestFile
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestFile? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestFile),
+ jsonSerializerContext) as global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestFile;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateKernelsLfsFilesDuplicateRequestFile? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestFile),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestFile;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestFile.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestFile.g.cs
new file mode 100644
index 00000000..1b8fb42f
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestFile.g.cs
@@ -0,0 +1,64 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateKernelsLfsFilesDuplicateRequestFile
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("xetHash")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string XetHash { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sha256")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Sha256 { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("filename")]
+ public string? Filename { 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 CreateKernelsLfsFilesDuplicateRequestFile(
+ string xetHash,
+ string sha256,
+ string? filename)
+ {
+ this.XetHash = xetHash ?? throw new global::System.ArgumentNullException(nameof(xetHash));
+ this.Sha256 = sha256 ?? throw new global::System.ArgumentNullException(nameof(sha256));
+ this.Filename = filename;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateKernelsLfsFilesDuplicateRequestFile()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestTarget.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestTarget.Json.g.cs
new file mode 100644
index 00000000..fc4cd811
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestTarget.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateKernelsLfsFilesDuplicateRequestTarget
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTarget? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTarget),
+ jsonSerializerContext) as global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTarget;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTarget? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTarget),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTarget;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestTarget.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestTarget.g.cs
new file mode 100644
index 00000000..ecc853c4
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestTarget.g.cs
@@ -0,0 +1,56 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateKernelsLfsFilesDuplicateRequestTarget
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::HuggingFace.JsonConverters.CreateKernelsLfsFilesDuplicateRequestTargetTypeJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetType Type { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("name")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Name { 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 CreateKernelsLfsFilesDuplicateRequestTarget(
+ global::HuggingFace.CreateKernelsLfsFilesDuplicateRequestTargetType type,
+ string name)
+ {
+ this.Type = type;
+ this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateKernelsLfsFilesDuplicateRequestTarget()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestTargetType.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestTargetType.g.cs
new file mode 100644
index 00000000..dc4b0bb8
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateRequestTargetType.g.cs
@@ -0,0 +1,63 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public enum CreateKernelsLfsFilesDuplicateRequestTargetType
+ {
+ ///
+ ///
+ ///
+ Dataset,
+ ///
+ ///
+ ///
+ Kernel,
+ ///
+ ///
+ ///
+ Model,
+ ///
+ ///
+ ///
+ Space,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class CreateKernelsLfsFilesDuplicateRequestTargetTypeExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this CreateKernelsLfsFilesDuplicateRequestTargetType value)
+ {
+ return value switch
+ {
+ CreateKernelsLfsFilesDuplicateRequestTargetType.Dataset => "dataset",
+ CreateKernelsLfsFilesDuplicateRequestTargetType.Kernel => "kernel",
+ CreateKernelsLfsFilesDuplicateRequestTargetType.Model => "model",
+ CreateKernelsLfsFilesDuplicateRequestTargetType.Space => "space",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static CreateKernelsLfsFilesDuplicateRequestTargetType? ToEnum(string value)
+ {
+ return value switch
+ {
+ "dataset" => CreateKernelsLfsFilesDuplicateRequestTargetType.Dataset,
+ "kernel" => CreateKernelsLfsFilesDuplicateRequestTargetType.Kernel,
+ "model" => CreateKernelsLfsFilesDuplicateRequestTargetType.Model,
+ "space" => CreateKernelsLfsFilesDuplicateRequestTargetType.Space,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponse.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponse.Json.g.cs
new file mode 100644
index 00000000..ae3faad2
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateKernelsLfsFilesDuplicateResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateKernelsLfsFilesDuplicateResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateResponse),
+ jsonSerializerContext) as global::HuggingFace.CreateKernelsLfsFilesDuplicateResponse;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateKernelsLfsFilesDuplicateResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateKernelsLfsFilesDuplicateResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponse.g.cs
new file mode 100644
index 00000000..08290071
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponse.g.cs
@@ -0,0 +1,83 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateKernelsLfsFilesDuplicateResponse
+ {
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("success")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required bool Success { get; set; }
+
+ ///
+ /// Total number of unique files processed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("processed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Processed { get; set; }
+
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("succeeded")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Succeeded { get; set; }
+
+ ///
+ /// Per-file failures
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("failed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Failed { 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.
+ ///
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ ///
+ /// Total number of unique files processed
+ ///
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ ///
+ /// Per-file failures
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateKernelsLfsFilesDuplicateResponse(
+ bool success,
+ int processed,
+ int succeeded,
+ global::System.Collections.Generic.IList failed)
+ {
+ this.Success = success;
+ this.Processed = processed;
+ this.Succeeded = succeeded;
+ this.Failed = failed ?? throw new global::System.ArgumentNullException(nameof(failed));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateKernelsLfsFilesDuplicateResponse()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponse2.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponse2.Json.g.cs
new file mode 100644
index 00000000..16ab3eca
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponse2.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateKernelsLfsFilesDuplicateResponse2
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateKernelsLfsFilesDuplicateResponse2? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateResponse2),
+ jsonSerializerContext) as global::HuggingFace.CreateKernelsLfsFilesDuplicateResponse2;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateKernelsLfsFilesDuplicateResponse2? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateResponse2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateKernelsLfsFilesDuplicateResponse2;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponse2.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponse2.g.cs
new file mode 100644
index 00000000..8f6787fd
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponse2.g.cs
@@ -0,0 +1,83 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateKernelsLfsFilesDuplicateResponse2
+ {
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("success")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required bool Success { get; set; }
+
+ ///
+ /// Total number of unique files processed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("processed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Processed { get; set; }
+
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("succeeded")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Succeeded { get; set; }
+
+ ///
+ /// Per-file failures
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("failed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Failed { 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.
+ ///
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ ///
+ /// Total number of unique files processed
+ ///
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ ///
+ /// Per-file failures
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateKernelsLfsFilesDuplicateResponse2(
+ bool success,
+ int processed,
+ int succeeded,
+ global::System.Collections.Generic.IList failed)
+ {
+ this.Success = success;
+ this.Processed = processed;
+ this.Succeeded = succeeded;
+ this.Failed = failed ?? throw new global::System.ArgumentNullException(nameof(failed));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateKernelsLfsFilesDuplicateResponse2()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponseFailedItem.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponseFailedItem.Json.g.cs
new file mode 100644
index 00000000..6114c61a
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponseFailedItem.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateKernelsLfsFilesDuplicateResponseFailedItem
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateKernelsLfsFilesDuplicateResponseFailedItem? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateResponseFailedItem),
+ jsonSerializerContext) as global::HuggingFace.CreateKernelsLfsFilesDuplicateResponseFailedItem;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateKernelsLfsFilesDuplicateResponseFailedItem? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateResponseFailedItem),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateKernelsLfsFilesDuplicateResponseFailedItem;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponseFailedItem.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponseFailedItem.g.cs
new file mode 100644
index 00000000..1af596a5
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponseFailedItem.g.cs
@@ -0,0 +1,71 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateKernelsLfsFilesDuplicateResponseFailedItem
+ {
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("xetHash")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string XetHash { get; set; }
+
+ ///
+ /// sha256 of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sha256")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Sha256 { get; set; }
+
+ ///
+ /// Error message
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Error { 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.
+ ///
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ ///
+ /// sha256 of the file that failed
+ ///
+ ///
+ /// Error message
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateKernelsLfsFilesDuplicateResponseFailedItem(
+ string xetHash,
+ string sha256,
+ string error)
+ {
+ this.XetHash = xetHash ?? throw new global::System.ArgumentNullException(nameof(xetHash));
+ this.Sha256 = sha256 ?? throw new global::System.ArgumentNullException(nameof(sha256));
+ this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateKernelsLfsFilesDuplicateResponseFailedItem()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponseFailedItem2.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponseFailedItem2.Json.g.cs
new file mode 100644
index 00000000..c88018db
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponseFailedItem2.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateKernelsLfsFilesDuplicateResponseFailedItem2
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateKernelsLfsFilesDuplicateResponseFailedItem2? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateResponseFailedItem2),
+ jsonSerializerContext) as global::HuggingFace.CreateKernelsLfsFilesDuplicateResponseFailedItem2;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateKernelsLfsFilesDuplicateResponseFailedItem2? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateKernelsLfsFilesDuplicateResponseFailedItem2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateKernelsLfsFilesDuplicateResponseFailedItem2;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponseFailedItem2.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponseFailedItem2.g.cs
new file mode 100644
index 00000000..7596812f
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateKernelsLfsFilesDuplicateResponseFailedItem2.g.cs
@@ -0,0 +1,71 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateKernelsLfsFilesDuplicateResponseFailedItem2
+ {
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("xetHash")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string XetHash { get; set; }
+
+ ///
+ /// sha256 of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sha256")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Sha256 { get; set; }
+
+ ///
+ /// Error message
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Error { 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.
+ ///
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ ///
+ /// sha256 of the file that failed
+ ///
+ ///
+ /// Error message
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateKernelsLfsFilesDuplicateResponseFailedItem2(
+ string xetHash,
+ string sha256,
+ string error)
+ {
+ this.XetHash = xetHash ?? throw new global::System.ArgumentNullException(nameof(xetHash));
+ this.Sha256 = sha256 ?? throw new global::System.ArgumentNullException(nameof(sha256));
+ this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateKernelsLfsFilesDuplicateResponseFailedItem2()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequest.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequest.Json.g.cs
new file mode 100644
index 00000000..f9b62010
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequest.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateModelsLfsFilesDuplicateRequest
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateModelsLfsFilesDuplicateRequest? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateRequest),
+ jsonSerializerContext) as global::HuggingFace.CreateModelsLfsFilesDuplicateRequest;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateModelsLfsFilesDuplicateRequest? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateRequest),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateModelsLfsFilesDuplicateRequest;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequest.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequest.g.cs
new file mode 100644
index 00000000..cb9b650a
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequest.g.cs
@@ -0,0 +1,55 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateModelsLfsFilesDuplicateRequest
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("target")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTarget Target { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("files")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Files { 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 CreateModelsLfsFilesDuplicateRequest(
+ global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTarget target,
+ global::System.Collections.Generic.IList files)
+ {
+ this.Target = target ?? throw new global::System.ArgumentNullException(nameof(target));
+ this.Files = files ?? throw new global::System.ArgumentNullException(nameof(files));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateModelsLfsFilesDuplicateRequest()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestFile.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestFile.Json.g.cs
new file mode 100644
index 00000000..d0a8bf04
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestFile.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateModelsLfsFilesDuplicateRequestFile
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateModelsLfsFilesDuplicateRequestFile? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateRequestFile),
+ jsonSerializerContext) as global::HuggingFace.CreateModelsLfsFilesDuplicateRequestFile;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateModelsLfsFilesDuplicateRequestFile? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateRequestFile),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateModelsLfsFilesDuplicateRequestFile;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestFile.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestFile.g.cs
new file mode 100644
index 00000000..895a1719
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestFile.g.cs
@@ -0,0 +1,64 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateModelsLfsFilesDuplicateRequestFile
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("xetHash")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string XetHash { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sha256")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Sha256 { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("filename")]
+ public string? Filename { 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 CreateModelsLfsFilesDuplicateRequestFile(
+ string xetHash,
+ string sha256,
+ string? filename)
+ {
+ this.XetHash = xetHash ?? throw new global::System.ArgumentNullException(nameof(xetHash));
+ this.Sha256 = sha256 ?? throw new global::System.ArgumentNullException(nameof(sha256));
+ this.Filename = filename;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateModelsLfsFilesDuplicateRequestFile()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestTarget.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestTarget.Json.g.cs
new file mode 100644
index 00000000..7ea2f223
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestTarget.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateModelsLfsFilesDuplicateRequestTarget
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTarget? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTarget),
+ jsonSerializerContext) as global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTarget;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateModelsLfsFilesDuplicateRequestTarget? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTarget),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTarget;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestTarget.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestTarget.g.cs
new file mode 100644
index 00000000..8bf34cac
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestTarget.g.cs
@@ -0,0 +1,56 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateModelsLfsFilesDuplicateRequestTarget
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::HuggingFace.JsonConverters.CreateModelsLfsFilesDuplicateRequestTargetTypeJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetType Type { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("name")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Name { 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 CreateModelsLfsFilesDuplicateRequestTarget(
+ global::HuggingFace.CreateModelsLfsFilesDuplicateRequestTargetType type,
+ string name)
+ {
+ this.Type = type;
+ this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateModelsLfsFilesDuplicateRequestTarget()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestTargetType.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestTargetType.g.cs
new file mode 100644
index 00000000..45adb9bd
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateRequestTargetType.g.cs
@@ -0,0 +1,63 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public enum CreateModelsLfsFilesDuplicateRequestTargetType
+ {
+ ///
+ ///
+ ///
+ Dataset,
+ ///
+ ///
+ ///
+ Kernel,
+ ///
+ ///
+ ///
+ Model,
+ ///
+ ///
+ ///
+ Space,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class CreateModelsLfsFilesDuplicateRequestTargetTypeExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this CreateModelsLfsFilesDuplicateRequestTargetType value)
+ {
+ return value switch
+ {
+ CreateModelsLfsFilesDuplicateRequestTargetType.Dataset => "dataset",
+ CreateModelsLfsFilesDuplicateRequestTargetType.Kernel => "kernel",
+ CreateModelsLfsFilesDuplicateRequestTargetType.Model => "model",
+ CreateModelsLfsFilesDuplicateRequestTargetType.Space => "space",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static CreateModelsLfsFilesDuplicateRequestTargetType? ToEnum(string value)
+ {
+ return value switch
+ {
+ "dataset" => CreateModelsLfsFilesDuplicateRequestTargetType.Dataset,
+ "kernel" => CreateModelsLfsFilesDuplicateRequestTargetType.Kernel,
+ "model" => CreateModelsLfsFilesDuplicateRequestTargetType.Model,
+ "space" => CreateModelsLfsFilesDuplicateRequestTargetType.Space,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponse.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponse.Json.g.cs
new file mode 100644
index 00000000..9649277a
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateModelsLfsFilesDuplicateResponse
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateModelsLfsFilesDuplicateResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateResponse),
+ jsonSerializerContext) as global::HuggingFace.CreateModelsLfsFilesDuplicateResponse;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateModelsLfsFilesDuplicateResponse? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateModelsLfsFilesDuplicateResponse;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponse.g.cs
new file mode 100644
index 00000000..bb5b067b
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponse.g.cs
@@ -0,0 +1,83 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateModelsLfsFilesDuplicateResponse
+ {
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("success")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required bool Success { get; set; }
+
+ ///
+ /// Total number of unique files processed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("processed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Processed { get; set; }
+
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("succeeded")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Succeeded { get; set; }
+
+ ///
+ /// Per-file failures
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("failed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Failed { 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.
+ ///
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ ///
+ /// Total number of unique files processed
+ ///
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ ///
+ /// Per-file failures
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateModelsLfsFilesDuplicateResponse(
+ bool success,
+ int processed,
+ int succeeded,
+ global::System.Collections.Generic.IList failed)
+ {
+ this.Success = success;
+ this.Processed = processed;
+ this.Succeeded = succeeded;
+ this.Failed = failed ?? throw new global::System.ArgumentNullException(nameof(failed));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateModelsLfsFilesDuplicateResponse()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponse2.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponse2.Json.g.cs
new file mode 100644
index 00000000..4b17255a
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponse2.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateModelsLfsFilesDuplicateResponse2
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateModelsLfsFilesDuplicateResponse2? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateResponse2),
+ jsonSerializerContext) as global::HuggingFace.CreateModelsLfsFilesDuplicateResponse2;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateModelsLfsFilesDuplicateResponse2? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateResponse2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateModelsLfsFilesDuplicateResponse2;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponse2.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponse2.g.cs
new file mode 100644
index 00000000..4c42b6ca
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponse2.g.cs
@@ -0,0 +1,83 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateModelsLfsFilesDuplicateResponse2
+ {
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("success")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required bool Success { get; set; }
+
+ ///
+ /// Total number of unique files processed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("processed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Processed { get; set; }
+
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("succeeded")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Succeeded { get; set; }
+
+ ///
+ /// Per-file failures
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("failed")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Failed { 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.
+ ///
+ ///
+ /// True if all requested files were duplicated (or already present)
+ ///
+ ///
+ /// Total number of unique files processed
+ ///
+ ///
+ /// Number of files duplicated or already present in the target
+ ///
+ ///
+ /// Per-file failures
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateModelsLfsFilesDuplicateResponse2(
+ bool success,
+ int processed,
+ int succeeded,
+ global::System.Collections.Generic.IList failed)
+ {
+ this.Success = success;
+ this.Processed = processed;
+ this.Succeeded = succeeded;
+ this.Failed = failed ?? throw new global::System.ArgumentNullException(nameof(failed));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateModelsLfsFilesDuplicateResponse2()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponseFailedItem.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponseFailedItem.Json.g.cs
new file mode 100644
index 00000000..e93b90ce
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponseFailedItem.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateModelsLfsFilesDuplicateResponseFailedItem
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateModelsLfsFilesDuplicateResponseFailedItem? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateResponseFailedItem),
+ jsonSerializerContext) as global::HuggingFace.CreateModelsLfsFilesDuplicateResponseFailedItem;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateModelsLfsFilesDuplicateResponseFailedItem? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateResponseFailedItem),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateModelsLfsFilesDuplicateResponseFailedItem;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponseFailedItem.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponseFailedItem.g.cs
new file mode 100644
index 00000000..eefb0a47
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponseFailedItem.g.cs
@@ -0,0 +1,71 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateModelsLfsFilesDuplicateResponseFailedItem
+ {
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("xetHash")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string XetHash { get; set; }
+
+ ///
+ /// sha256 of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sha256")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Sha256 { get; set; }
+
+ ///
+ /// Error message
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Error { 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.
+ ///
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ ///
+ /// sha256 of the file that failed
+ ///
+ ///
+ /// Error message
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateModelsLfsFilesDuplicateResponseFailedItem(
+ string xetHash,
+ string sha256,
+ string error)
+ {
+ this.XetHash = xetHash ?? throw new global::System.ArgumentNullException(nameof(xetHash));
+ this.Sha256 = sha256 ?? throw new global::System.ArgumentNullException(nameof(sha256));
+ this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateModelsLfsFilesDuplicateResponseFailedItem()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponseFailedItem2.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponseFailedItem2.Json.g.cs
new file mode 100644
index 00000000..7ce904c9
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponseFailedItem2.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateModelsLfsFilesDuplicateResponseFailedItem2
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateModelsLfsFilesDuplicateResponseFailedItem2? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateResponseFailedItem2),
+ jsonSerializerContext) as global::HuggingFace.CreateModelsLfsFilesDuplicateResponseFailedItem2;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateModelsLfsFilesDuplicateResponseFailedItem2? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateModelsLfsFilesDuplicateResponseFailedItem2),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateModelsLfsFilesDuplicateResponseFailedItem2;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponseFailedItem2.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponseFailedItem2.g.cs
new file mode 100644
index 00000000..57a827bb
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateModelsLfsFilesDuplicateResponseFailedItem2.g.cs
@@ -0,0 +1,71 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateModelsLfsFilesDuplicateResponseFailedItem2
+ {
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("xetHash")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string XetHash { get; set; }
+
+ ///
+ /// sha256 of the file that failed
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sha256")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Sha256 { get; set; }
+
+ ///
+ /// Error message
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Error { 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.
+ ///
+ ///
+ /// Xet content hash of the file that failed
+ ///
+ ///
+ /// sha256 of the file that failed
+ ///
+ ///
+ /// Error message
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public CreateModelsLfsFilesDuplicateResponseFailedItem2(
+ string xetHash,
+ string sha256,
+ string error)
+ {
+ this.XetHash = xetHash ?? throw new global::System.ArgumentNullException(nameof(xetHash));
+ this.Sha256 = sha256 ?? throw new global::System.ArgumentNullException(nameof(sha256));
+ this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateModelsLfsFilesDuplicateResponseFailedItem2()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSpacesLfsFilesDuplicateRequest.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSpacesLfsFilesDuplicateRequest.Json.g.cs
new file mode 100644
index 00000000..0c2f8a7b
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSpacesLfsFilesDuplicateRequest.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateSpacesLfsFilesDuplicateRequest
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateSpacesLfsFilesDuplicateRequest? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateSpacesLfsFilesDuplicateRequest),
+ jsonSerializerContext) as global::HuggingFace.CreateSpacesLfsFilesDuplicateRequest;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateSpacesLfsFilesDuplicateRequest? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateSpacesLfsFilesDuplicateRequest),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateSpacesLfsFilesDuplicateRequest;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSpacesLfsFilesDuplicateRequest.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSpacesLfsFilesDuplicateRequest.g.cs
new file mode 100644
index 00000000..1a6266e7
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSpacesLfsFilesDuplicateRequest.g.cs
@@ -0,0 +1,55 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateSpacesLfsFilesDuplicateRequest
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("target")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTarget Target { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("files")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Files { 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 CreateSpacesLfsFilesDuplicateRequest(
+ global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestTarget target,
+ global::System.Collections.Generic.IList files)
+ {
+ this.Target = target ?? throw new global::System.ArgumentNullException(nameof(target));
+ this.Files = files ?? throw new global::System.ArgumentNullException(nameof(files));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public CreateSpacesLfsFilesDuplicateRequest()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSpacesLfsFilesDuplicateRequestFile.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSpacesLfsFilesDuplicateRequestFile.Json.g.cs
new file mode 100644
index 00000000..7f2d1e01
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSpacesLfsFilesDuplicateRequestFile.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace HuggingFace
+{
+ public sealed partial class CreateSpacesLfsFilesDuplicateRequestFile
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestFile? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestFile),
+ jsonSerializerContext) as global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestFile;
+ }
+
+ ///
+ /// 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::HuggingFace.CreateSpacesLfsFilesDuplicateRequestFile? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestFile),
+ jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateSpacesLfsFilesDuplicateRequestFile;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSpacesLfsFilesDuplicateRequestFile.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSpacesLfsFilesDuplicateRequestFile.g.cs
new file mode 100644
index 00000000..270325c0
--- /dev/null
+++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSpacesLfsFilesDuplicateRequestFile.g.cs
@@ -0,0 +1,64 @@
+
+#nullable enable
+
+namespace HuggingFace
+{
+ ///
+ ///
+ ///
+ public sealed partial class CreateSpacesLfsFilesDuplicateRequestFile
+ {
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("xetHash")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string XetHash { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sha256")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Sha256 { get; set; }
+
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("filename")]
+ public string? Filename { 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();
+
+ ///