diff --git a/src/libs/HuggingFace/Generated/HuggingFace.AnyOf.5.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.AnyOf.5.Json.g.cs new file mode 100644 index 00000000..054302d5 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.AnyOf.5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public readonly partial struct AnyOf + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.AnyOf? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.AnyOf), + jsonSerializerContext) as global::HuggingFace.AnyOf?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.AnyOf? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.AnyOf? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize>( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.AnyOf), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.AnyOf?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.AnyOf.5.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.AnyOf.5.g.cs new file mode 100644 index 00000000..635ea40e --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.AnyOf.5.g.cs @@ -0,0 +1,543 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public readonly partial struct AnyOf : global::System.IEquatable> + { + /// + /// + /// +#if NET6_0_OR_GREATER + public T1? Value1 { get; init; } +#else + public T1? Value1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] +#endif + public bool IsValue1 => Value1 != null; + + /// + /// + /// + public bool TryPickValue1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T1? value) + { + value = Value1; + return IsValue1; + } + + /// + /// + /// + public T1 PickValue1() => IsValue1 + ? Value1! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public T2? Value2 { get; init; } +#else + public T2? Value2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; + + /// + /// + /// + public bool TryPickValue2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T2? value) + { + value = Value2; + return IsValue2; + } + + /// + /// + /// + public T2 PickValue2() => IsValue2 + ? Value2! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public T3? Value3 { get; init; } +#else + public T3? Value3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] +#endif + public bool IsValue3 => Value3 != null; + + /// + /// + /// + public bool TryPickValue3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T3? value) + { + value = Value3; + return IsValue3; + } + + /// + /// + /// + public T3 PickValue3() => IsValue3 + ? Value3! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public T4? Value4 { get; init; } +#else + public T4? Value4 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] +#endif + public bool IsValue4 => Value4 != null; + + /// + /// + /// + public bool TryPickValue4( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T4? value) + { + value = Value4; + return IsValue4; + } + + /// + /// + /// + public T4 PickValue4() => IsValue4 + ? Value4! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public T5? Value5 { get; init; } +#else + public T5? Value5 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value5))] +#endif + public bool IsValue5 => Value5 != null; + + /// + /// + /// + public bool TryPickValue5( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T5? value) + { + value = Value5; + return IsValue5; + } + + /// + /// + /// + public T5 PickValue5() => IsValue5 + ? Value5! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value); + + /// + /// + /// + public static implicit operator T1?(AnyOf @this) => @this.Value1; + + /// + /// + /// + public AnyOf(T1? value) + { + Value1 = value; + } + + /// + /// + /// + public static AnyOf FromValue1(T1? value) => new AnyOf(value); + + /// + /// + /// + public static implicit operator AnyOf(T2 value) => new AnyOf((T2?)value); + + /// + /// + /// + public static implicit operator T2?(AnyOf @this) => @this.Value2; + + /// + /// + /// + public AnyOf(T2? value) + { + Value2 = value; + } + + /// + /// + /// + public static AnyOf FromValue2(T2? value) => new AnyOf(value); + + /// + /// + /// + public static implicit operator AnyOf(T3 value) => new AnyOf((T3?)value); + + /// + /// + /// + public static implicit operator T3?(AnyOf @this) => @this.Value3; + + /// + /// + /// + public AnyOf(T3? value) + { + Value3 = value; + } + + /// + /// + /// + public static AnyOf FromValue3(T3? value) => new AnyOf(value); + + /// + /// + /// + public static implicit operator AnyOf(T4 value) => new AnyOf((T4?)value); + + /// + /// + /// + public static implicit operator T4?(AnyOf @this) => @this.Value4; + + /// + /// + /// + public AnyOf(T4? value) + { + Value4 = value; + } + + /// + /// + /// + public static AnyOf FromValue4(T4? value) => new AnyOf(value); + + /// + /// + /// + public static implicit operator AnyOf(T5 value) => new AnyOf((T5?)value); + + /// + /// + /// + public static implicit operator T5?(AnyOf @this) => @this.Value5; + + /// + /// + /// + public AnyOf(T5? value) + { + Value5 = value; + } + + /// + /// + /// + public static AnyOf FromValue5(T5? value) => new AnyOf(value); + + /// + /// + /// + public AnyOf( + T1? value1, + T2? value2, + T3? value3, + T4? value4, + T5? value5 + ) + { + Value1 = value1; + Value2 = value2; + Value3 = value3; + Value4 = value4; + Value5 = value5; + } + + /// + /// + /// + public object? Object => + Value5 as object ?? + Value4 as object ?? + Value3 as object ?? + Value2 as object ?? + Value1 as object + ; + + /// + /// + /// + public override string? ToString() => + Value1?.ToString() ?? + Value2?.ToString() ?? + Value3?.ToString() ?? + Value4?.ToString() ?? + Value5?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsValue1 || IsValue2 || IsValue3 || IsValue4 || IsValue5; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + global::System.Func? value3 = null, + global::System.Func? value4 = null, + global::System.Func? value5 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + else if (IsValue3 && value3 != null) + { + return value3(Value3!); + } + else if (IsValue4 && value4 != null) + { + return value4(Value4!); + } + else if (IsValue5 && value5 != null) + { + return value5(Value5!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + + global::System.Action? value2 = null, + + global::System.Action? value3 = null, + + global::System.Action? value4 = null, + + global::System.Action? value5 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + else if (IsValue3) + { + value3?.Invoke(Value3!); + } + else if (IsValue4) + { + value4?.Invoke(Value4!); + } + else if (IsValue5) + { + value5?.Invoke(Value5!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + global::System.Action? value3 = null, + global::System.Action? value4 = null, + global::System.Action? value5 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + else if (IsValue3) + { + value3?.Invoke(Value3!); + } + else if (IsValue4) + { + value4?.Invoke(Value4!); + } + else if (IsValue5) + { + value5?.Invoke(Value5!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Value1, + typeof(T1), + Value2, + typeof(T2), + Value3, + typeof(T3), + Value4, + typeof(T4), + Value5, + typeof(T5), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(AnyOf other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value5, other.Value5) + ; + } + + /// + /// + /// + public static bool operator ==(AnyOf obj1, AnyOf obj2) + { + return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(AnyOf obj1, AnyOf obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is AnyOf o && Equals(o); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.IJobsClient.CreateJobsByNamespace.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.IJobsClient.CreateJobsByNamespace.g.cs index f5745b5c..9d3c2d3a 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.IJobsClient.CreateJobsByNamespace.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.IJobsClient.CreateJobsByNamespace.g.cs @@ -65,6 +65,7 @@ public partial interface IJobsClient /// /// When `enabled`, the job's container is reachable over SSH at `ssh <job_id>@ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub. /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -84,6 +85,7 @@ public partial interface IJobsClient global::System.Collections.Generic.IList? volumes = default, global::HuggingFace.CreateJobsRequestExpose? expose = default, global::HuggingFace.CreateJobsRequestSsh? ssh = default, + string? resourceGroupId = default, global::HuggingFace.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/HuggingFace/Generated/HuggingFace.IOrgsClient.GetOrganizationsByNameBillingUsageByInferenceSession.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.IOrgsClient.GetOrganizationsByNameBillingUsageByInferenceSession.g.cs index 4b914353..44e52bef 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.IOrgsClient.GetOrganizationsByNameBillingUsageByInferenceSession.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.IOrgsClient.GetOrganizationsByNameBillingUsageByInferenceSession.g.cs @@ -13,7 +13,7 @@ public partial interface IOrgsClient /// Default Value: 2026-07-01T00:00:00.000Z /// /// - /// Default Value: 2026-07-24T15:05:43.485Z + /// Default Value: 2026-07-27T14:24:02.646Z /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -33,7 +33,7 @@ public partial interface IOrgsClient /// Default Value: 2026-07-01T00:00:00.000Z /// /// - /// Default Value: 2026-07-24T15:05:43.485Z + /// Default Value: 2026-07-27T14:24:02.646Z /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/HuggingFace/Generated/HuggingFace.IOrgsClient.GetOrganizationsByNameBillingUsageByResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.IOrgsClient.GetOrganizationsByNameBillingUsageByResourceGroup.g.cs index 2fbfae87..e9e340f6 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.IOrgsClient.GetOrganizationsByNameBillingUsageByResourceGroup.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.IOrgsClient.GetOrganizationsByNameBillingUsageByResourceGroup.g.cs @@ -13,7 +13,7 @@ public partial interface IOrgsClient /// Default Value: 2026-07-01T00:00:00.000Z /// /// - /// Default Value: 2026-07-24T15:05:43.484Z + /// Default Value: 2026-07-27T14:24:02.645Z /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -33,7 +33,7 @@ public partial interface IOrgsClient /// Default Value: 2026-07-01T00:00:00.000Z /// /// - /// Default Value: 2026-07-24T15:05:43.484Z + /// Default Value: 2026-07-27T14:24:02.645Z /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/HuggingFace/Generated/HuggingFace.IUsersClient.GetSettingsBillingUsageByInferenceSession.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.IUsersClient.GetSettingsBillingUsageByInferenceSession.g.cs index dadd46d6..7d56fed7 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.IUsersClient.GetSettingsBillingUsageByInferenceSession.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.IUsersClient.GetSettingsBillingUsageByInferenceSession.g.cs @@ -12,7 +12,7 @@ public partial interface IUsersClient /// Default Value: 2026-07-01T00:00:00.000Z /// /// - /// Default Value: 2026-07-24T15:05:43.485Z + /// Default Value: 2026-07-27T14:24:02.646Z /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -30,7 +30,7 @@ public partial interface IUsersClient /// Default Value: 2026-07-01T00:00:00.000Z /// /// - /// Default Value: 2026-07-24T15:05:43.485Z + /// Default Value: 2026-07-27T14:24:02.646Z /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.CreateJobsByNamespace.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.CreateJobsByNamespace.g.cs index 78e7752c..6d54126e 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.CreateJobsByNamespace.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.CreateJobsByNamespace.g.cs @@ -473,6 +473,7 @@ partial void ProcessCreateJobsByNamespaceResponseContent( /// /// When `enabled`, the job's container is reachable over SSH at `ssh <job_id>@ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub. /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -492,6 +493,7 @@ partial void ProcessCreateJobsByNamespaceResponseContent( global::System.Collections.Generic.IList? volumes = default, global::HuggingFace.CreateJobsRequestExpose? expose = default, global::HuggingFace.CreateJobsRequestSsh? ssh = default, + string? resourceGroupId = default, global::HuggingFace.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -511,6 +513,7 @@ partial void ProcessCreateJobsByNamespaceResponseContent( Volumes = volumes, Expose = expose, Ssh = ssh, + ResourceGroupId = resourceGroupId, }; return await CreateJobsByNamespaceAsync( diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.AnyOf5.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.AnyOf5.g.cs new file mode 100644 index 00000000..0caf8f39 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.JsonConverters.AnyOf5.g.cs @@ -0,0 +1,326 @@ +#nullable enable + +namespace HuggingFace.JsonConverters +{ + /// + public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + { + /// + public override global::HuggingFace.AnyOf Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __score2 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score2++; + } + } + } + var __score3 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score3++; + } + } + } + var __score4 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T5), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score4++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } + if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } + + T1? value1 = default; + T2? value2 = default; + T3? value3 = default; + T4? value4 = default; + T5? value5 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 1) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 2) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 3) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 4) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::HuggingFace.AnyOf( + value1, + + value2, + + value3, + + value4, + + value5 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::HuggingFace.AnyOf value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsValue1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + } + else if (value.IsValue2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + } + else if (value.IsValue3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + } + else if (value.IsValue4) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + } + else if (value.IsValue5) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + } + } + } +} \ 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 6b93b93d..23f5a82e 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: gQtqXERB + /// Default Value: emLdLxWl ///
[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: gQtqXERB + /// Default Value: emLdLxWl /// /// /// The visibility of the repository (defaults to private)
diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsCancelResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsCancelResponse.g.cs index a47aca49..0d09a88e 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsCancelResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsCancelResponse.g.cs @@ -81,6 +81,12 @@ public sealed partial class CreateJobsCancelResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.CreateJobsCancelResponseCreatedBy CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -131,6 +137,12 @@ public sealed partial class CreateJobsCancelResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.CreateJobsCancelResponseOwner Owner { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroup")] + public global::HuggingFace.CreateJobsCancelResponseResourceGroup? ResourceGroup { get; set; } + /// /// /// @@ -185,6 +197,7 @@ public sealed partial class CreateJobsCancelResponse /// /// /// + /// /// /// /// @@ -193,6 +206,7 @@ public sealed partial class CreateJobsCancelResponse /// /// Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs). /// + /// /// /// /// @@ -215,12 +229,14 @@ public CreateJobsCancelResponse( global::System.Collections.Generic.IList? command, global::System.Collections.Generic.IList? arguments, global::HuggingFace.CreateJobsCancelResponseArch? arch, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, global::HuggingFace.CreateJobsCancelResponseDurations? durations, global::System.Collections.Generic.IList? volumes, global::HuggingFace.CreateJobsCancelResponseExpose? expose, + global::HuggingFace.CreateJobsCancelResponseResourceGroup? resourceGroup, global::HuggingFace.AnyOf? initiator, global::System.Collections.Generic.IList? secrets, global::System.Collections.Generic.Dictionary? labels, @@ -238,6 +254,7 @@ public CreateJobsCancelResponse( this.Arch = arch; this.Flavor = flavor; this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; @@ -246,6 +263,7 @@ public CreateJobsCancelResponse( this.Expose = expose; this.Type = type; this.Owner = owner ?? throw new global::System.ArgumentNullException(nameof(owner)); + this.ResourceGroup = resourceGroup; this.Initiator = initiator; this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); this.Secrets = secrets; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsCancelResponseResourceGroup.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsCancelResponseResourceGroup.Json.g.cs new file mode 100644 index 00000000..4cd31915 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsCancelResponseResourceGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateJobsCancelResponseResourceGroup + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateJobsCancelResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateJobsCancelResponseResourceGroup), + jsonSerializerContext) as global::HuggingFace.CreateJobsCancelResponseResourceGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateJobsCancelResponseResourceGroup? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateJobsCancelResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateJobsCancelResponseResourceGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateJobsCancelResponseResourceGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsCancelResponseResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsCancelResponseResourceGroup.g.cs new file mode 100644 index 00000000..80f9b78b --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsCancelResponseResourceGroup.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateJobsCancelResponseResourceGroup + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numUsers")] + public double? NumUsers { 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 CreateJobsCancelResponseResourceGroup( + string id, + string name, + double? numUsers) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NumUsers = numUsers; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateJobsCancelResponseResourceGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsDuplicateResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsDuplicateResponse.g.cs index 3e959e1c..b25672a3 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsDuplicateResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsDuplicateResponse.g.cs @@ -81,6 +81,12 @@ public sealed partial class CreateJobsDuplicateResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.CreateJobsDuplicateResponseCreatedBy CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -131,6 +137,12 @@ public sealed partial class CreateJobsDuplicateResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.CreateJobsDuplicateResponseOwner Owner { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroup")] + public global::HuggingFace.CreateJobsDuplicateResponseResourceGroup? ResourceGroup { get; set; } + /// /// /// @@ -185,6 +197,7 @@ public sealed partial class CreateJobsDuplicateResponse /// /// /// + /// /// /// /// @@ -193,6 +206,7 @@ public sealed partial class CreateJobsDuplicateResponse /// /// Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs). /// + /// /// /// /// @@ -215,12 +229,14 @@ public CreateJobsDuplicateResponse( global::System.Collections.Generic.IList? command, global::System.Collections.Generic.IList? arguments, global::HuggingFace.CreateJobsDuplicateResponseArch? arch, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, global::HuggingFace.CreateJobsDuplicateResponseDurations? durations, global::System.Collections.Generic.IList? volumes, global::HuggingFace.CreateJobsDuplicateResponseExpose? expose, + global::HuggingFace.CreateJobsDuplicateResponseResourceGroup? resourceGroup, global::HuggingFace.AnyOf? initiator, global::System.Collections.Generic.IList? secrets, global::System.Collections.Generic.Dictionary? labels, @@ -238,6 +254,7 @@ public CreateJobsDuplicateResponse( this.Arch = arch; this.Flavor = flavor; this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; @@ -246,6 +263,7 @@ public CreateJobsDuplicateResponse( this.Expose = expose; this.Type = type; this.Owner = owner ?? throw new global::System.ArgumentNullException(nameof(owner)); + this.ResourceGroup = resourceGroup; this.Initiator = initiator; this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); this.Secrets = secrets; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsDuplicateResponseResourceGroup.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsDuplicateResponseResourceGroup.Json.g.cs new file mode 100644 index 00000000..0b05360c --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsDuplicateResponseResourceGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateJobsDuplicateResponseResourceGroup + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateJobsDuplicateResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateJobsDuplicateResponseResourceGroup), + jsonSerializerContext) as global::HuggingFace.CreateJobsDuplicateResponseResourceGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateJobsDuplicateResponseResourceGroup? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateJobsDuplicateResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateJobsDuplicateResponseResourceGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateJobsDuplicateResponseResourceGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsDuplicateResponseResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsDuplicateResponseResourceGroup.g.cs new file mode 100644 index 00000000..ac5a8c66 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsDuplicateResponseResourceGroup.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateJobsDuplicateResponseResourceGroup + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numUsers")] + public double? NumUsers { 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 CreateJobsDuplicateResponseResourceGroup( + string id, + string name, + double? numUsers) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NumUsers = numUsers; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateJobsDuplicateResponseResourceGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsRequest.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsRequest.g.cs index ee4b97c2..2910c015 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsRequest.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsRequest.g.cs @@ -96,6 +96,12 @@ public sealed partial class CreateJobsRequest [global::System.Text.Json.Serialization.JsonPropertyName("ssh")] public global::HuggingFace.CreateJobsRequestSsh? Ssh { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -134,6 +140,7 @@ public sealed partial class CreateJobsRequest /// /// When `enabled`, the job's container is reachable over SSH at `ssh <job_id>@ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub. /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -151,7 +158,8 @@ public CreateJobsRequest( global::System.Collections.Generic.Dictionary? labels, global::System.Collections.Generic.IList? volumes, global::HuggingFace.CreateJobsRequestExpose? expose, - global::HuggingFace.CreateJobsRequestSsh? ssh) + global::HuggingFace.CreateJobsRequestSsh? ssh, + string? resourceGroupId) { this.SpaceId = spaceId; this.DockerImage = dockerImage; @@ -167,6 +175,7 @@ public CreateJobsRequest( this.Volumes = volumes; this.Expose = expose; this.Ssh = ssh; + this.ResourceGroupId = resourceGroupId; } /// diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsResponse.g.cs index a916c4ae..f9b57142 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsResponse.g.cs @@ -81,6 +81,12 @@ public sealed partial class CreateJobsResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.CreateJobsResponseCreatedBy CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -131,6 +137,12 @@ public sealed partial class CreateJobsResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.CreateJobsResponseOwner Owner { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroup")] + public global::HuggingFace.CreateJobsResponseResourceGroup? ResourceGroup { get; set; } + /// /// /// @@ -185,6 +197,7 @@ public sealed partial class CreateJobsResponse /// /// /// + /// /// /// /// @@ -193,6 +206,7 @@ public sealed partial class CreateJobsResponse /// /// Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs). /// + /// /// /// /// @@ -215,12 +229,14 @@ public CreateJobsResponse( global::System.Collections.Generic.IList? command, global::System.Collections.Generic.IList? arguments, global::HuggingFace.CreateJobsResponseArch? arch, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, global::HuggingFace.CreateJobsResponseDurations? durations, global::System.Collections.Generic.IList? volumes, global::HuggingFace.CreateJobsResponseExpose? expose, + global::HuggingFace.CreateJobsResponseResourceGroup? resourceGroup, global::HuggingFace.AnyOf? initiator, global::System.Collections.Generic.IList? secrets, global::System.Collections.Generic.Dictionary? labels, @@ -238,6 +254,7 @@ public CreateJobsResponse( this.Arch = arch; this.Flavor = flavor; this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; @@ -246,6 +263,7 @@ public CreateJobsResponse( this.Expose = expose; this.Type = type; this.Owner = owner ?? throw new global::System.ArgumentNullException(nameof(owner)); + this.ResourceGroup = resourceGroup; this.Initiator = initiator; this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); this.Secrets = secrets; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsResponseResourceGroup.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsResponseResourceGroup.Json.g.cs new file mode 100644 index 00000000..2ac89d88 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsResponseResourceGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateJobsResponseResourceGroup + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateJobsResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateJobsResponseResourceGroup), + jsonSerializerContext) as global::HuggingFace.CreateJobsResponseResourceGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateJobsResponseResourceGroup? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateJobsResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateJobsResponseResourceGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateJobsResponseResourceGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsResponseResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsResponseResourceGroup.g.cs new file mode 100644 index 00000000..8eef8dd5 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateJobsResponseResourceGroup.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateJobsResponseResourceGroup + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numUsers")] + public double? NumUsers { 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 CreateJobsResponseResourceGroup( + string id, + string name, + double? numUsers) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NumUsers = numUsers; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateJobsResponseResourceGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponse.g.cs index 7459c344..772e0d00 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponse.g.cs @@ -47,7 +47,7 @@ public sealed partial class CreateOrganizationsResourceGroupsResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("resources")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Resources { get; set; } + public required global::System.Collections.Generic.IList> Resources { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -71,7 +71,7 @@ public CreateOrganizationsResourceGroupsResponse( string id, string name, global::System.Collections.Generic.IList users, - global::System.Collections.Generic.IList> resources, + global::System.Collections.Generic.IList> resources, string? description, global::HuggingFace.AnyOf? autoJoin) { diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant3.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant3.Json.g.cs new file mode 100644 index 00000000..63f57fdf --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsResponseResourceVariant3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant3.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant3.g.cs new file mode 100644 index 00000000..8eed082a --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant3.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsResponseResourceVariant3 + { + /// + /// + /// + /// "blog" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "blog"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("private")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Private { 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 CreateOrganizationsResourceGroupsResponseResourceVariant3( + string id, + string slug, + string title, + bool @private, + string? addedBy, + string type = "blog") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.AddedBy = addedBy; + this.Private = @private; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateOrganizationsResourceGroupsResponseResourceVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant3Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant3Type.Json.g.cs new file mode 100644 index 00000000..8c9a672a --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant3Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsResponseResourceVariant3Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3Type), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant3Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant3Type.g.cs new file mode 100644 index 00000000..536aaeac --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant3Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsResponseResourceVariant3Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant4.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant4.Json.g.cs new file mode 100644 index 00000000..dc8e7620 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsResponseResourceVariant4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant4.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant4.g.cs new file mode 100644 index 00000000..b1ec9541 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant4.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsResponseResourceVariant4 + { + /// + /// + /// + /// "job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 CreateOrganizationsResourceGroupsResponseResourceVariant4( + string id, + string? addedBy, + string type = "job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateOrganizationsResourceGroupsResponseResourceVariant4() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateOrganizationsResourceGroupsResponseResourceVariant4 FromId(string id) + { + return new CreateOrganizationsResourceGroupsResponseResourceVariant4 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant4Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant4Type.Json.g.cs new file mode 100644 index 00000000..ed3351a3 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant4Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsResponseResourceVariant4Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4Type), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant4Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant4Type.g.cs new file mode 100644 index 00000000..c5890a7d --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant4Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsResponseResourceVariant4Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant5.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant5.Json.g.cs new file mode 100644 index 00000000..aecd50c6 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsResponseResourceVariant5 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant5.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant5.g.cs new file mode 100644 index 00000000..77ab0496 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant5.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsResponseResourceVariant5 + { + /// + /// + /// + /// "scheduled-job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "scheduled-job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 CreateOrganizationsResourceGroupsResponseResourceVariant5( + string id, + string? addedBy, + string type = "scheduled-job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateOrganizationsResourceGroupsResponseResourceVariant5() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateOrganizationsResourceGroupsResponseResourceVariant5 FromId(string id) + { + return new CreateOrganizationsResourceGroupsResponseResourceVariant5 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant5Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant5Type.Json.g.cs new file mode 100644 index 00000000..567a663b --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant5Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsResponseResourceVariant5Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5Type), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant5Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant5Type.g.cs new file mode 100644 index 00000000..5f42c48e --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsResponseResourceVariant5Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsResponseResourceVariant5Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponse.g.cs index 1b3060b3..35138003 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponse.g.cs @@ -47,7 +47,7 @@ public sealed partial class CreateOrganizationsResourceGroupsSettingsResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("resources")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Resources { get; set; } + public required global::System.Collections.Generic.IList> Resources { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -71,7 +71,7 @@ public CreateOrganizationsResourceGroupsSettingsResponse( string id, string name, global::System.Collections.Generic.IList users, - global::System.Collections.Generic.IList> resources, + global::System.Collections.Generic.IList> resources, string? description, global::HuggingFace.AnyOf? autoJoin) { diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3.Json.g.cs new file mode 100644 index 00000000..c3089a45 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3.g.cs new file mode 100644 index 00000000..22e05c87 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3 + { + /// + /// + /// + /// "blog" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "blog"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("private")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Private { 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 CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3( + string id, + string slug, + string title, + bool @private, + string? addedBy, + string type = "blog") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.AddedBy = addedBy; + this.Private = @private; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type.Json.g.cs new file mode 100644 index 00000000..01fa7a6d --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type.g.cs new file mode 100644 index 00000000..91b1150f --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsSettingsResponseResourceVariant3Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4.Json.g.cs new file mode 100644 index 00000000..dadd9f96 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4.g.cs new file mode 100644 index 00000000..94075b3f --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4 + { + /// + /// + /// + /// "job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4( + string id, + string? addedBy, + string type = "job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4 FromId(string id) + { + return new CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type.Json.g.cs new file mode 100644 index 00000000..b79bb015 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type.g.cs new file mode 100644 index 00000000..3d9dbe8f --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsSettingsResponseResourceVariant4Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5.Json.g.cs new file mode 100644 index 00000000..9a36456f --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5.g.cs new file mode 100644 index 00000000..1e50db88 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5 + { + /// + /// + /// + /// "scheduled-job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "scheduled-job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5( + string id, + string? addedBy, + string type = "scheduled-job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5 FromId(string id) + { + return new CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type.Json.g.cs new file mode 100644 index 00000000..97b815bb --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type.g.cs new file mode 100644 index 00000000..ed95d741 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsSettingsResponseResourceVariant5Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponse.g.cs index 5eb59eb3..cceb7a6d 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponse.g.cs @@ -47,7 +47,7 @@ public sealed partial class CreateOrganizationsResourceGroupsUsersResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("resources")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Resources { get; set; } + public required global::System.Collections.Generic.IList> Resources { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -71,7 +71,7 @@ public CreateOrganizationsResourceGroupsUsersResponse( string id, string name, global::System.Collections.Generic.IList users, - global::System.Collections.Generic.IList> resources, + global::System.Collections.Generic.IList> resources, string? description, global::HuggingFace.AnyOf? autoJoin) { diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3.Json.g.cs new file mode 100644 index 00000000..efe88ae6 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsUsersResponseResourceVariant3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3.g.cs new file mode 100644 index 00000000..93ca11be --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsUsersResponseResourceVariant3 + { + /// + /// + /// + /// "blog" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "blog"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("private")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Private { 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 CreateOrganizationsResourceGroupsUsersResponseResourceVariant3( + string id, + string slug, + string title, + bool @private, + string? addedBy, + string type = "blog") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.AddedBy = addedBy; + this.Private = @private; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateOrganizationsResourceGroupsUsersResponseResourceVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type.Json.g.cs new file mode 100644 index 00000000..bbc26c46 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type.g.cs new file mode 100644 index 00000000..05f537a9 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsUsersResponseResourceVariant3Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4.Json.g.cs new file mode 100644 index 00000000..048e9482 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsUsersResponseResourceVariant4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4.g.cs new file mode 100644 index 00000000..57f0440a --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsUsersResponseResourceVariant4 + { + /// + /// + /// + /// "job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 CreateOrganizationsResourceGroupsUsersResponseResourceVariant4( + string id, + string? addedBy, + string type = "job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateOrganizationsResourceGroupsUsersResponseResourceVariant4() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateOrganizationsResourceGroupsUsersResponseResourceVariant4 FromId(string id) + { + return new CreateOrganizationsResourceGroupsUsersResponseResourceVariant4 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type.Json.g.cs new file mode 100644 index 00000000..8b764d9e --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type.g.cs new file mode 100644 index 00000000..0a20db08 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsUsersResponseResourceVariant4Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5.Json.g.cs new file mode 100644 index 00000000..83ca03e7 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsUsersResponseResourceVariant5 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5.g.cs new file mode 100644 index 00000000..d242855a --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsUsersResponseResourceVariant5 + { + /// + /// + /// + /// "scheduled-job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "scheduled-job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 CreateOrganizationsResourceGroupsUsersResponseResourceVariant5( + string id, + string? addedBy, + string type = "scheduled-job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateOrganizationsResourceGroupsUsersResponseResourceVariant5() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateOrganizationsResourceGroupsUsersResponseResourceVariant5 FromId(string id) + { + return new CreateOrganizationsResourceGroupsUsersResponseResourceVariant5 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type.Json.g.cs new file mode 100644 index 00000000..79c07024 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type), + jsonSerializerContext) as global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type.g.cs new file mode 100644 index 00000000..e6c4ad8b --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateOrganizationsResourceGroupsUsersResponseResourceVariant5Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRequestJobSpec.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRequestJobSpec.g.cs index cdde3e16..b575c1ae 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRequestJobSpec.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRequestJobSpec.g.cs @@ -96,6 +96,12 @@ public sealed partial class CreateScheduledJobsRequestJobSpec [global::System.Text.Json.Serialization.JsonPropertyName("ssh")] public global::HuggingFace.CreateScheduledJobsRequestJobSpecSsh? Ssh { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -134,6 +140,7 @@ public sealed partial class CreateScheduledJobsRequestJobSpec /// /// When `enabled`, the job's container is reachable over SSH at `ssh <job_id>@ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub. /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -151,7 +158,8 @@ public CreateScheduledJobsRequestJobSpec( global::System.Collections.Generic.Dictionary? labels, global::System.Collections.Generic.IList? volumes, global::HuggingFace.CreateScheduledJobsRequestJobSpecExpose? expose, - global::HuggingFace.CreateScheduledJobsRequestJobSpecSsh? ssh) + global::HuggingFace.CreateScheduledJobsRequestJobSpecSsh? ssh, + string? resourceGroupId) { this.SpaceId = spaceId; this.DockerImage = dockerImage; @@ -167,6 +175,7 @@ public CreateScheduledJobsRequestJobSpec( this.Volumes = volumes; this.Expose = expose; this.Ssh = ssh; + this.ResourceGroupId = resourceGroupId; } /// diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsResponseJobSpec.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsResponseJobSpec.g.cs index b49bf2c3..aeb88260 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsResponseJobSpec.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsResponseJobSpec.g.cs @@ -60,6 +60,12 @@ public sealed partial class CreateScheduledJobsResponseJobSpec [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.CreateScheduledJobsResponseJobSpecFlavor Flavor { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -96,6 +102,12 @@ public sealed partial class CreateScheduledJobsResponseJobSpec [global::System.Text.Json.Serialization.JsonPropertyName("expose")] public global::HuggingFace.CreateScheduledJobsResponseJobSpecExpose? Expose { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroup")] + public global::HuggingFace.CreateScheduledJobsResponseJobSpecResourceGroup? ResourceGroup { get; set; } + /// /// /// @@ -131,6 +143,7 @@ public sealed partial class CreateScheduledJobsResponseJobSpec /// /// /// + /// /// /// /// @@ -139,6 +152,7 @@ public sealed partial class CreateScheduledJobsResponseJobSpec /// /// Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs). /// + /// /// /// /// @@ -154,12 +168,14 @@ public CreateScheduledJobsResponseJobSpec( global::System.Collections.Generic.IList? command, global::System.Collections.Generic.IList? arguments, global::HuggingFace.CreateScheduledJobsResponseJobSpecArch? arch, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, global::HuggingFace.CreateScheduledJobsResponseJobSpecDurations? durations, global::System.Collections.Generic.IList? volumes, global::HuggingFace.CreateScheduledJobsResponseJobSpecExpose? expose, + global::HuggingFace.CreateScheduledJobsResponseJobSpecResourceGroup? resourceGroup, global::System.Collections.Generic.IList? secrets, global::System.Collections.Generic.Dictionary? labels, global::HuggingFace.CreateScheduledJobsResponseJobSpecHfToken? hfToken) @@ -172,12 +188,14 @@ public CreateScheduledJobsResponseJobSpec( this.Arguments = arguments; this.Arch = arch; this.Flavor = flavor; + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; this.Durations = durations; this.Volumes = volumes; this.Expose = expose; + this.ResourceGroup = resourceGroup; this.Secrets = secrets; this.Labels = labels; this.HfToken = hfToken; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsResponseJobSpecResourceGroup.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsResponseJobSpecResourceGroup.Json.g.cs new file mode 100644 index 00000000..069cd195 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsResponseJobSpecResourceGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateScheduledJobsResponseJobSpecResourceGroup + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateScheduledJobsResponseJobSpecResourceGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateScheduledJobsResponseJobSpecResourceGroup), + jsonSerializerContext) as global::HuggingFace.CreateScheduledJobsResponseJobSpecResourceGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateScheduledJobsResponseJobSpecResourceGroup? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateScheduledJobsResponseJobSpecResourceGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateScheduledJobsResponseJobSpecResourceGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateScheduledJobsResponseJobSpecResourceGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsResponseJobSpecResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsResponseJobSpecResourceGroup.g.cs new file mode 100644 index 00000000..74941994 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsResponseJobSpecResourceGroup.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateScheduledJobsResponseJobSpecResourceGroup + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numUsers")] + public double? NumUsers { 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 CreateScheduledJobsResponseJobSpecResourceGroup( + string id, + string name, + double? numUsers) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NumUsers = numUsers; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateScheduledJobsResponseJobSpecResourceGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRunResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRunResponse.g.cs index ac39c4d3..d950ef8d 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRunResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRunResponse.g.cs @@ -81,6 +81,12 @@ public sealed partial class CreateScheduledJobsRunResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.CreateScheduledJobsRunResponseCreatedBy CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -131,6 +137,12 @@ public sealed partial class CreateScheduledJobsRunResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.CreateScheduledJobsRunResponseOwner Owner { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroup")] + public global::HuggingFace.CreateScheduledJobsRunResponseResourceGroup? ResourceGroup { get; set; } + /// /// /// @@ -185,6 +197,7 @@ public sealed partial class CreateScheduledJobsRunResponse /// /// /// + /// /// /// /// @@ -193,6 +206,7 @@ public sealed partial class CreateScheduledJobsRunResponse /// /// Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs). /// + /// /// /// /// @@ -215,12 +229,14 @@ public CreateScheduledJobsRunResponse( global::System.Collections.Generic.IList? command, global::System.Collections.Generic.IList? arguments, global::HuggingFace.CreateScheduledJobsRunResponseArch? arch, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, global::HuggingFace.CreateScheduledJobsRunResponseDurations? durations, global::System.Collections.Generic.IList? volumes, global::HuggingFace.CreateScheduledJobsRunResponseExpose? expose, + global::HuggingFace.CreateScheduledJobsRunResponseResourceGroup? resourceGroup, global::HuggingFace.AnyOf? initiator, global::System.Collections.Generic.IList? secrets, global::System.Collections.Generic.Dictionary? labels, @@ -238,6 +254,7 @@ public CreateScheduledJobsRunResponse( this.Arch = arch; this.Flavor = flavor; this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; @@ -246,6 +263,7 @@ public CreateScheduledJobsRunResponse( this.Expose = expose; this.Type = type; this.Owner = owner ?? throw new global::System.ArgumentNullException(nameof(owner)); + this.ResourceGroup = resourceGroup; this.Initiator = initiator; this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); this.Secrets = secrets; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRunResponseResourceGroup.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRunResponseResourceGroup.Json.g.cs new file mode 100644 index 00000000..183cc294 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRunResponseResourceGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateScheduledJobsRunResponseResourceGroup + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateScheduledJobsRunResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateScheduledJobsRunResponseResourceGroup), + jsonSerializerContext) as global::HuggingFace.CreateScheduledJobsRunResponseResourceGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateScheduledJobsRunResponseResourceGroup? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateScheduledJobsRunResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateScheduledJobsRunResponseResourceGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateScheduledJobsRunResponseResourceGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRunResponseResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRunResponseResourceGroup.g.cs new file mode 100644 index 00000000..f32b56af --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsRunResponseResourceGroup.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateScheduledJobsRunResponseResourceGroup + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numUsers")] + public double? NumUsers { 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 CreateScheduledJobsRunResponseResourceGroup( + string id, + string name, + double? numUsers) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NumUsers = numUsers; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateScheduledJobsRunResponseResourceGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsScheduleResponseJobSpec.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsScheduleResponseJobSpec.g.cs index f1b15e52..67476cdf 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsScheduleResponseJobSpec.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsScheduleResponseJobSpec.g.cs @@ -60,6 +60,12 @@ public sealed partial class CreateScheduledJobsScheduleResponseJobSpec [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecFlavor Flavor { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -96,6 +102,12 @@ public sealed partial class CreateScheduledJobsScheduleResponseJobSpec [global::System.Text.Json.Serialization.JsonPropertyName("expose")] public global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecExpose? Expose { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroup")] + public global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecResourceGroup? ResourceGroup { get; set; } + /// /// /// @@ -131,6 +143,7 @@ public sealed partial class CreateScheduledJobsScheduleResponseJobSpec /// /// /// + /// /// /// /// @@ -139,6 +152,7 @@ public sealed partial class CreateScheduledJobsScheduleResponseJobSpec /// /// Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs). /// + /// /// /// /// @@ -154,12 +168,14 @@ public CreateScheduledJobsScheduleResponseJobSpec( global::System.Collections.Generic.IList? command, global::System.Collections.Generic.IList? arguments, global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecArch? arch, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecDurations? durations, global::System.Collections.Generic.IList? volumes, global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecExpose? expose, + global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecResourceGroup? resourceGroup, global::System.Collections.Generic.IList? secrets, global::System.Collections.Generic.Dictionary? labels, global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecHfToken? hfToken) @@ -172,12 +188,14 @@ public CreateScheduledJobsScheduleResponseJobSpec( this.Arguments = arguments; this.Arch = arch; this.Flavor = flavor; + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; this.Durations = durations; this.Volumes = volumes; this.Expose = expose; + this.ResourceGroup = resourceGroup; this.Secrets = secrets; this.Labels = labels; this.HfToken = hfToken; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsScheduleResponseJobSpecResourceGroup.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsScheduleResponseJobSpecResourceGroup.Json.g.cs new file mode 100644 index 00000000..10f7110e --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsScheduleResponseJobSpecResourceGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class CreateScheduledJobsScheduleResponseJobSpecResourceGroup + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecResourceGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecResourceGroup), + jsonSerializerContext) as global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecResourceGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecResourceGroup? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecResourceGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecResourceGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.CreateScheduledJobsScheduleResponseJobSpecResourceGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsScheduleResponseJobSpecResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsScheduleResponseJobSpecResourceGroup.g.cs new file mode 100644 index 00000000..67409223 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateScheduledJobsScheduleResponseJobSpecResourceGroup.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class CreateScheduledJobsScheduleResponseJobSpecResourceGroup + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numUsers")] + public double? NumUsers { 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 CreateScheduledJobsScheduleResponseJobSpecResourceGroup( + string id, + string name, + double? numUsers) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NumUsers = numUsers; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateScheduledJobsScheduleResponseJobSpecResourceGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSettingsWebhooksRequestJob.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSettingsWebhooksRequestJob.g.cs index 0db1901e..1a9e82b6 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSettingsWebhooksRequestJob.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSettingsWebhooksRequestJob.g.cs @@ -96,6 +96,12 @@ public sealed partial class CreateSettingsWebhooksRequestJob [global::System.Text.Json.Serialization.JsonPropertyName("ssh")] public global::HuggingFace.CreateSettingsWebhooksRequestJobSsh? Ssh { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -134,6 +140,7 @@ public sealed partial class CreateSettingsWebhooksRequestJob /// /// When `enabled`, the job's container is reachable over SSH at `ssh <job_id>@ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub. /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -151,7 +158,8 @@ public CreateSettingsWebhooksRequestJob( global::System.Collections.Generic.Dictionary? labels, global::System.Collections.Generic.IList? volumes, global::HuggingFace.CreateSettingsWebhooksRequestJobExpose? expose, - global::HuggingFace.CreateSettingsWebhooksRequestJobSsh? ssh) + global::HuggingFace.CreateSettingsWebhooksRequestJobSsh? ssh, + string? resourceGroupId) { this.SpaceId = spaceId; this.DockerImage = dockerImage; @@ -167,6 +175,7 @@ public CreateSettingsWebhooksRequestJob( this.Volumes = volumes; this.Expose = expose; this.Ssh = ssh; + this.ResourceGroupId = resourceGroupId; } /// diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSettingsWebhooksRequestJob2.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSettingsWebhooksRequestJob2.g.cs index 6c24976f..17af7352 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSettingsWebhooksRequestJob2.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.CreateSettingsWebhooksRequestJob2.g.cs @@ -96,6 +96,12 @@ public sealed partial class CreateSettingsWebhooksRequestJob2 [global::System.Text.Json.Serialization.JsonPropertyName("ssh")] public global::HuggingFace.CreateSettingsWebhooksRequestJobSsh2? Ssh { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -134,6 +140,7 @@ public sealed partial class CreateSettingsWebhooksRequestJob2 /// /// When `enabled`, the job's container is reachable over SSH at `ssh <job_id>@ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub. /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -151,7 +158,8 @@ public CreateSettingsWebhooksRequestJob2( global::System.Collections.Generic.Dictionary? labels, global::System.Collections.Generic.IList? volumes, global::HuggingFace.CreateSettingsWebhooksRequestJobExpose2? expose, - global::HuggingFace.CreateSettingsWebhooksRequestJobSsh2? ssh) + global::HuggingFace.CreateSettingsWebhooksRequestJobSsh2? ssh, + string? resourceGroupId) { this.SpaceId = spaceId; this.DockerImage = dockerImage; @@ -167,6 +175,7 @@ public CreateSettingsWebhooksRequestJob2( this.Volumes = volumes; this.Expose = expose; this.Ssh = ssh; + this.ResourceGroupId = resourceGroupId; } /// diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponse.g.cs index 5e51fc87..49c55e4c 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponse.g.cs @@ -47,7 +47,7 @@ public sealed partial class DeleteOrganizationsResourceGroupsUsersResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("resources")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Resources { get; set; } + public required global::System.Collections.Generic.IList> Resources { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -71,7 +71,7 @@ public DeleteOrganizationsResourceGroupsUsersResponse( string id, string name, global::System.Collections.Generic.IList users, - global::System.Collections.Generic.IList> resources, + global::System.Collections.Generic.IList> resources, string? description, global::HuggingFace.AnyOf? autoJoin) { diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3.Json.g.cs new file mode 100644 index 00000000..46cb933f --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3), + jsonSerializerContext) as global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3.g.cs new file mode 100644 index 00000000..6185cfb1 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3 + { + /// + /// + /// + /// "blog" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "blog"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("private")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Private { 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 DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3( + string id, + string slug, + string title, + bool @private, + string? addedBy, + string type = "blog") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.AddedBy = addedBy; + this.Private = @private; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type.Json.g.cs new file mode 100644 index 00000000..244c6c58 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type), + jsonSerializerContext) as global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type.g.cs new file mode 100644 index 00000000..18b30cf5 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class DeleteOrganizationsResourceGroupsUsersResponseResourceVariant3Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4.Json.g.cs new file mode 100644 index 00000000..3e47c4c8 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4), + jsonSerializerContext) as global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4.g.cs new file mode 100644 index 00000000..8bb56242 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4 + { + /// + /// + /// + /// "job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4( + string id, + string? addedBy, + string type = "job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4 FromId(string id) + { + return new DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type.Json.g.cs new file mode 100644 index 00000000..145b4d7e --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type), + jsonSerializerContext) as global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type.g.cs new file mode 100644 index 00000000..481391a9 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class DeleteOrganizationsResourceGroupsUsersResponseResourceVariant4Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5.Json.g.cs new file mode 100644 index 00000000..a32a3dc3 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5), + jsonSerializerContext) as global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5.g.cs new file mode 100644 index 00000000..b09bb856 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5 + { + /// + /// + /// + /// "scheduled-job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "scheduled-job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5( + string id, + string? addedBy, + string type = "scheduled-job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5 FromId(string id) + { + return new DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type.Json.g.cs new file mode 100644 index 00000000..941bd1eb --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type), + jsonSerializerContext) as global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type.g.cs new file mode 100644 index 00000000..a4cc0221 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class DeleteOrganizationsResourceGroupsUsersResponseResourceVariant5Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponse.g.cs index 22fee3ef..49526fc8 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponse.g.cs @@ -81,6 +81,12 @@ public sealed partial class GetJobsResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.GetJobsResponseCreatedBy CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -131,6 +137,12 @@ public sealed partial class GetJobsResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.GetJobsResponseOwner Owner { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroup")] + public global::HuggingFace.GetJobsResponseResourceGroup? ResourceGroup { get; set; } + /// /// /// @@ -185,6 +197,7 @@ public sealed partial class GetJobsResponse /// /// /// + /// /// /// /// @@ -193,6 +206,7 @@ public sealed partial class GetJobsResponse /// /// Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs). /// + /// /// /// /// @@ -215,12 +229,14 @@ public GetJobsResponse( global::System.Collections.Generic.IList? command, global::System.Collections.Generic.IList? arguments, global::HuggingFace.GetJobsResponseArch? arch, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, global::HuggingFace.GetJobsResponseDurations? durations, global::System.Collections.Generic.IList? volumes, global::HuggingFace.GetJobsResponseExpose? expose, + global::HuggingFace.GetJobsResponseResourceGroup? resourceGroup, global::HuggingFace.AnyOf? initiator, global::System.Collections.Generic.IList? secrets, global::System.Collections.Generic.Dictionary? labels, @@ -238,6 +254,7 @@ public GetJobsResponse( this.Arch = arch; this.Flavor = flavor; this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; @@ -246,6 +263,7 @@ public GetJobsResponse( this.Expose = expose; this.Type = type; this.Owner = owner ?? throw new global::System.ArgumentNullException(nameof(owner)); + this.ResourceGroup = resourceGroup; this.Initiator = initiator; this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); this.Secrets = secrets; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseItem.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseItem.g.cs index 258af9f8..66351a1c 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseItem.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseItem.g.cs @@ -81,6 +81,12 @@ public sealed partial class GetJobsResponseItem [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.GetJobsResponseItemCreatedBy CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -131,6 +137,12 @@ public sealed partial class GetJobsResponseItem [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.GetJobsResponseItemOwner Owner { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroup")] + public global::HuggingFace.GetJobsResponseItemResourceGroup? ResourceGroup { get; set; } + /// /// /// @@ -185,6 +197,7 @@ public sealed partial class GetJobsResponseItem /// /// /// + /// /// /// /// @@ -193,6 +206,7 @@ public sealed partial class GetJobsResponseItem /// /// Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs). /// + /// /// /// /// @@ -215,12 +229,14 @@ public GetJobsResponseItem( global::System.Collections.Generic.IList? command, global::System.Collections.Generic.IList? arguments, global::HuggingFace.GetJobsResponseItemArch? arch, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, global::HuggingFace.GetJobsResponseItemDurations? durations, global::System.Collections.Generic.IList? volumes, global::HuggingFace.GetJobsResponseItemExpose? expose, + global::HuggingFace.GetJobsResponseItemResourceGroup? resourceGroup, global::HuggingFace.AnyOf? initiator, global::System.Collections.Generic.IList? secrets, global::System.Collections.Generic.Dictionary? labels, @@ -238,6 +254,7 @@ public GetJobsResponseItem( this.Arch = arch; this.Flavor = flavor; this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; @@ -246,6 +263,7 @@ public GetJobsResponseItem( this.Expose = expose; this.Type = type; this.Owner = owner ?? throw new global::System.ArgumentNullException(nameof(owner)); + this.ResourceGroup = resourceGroup; this.Initiator = initiator; this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); this.Secrets = secrets; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseItemResourceGroup.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseItemResourceGroup.Json.g.cs new file mode 100644 index 00000000..d9cef37b --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseItemResourceGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetJobsResponseItemResourceGroup + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetJobsResponseItemResourceGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetJobsResponseItemResourceGroup), + jsonSerializerContext) as global::HuggingFace.GetJobsResponseItemResourceGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetJobsResponseItemResourceGroup? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetJobsResponseItemResourceGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetJobsResponseItemResourceGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetJobsResponseItemResourceGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseItemResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseItemResourceGroup.g.cs new file mode 100644 index 00000000..b4a2a8b7 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseItemResourceGroup.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetJobsResponseItemResourceGroup + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numUsers")] + public double? NumUsers { 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 GetJobsResponseItemResourceGroup( + string id, + string name, + double? numUsers) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NumUsers = numUsers; + } + + /// + /// Initializes a new instance of the class. + /// + public GetJobsResponseItemResourceGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseResourceGroup.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseResourceGroup.Json.g.cs new file mode 100644 index 00000000..bf5edff5 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseResourceGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetJobsResponseResourceGroup + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetJobsResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetJobsResponseResourceGroup), + jsonSerializerContext) as global::HuggingFace.GetJobsResponseResourceGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetJobsResponseResourceGroup? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetJobsResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetJobsResponseResourceGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetJobsResponseResourceGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseResourceGroup.g.cs new file mode 100644 index 00000000..c15840bc --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetJobsResponseResourceGroup.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetJobsResponseResourceGroup + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numUsers")] + public double? NumUsers { 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 GetJobsResponseResourceGroup( + string id, + string name, + double? numUsers) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NumUsers = numUsers; + } + + /// + /// Initializes a new instance of the class. + /// + public GetJobsResponseResourceGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponse.g.cs index c9641ba2..d68967dc 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponse.g.cs @@ -47,7 +47,7 @@ public sealed partial class GetOrganizationsResourceGroupsResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("resources")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Resources { get; set; } + public required global::System.Collections.Generic.IList> Resources { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -71,7 +71,7 @@ public GetOrganizationsResourceGroupsResponse( string id, string name, global::System.Collections.Generic.IList users, - global::System.Collections.Generic.IList> resources, + global::System.Collections.Generic.IList> resources, string? description, global::HuggingFace.AnyOf? autoJoin) { diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItem.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItem.g.cs index f6ba6784..5623dec7 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItem.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItem.g.cs @@ -47,7 +47,7 @@ public sealed partial class GetOrganizationsResourceGroupsResponseItem /// [global::System.Text.Json.Serialization.JsonPropertyName("resources")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Resources { get; set; } + public required global::System.Collections.Generic.IList> Resources { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -71,7 +71,7 @@ public GetOrganizationsResourceGroupsResponseItem( string id, string name, global::System.Collections.Generic.IList users, - global::System.Collections.Generic.IList> resources, + global::System.Collections.Generic.IList> resources, string? description, global::HuggingFace.AnyOf? autoJoin) { diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant3.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant3.Json.g.cs new file mode 100644 index 00000000..5665af23 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetOrganizationsResourceGroupsResponseItemResourceVariant3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3), + jsonSerializerContext) as global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant3.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant3.g.cs new file mode 100644 index 00000000..5bb76af6 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant3.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetOrganizationsResourceGroupsResponseItemResourceVariant3 + { + /// + /// + /// + /// "blog" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "blog"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("private")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Private { 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 GetOrganizationsResourceGroupsResponseItemResourceVariant3( + string id, + string slug, + string title, + bool @private, + string? addedBy, + string type = "blog") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.AddedBy = addedBy; + this.Private = @private; + } + + /// + /// Initializes a new instance of the class. + /// + public GetOrganizationsResourceGroupsResponseItemResourceVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant3Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant3Type.Json.g.cs new file mode 100644 index 00000000..69fff791 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant3Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetOrganizationsResourceGroupsResponseItemResourceVariant3Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3Type), + jsonSerializerContext) as global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant3Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant3Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant3Type.g.cs new file mode 100644 index 00000000..80c6e35c --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant3Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetOrganizationsResourceGroupsResponseItemResourceVariant3Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant4.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant4.Json.g.cs new file mode 100644 index 00000000..76e9bcb5 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetOrganizationsResourceGroupsResponseItemResourceVariant4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4), + jsonSerializerContext) as global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant4.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant4.g.cs new file mode 100644 index 00000000..71ac32fd --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant4.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetOrganizationsResourceGroupsResponseItemResourceVariant4 + { + /// + /// + /// + /// "job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 GetOrganizationsResourceGroupsResponseItemResourceVariant4( + string id, + string? addedBy, + string type = "job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public GetOrganizationsResourceGroupsResponseItemResourceVariant4() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static GetOrganizationsResourceGroupsResponseItemResourceVariant4 FromId(string id) + { + return new GetOrganizationsResourceGroupsResponseItemResourceVariant4 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant4Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant4Type.Json.g.cs new file mode 100644 index 00000000..d0dbce7e --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant4Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetOrganizationsResourceGroupsResponseItemResourceVariant4Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4Type), + jsonSerializerContext) as global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant4Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant4Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant4Type.g.cs new file mode 100644 index 00000000..78b925f3 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant4Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetOrganizationsResourceGroupsResponseItemResourceVariant4Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant5.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant5.Json.g.cs new file mode 100644 index 00000000..81d08d76 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetOrganizationsResourceGroupsResponseItemResourceVariant5 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5), + jsonSerializerContext) as global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant5.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant5.g.cs new file mode 100644 index 00000000..3b668797 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant5.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetOrganizationsResourceGroupsResponseItemResourceVariant5 + { + /// + /// + /// + /// "scheduled-job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "scheduled-job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 GetOrganizationsResourceGroupsResponseItemResourceVariant5( + string id, + string? addedBy, + string type = "scheduled-job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public GetOrganizationsResourceGroupsResponseItemResourceVariant5() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static GetOrganizationsResourceGroupsResponseItemResourceVariant5 FromId(string id) + { + return new GetOrganizationsResourceGroupsResponseItemResourceVariant5 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant5Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant5Type.Json.g.cs new file mode 100644 index 00000000..61244d69 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant5Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetOrganizationsResourceGroupsResponseItemResourceVariant5Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5Type), + jsonSerializerContext) as global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetOrganizationsResourceGroupsResponseItemResourceVariant5Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant5Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant5Type.g.cs new file mode 100644 index 00000000..15754a90 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseItemResourceVariant5Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetOrganizationsResourceGroupsResponseItemResourceVariant5Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant3.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant3.Json.g.cs new file mode 100644 index 00000000..035b8ece --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetOrganizationsResourceGroupsResponseResourceVariant3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3), + jsonSerializerContext) as global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant3.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant3.g.cs new file mode 100644 index 00000000..272c9ef0 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant3.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetOrganizationsResourceGroupsResponseResourceVariant3 + { + /// + /// + /// + /// "blog" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "blog"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("private")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Private { 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 GetOrganizationsResourceGroupsResponseResourceVariant3( + string id, + string slug, + string title, + bool @private, + string? addedBy, + string type = "blog") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.AddedBy = addedBy; + this.Private = @private; + } + + /// + /// Initializes a new instance of the class. + /// + public GetOrganizationsResourceGroupsResponseResourceVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant3Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant3Type.Json.g.cs new file mode 100644 index 00000000..428efa87 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant3Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetOrganizationsResourceGroupsResponseResourceVariant3Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3Type), + jsonSerializerContext) as global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant3Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant3Type.g.cs new file mode 100644 index 00000000..544b16d7 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant3Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetOrganizationsResourceGroupsResponseResourceVariant3Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant4.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant4.Json.g.cs new file mode 100644 index 00000000..e8cc7436 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetOrganizationsResourceGroupsResponseResourceVariant4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4), + jsonSerializerContext) as global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant4.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant4.g.cs new file mode 100644 index 00000000..21cccc75 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant4.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetOrganizationsResourceGroupsResponseResourceVariant4 + { + /// + /// + /// + /// "job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 GetOrganizationsResourceGroupsResponseResourceVariant4( + string id, + string? addedBy, + string type = "job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public GetOrganizationsResourceGroupsResponseResourceVariant4() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static GetOrganizationsResourceGroupsResponseResourceVariant4 FromId(string id) + { + return new GetOrganizationsResourceGroupsResponseResourceVariant4 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant4Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant4Type.Json.g.cs new file mode 100644 index 00000000..7430a709 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant4Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetOrganizationsResourceGroupsResponseResourceVariant4Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4Type), + jsonSerializerContext) as global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant4Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant4Type.g.cs new file mode 100644 index 00000000..3f791581 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant4Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetOrganizationsResourceGroupsResponseResourceVariant4Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant5.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant5.Json.g.cs new file mode 100644 index 00000000..4daeadb3 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetOrganizationsResourceGroupsResponseResourceVariant5 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5), + jsonSerializerContext) as global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant5.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant5.g.cs new file mode 100644 index 00000000..ddc46e28 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant5.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetOrganizationsResourceGroupsResponseResourceVariant5 + { + /// + /// + /// + /// "scheduled-job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "scheduled-job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 GetOrganizationsResourceGroupsResponseResourceVariant5( + string id, + string? addedBy, + string type = "scheduled-job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public GetOrganizationsResourceGroupsResponseResourceVariant5() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static GetOrganizationsResourceGroupsResponseResourceVariant5 FromId(string id) + { + return new GetOrganizationsResourceGroupsResponseResourceVariant5 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant5Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant5Type.Json.g.cs new file mode 100644 index 00000000..6fab2250 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant5Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetOrganizationsResourceGroupsResponseResourceVariant5Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5Type), + jsonSerializerContext) as global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetOrganizationsResourceGroupsResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant5Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant5Type.g.cs new file mode 100644 index 00000000..8422bbd5 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetOrganizationsResourceGroupsResponseResourceVariant5Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetOrganizationsResourceGroupsResponseResourceVariant5Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseItemJobSpec.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseItemJobSpec.g.cs index 713eb30c..739fed0c 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseItemJobSpec.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseItemJobSpec.g.cs @@ -60,6 +60,12 @@ public sealed partial class GetScheduledJobsResponseItemJobSpec [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.GetScheduledJobsResponseItemJobSpecFlavor Flavor { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -96,6 +102,12 @@ public sealed partial class GetScheduledJobsResponseItemJobSpec [global::System.Text.Json.Serialization.JsonPropertyName("expose")] public global::HuggingFace.GetScheduledJobsResponseItemJobSpecExpose? Expose { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroup")] + public global::HuggingFace.GetScheduledJobsResponseItemJobSpecResourceGroup? ResourceGroup { get; set; } + /// /// /// @@ -131,6 +143,7 @@ public sealed partial class GetScheduledJobsResponseItemJobSpec /// /// /// + /// /// /// /// @@ -139,6 +152,7 @@ public sealed partial class GetScheduledJobsResponseItemJobSpec /// /// Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs). /// + /// /// /// /// @@ -154,12 +168,14 @@ public GetScheduledJobsResponseItemJobSpec( global::System.Collections.Generic.IList? command, global::System.Collections.Generic.IList? arguments, global::HuggingFace.GetScheduledJobsResponseItemJobSpecArch? arch, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, global::HuggingFace.GetScheduledJobsResponseItemJobSpecDurations? durations, global::System.Collections.Generic.IList? volumes, global::HuggingFace.GetScheduledJobsResponseItemJobSpecExpose? expose, + global::HuggingFace.GetScheduledJobsResponseItemJobSpecResourceGroup? resourceGroup, global::System.Collections.Generic.IList? secrets, global::System.Collections.Generic.Dictionary? labels, global::HuggingFace.GetScheduledJobsResponseItemJobSpecHfToken? hfToken) @@ -172,12 +188,14 @@ public GetScheduledJobsResponseItemJobSpec( this.Arguments = arguments; this.Arch = arch; this.Flavor = flavor; + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; this.Durations = durations; this.Volumes = volumes; this.Expose = expose; + this.ResourceGroup = resourceGroup; this.Secrets = secrets; this.Labels = labels; this.HfToken = hfToken; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseItemJobSpecResourceGroup.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseItemJobSpecResourceGroup.Json.g.cs new file mode 100644 index 00000000..ee9e1db3 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseItemJobSpecResourceGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetScheduledJobsResponseItemJobSpecResourceGroup + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetScheduledJobsResponseItemJobSpecResourceGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetScheduledJobsResponseItemJobSpecResourceGroup), + jsonSerializerContext) as global::HuggingFace.GetScheduledJobsResponseItemJobSpecResourceGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetScheduledJobsResponseItemJobSpecResourceGroup? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetScheduledJobsResponseItemJobSpecResourceGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetScheduledJobsResponseItemJobSpecResourceGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetScheduledJobsResponseItemJobSpecResourceGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseItemJobSpecResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseItemJobSpecResourceGroup.g.cs new file mode 100644 index 00000000..d638e9fc --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseItemJobSpecResourceGroup.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetScheduledJobsResponseItemJobSpecResourceGroup + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numUsers")] + public double? NumUsers { 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 GetScheduledJobsResponseItemJobSpecResourceGroup( + string id, + string name, + double? numUsers) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NumUsers = numUsers; + } + + /// + /// Initializes a new instance of the class. + /// + public GetScheduledJobsResponseItemJobSpecResourceGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseJobSpec.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseJobSpec.g.cs index 54daf342..92a2ae46 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseJobSpec.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseJobSpec.g.cs @@ -60,6 +60,12 @@ public sealed partial class GetScheduledJobsResponseJobSpec [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.GetScheduledJobsResponseJobSpecFlavor Flavor { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -96,6 +102,12 @@ public sealed partial class GetScheduledJobsResponseJobSpec [global::System.Text.Json.Serialization.JsonPropertyName("expose")] public global::HuggingFace.GetScheduledJobsResponseJobSpecExpose? Expose { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroup")] + public global::HuggingFace.GetScheduledJobsResponseJobSpecResourceGroup? ResourceGroup { get; set; } + /// /// /// @@ -131,6 +143,7 @@ public sealed partial class GetScheduledJobsResponseJobSpec /// /// /// + /// /// /// /// @@ -139,6 +152,7 @@ public sealed partial class GetScheduledJobsResponseJobSpec /// /// Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs). /// + /// /// /// /// @@ -154,12 +168,14 @@ public GetScheduledJobsResponseJobSpec( global::System.Collections.Generic.IList? command, global::System.Collections.Generic.IList? arguments, global::HuggingFace.GetScheduledJobsResponseJobSpecArch? arch, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, global::HuggingFace.GetScheduledJobsResponseJobSpecDurations? durations, global::System.Collections.Generic.IList? volumes, global::HuggingFace.GetScheduledJobsResponseJobSpecExpose? expose, + global::HuggingFace.GetScheduledJobsResponseJobSpecResourceGroup? resourceGroup, global::System.Collections.Generic.IList? secrets, global::System.Collections.Generic.Dictionary? labels, global::HuggingFace.GetScheduledJobsResponseJobSpecHfToken? hfToken) @@ -172,12 +188,14 @@ public GetScheduledJobsResponseJobSpec( this.Arguments = arguments; this.Arch = arch; this.Flavor = flavor; + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; this.Durations = durations; this.Volumes = volumes; this.Expose = expose; + this.ResourceGroup = resourceGroup; this.Secrets = secrets; this.Labels = labels; this.HfToken = hfToken; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseJobSpecResourceGroup.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseJobSpecResourceGroup.Json.g.cs new file mode 100644 index 00000000..581ce980 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseJobSpecResourceGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class GetScheduledJobsResponseJobSpecResourceGroup + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.GetScheduledJobsResponseJobSpecResourceGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.GetScheduledJobsResponseJobSpecResourceGroup), + jsonSerializerContext) as global::HuggingFace.GetScheduledJobsResponseJobSpecResourceGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.GetScheduledJobsResponseJobSpecResourceGroup? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.GetScheduledJobsResponseJobSpecResourceGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.GetScheduledJobsResponseJobSpecResourceGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.GetScheduledJobsResponseJobSpecResourceGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseJobSpecResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseJobSpecResourceGroup.g.cs new file mode 100644 index 00000000..4c73a871 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.GetScheduledJobsResponseJobSpecResourceGroup.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class GetScheduledJobsResponseJobSpecResourceGroup + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numUsers")] + public double? NumUsers { 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 GetScheduledJobsResponseJobSpecResourceGroup( + string id, + string name, + double? numUsers) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NumUsers = numUsers; + } + + /// + /// Initializes a new instance of the class. + /// + public GetScheduledJobsResponseJobSpecResourceGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.Job.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.Job.g.cs index 375cbd8a..d2e9eef3 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.Job.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.Job.g.cs @@ -107,6 +107,12 @@ public sealed partial class Job [global::System.Text.Json.Serialization.JsonPropertyName("tags")] public global::System.Collections.Generic.IList? Tags { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -167,6 +173,7 @@ public sealed partial class Job /// /// /// + /// /// /// /// @@ -194,6 +201,7 @@ public Job( global::System.Collections.Generic.IList? arguments, global::HuggingFace.JobArch? arch, global::System.Collections.Generic.IList? tags, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, @@ -216,6 +224,7 @@ public Job( this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); this.Tags = tags; + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponse.g.cs index 7618241e..1c7f9466 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponse.g.cs @@ -47,7 +47,7 @@ public sealed partial class PatchOrganizationsResourceGroupsResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("resources")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Resources { get; set; } + public required global::System.Collections.Generic.IList> Resources { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -71,7 +71,7 @@ public PatchOrganizationsResourceGroupsResponse( string id, string name, global::System.Collections.Generic.IList users, - global::System.Collections.Generic.IList> resources, + global::System.Collections.Generic.IList> resources, string? description, global::HuggingFace.AnyOf? autoJoin) { diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant3.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant3.Json.g.cs new file mode 100644 index 00000000..40935407 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PatchOrganizationsResourceGroupsResponseResourceVariant3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3), + jsonSerializerContext) as global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant3.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant3.g.cs new file mode 100644 index 00000000..c96829bf --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant3.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PatchOrganizationsResourceGroupsResponseResourceVariant3 + { + /// + /// + /// + /// "blog" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "blog"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("private")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Private { 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 PatchOrganizationsResourceGroupsResponseResourceVariant3( + string id, + string slug, + string title, + bool @private, + string? addedBy, + string type = "blog") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.AddedBy = addedBy; + this.Private = @private; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchOrganizationsResourceGroupsResponseResourceVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant3Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant3Type.Json.g.cs new file mode 100644 index 00000000..b66caaa6 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant3Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PatchOrganizationsResourceGroupsResponseResourceVariant3Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3Type), + jsonSerializerContext) as global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant3Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant3Type.g.cs new file mode 100644 index 00000000..dd568101 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant3Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PatchOrganizationsResourceGroupsResponseResourceVariant3Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant4.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant4.Json.g.cs new file mode 100644 index 00000000..c0bfaff3 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PatchOrganizationsResourceGroupsResponseResourceVariant4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4), + jsonSerializerContext) as global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant4.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant4.g.cs new file mode 100644 index 00000000..1d035316 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant4.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PatchOrganizationsResourceGroupsResponseResourceVariant4 + { + /// + /// + /// + /// "job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 PatchOrganizationsResourceGroupsResponseResourceVariant4( + string id, + string? addedBy, + string type = "job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchOrganizationsResourceGroupsResponseResourceVariant4() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static PatchOrganizationsResourceGroupsResponseResourceVariant4 FromId(string id) + { + return new PatchOrganizationsResourceGroupsResponseResourceVariant4 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant4Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant4Type.Json.g.cs new file mode 100644 index 00000000..f30dc8db --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant4Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PatchOrganizationsResourceGroupsResponseResourceVariant4Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4Type), + jsonSerializerContext) as global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant4Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant4Type.g.cs new file mode 100644 index 00000000..d16690d9 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant4Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PatchOrganizationsResourceGroupsResponseResourceVariant4Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant5.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant5.Json.g.cs new file mode 100644 index 00000000..9a7f414c --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PatchOrganizationsResourceGroupsResponseResourceVariant5 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5), + jsonSerializerContext) as global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant5.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant5.g.cs new file mode 100644 index 00000000..8d5de2dc --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant5.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PatchOrganizationsResourceGroupsResponseResourceVariant5 + { + /// + /// + /// + /// "scheduled-job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "scheduled-job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 PatchOrganizationsResourceGroupsResponseResourceVariant5( + string id, + string? addedBy, + string type = "scheduled-job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchOrganizationsResourceGroupsResponseResourceVariant5() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static PatchOrganizationsResourceGroupsResponseResourceVariant5 FromId(string id) + { + return new PatchOrganizationsResourceGroupsResponseResourceVariant5 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant5Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant5Type.Json.g.cs new file mode 100644 index 00000000..34d16811 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant5Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PatchOrganizationsResourceGroupsResponseResourceVariant5Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5Type), + jsonSerializerContext) as global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PatchOrganizationsResourceGroupsResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant5Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant5Type.g.cs new file mode 100644 index 00000000..180a85eb --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsResponseResourceVariant5Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PatchOrganizationsResourceGroupsResponseResourceVariant5Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponse.g.cs index f9ef3c7e..059c56d9 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponse.g.cs @@ -47,7 +47,7 @@ public sealed partial class PatchOrganizationsResourceGroupsUsersResponse /// [global::System.Text.Json.Serialization.JsonPropertyName("resources")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Resources { get; set; } + public required global::System.Collections.Generic.IList> Resources { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -71,7 +71,7 @@ public PatchOrganizationsResourceGroupsUsersResponse( string id, string name, global::System.Collections.Generic.IList users, - global::System.Collections.Generic.IList> resources, + global::System.Collections.Generic.IList> resources, string? description, global::HuggingFace.AnyOf? autoJoin) { diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3.Json.g.cs new file mode 100644 index 00000000..64266af6 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PatchOrganizationsResourceGroupsUsersResponseResourceVariant3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3), + jsonSerializerContext) as global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3.g.cs new file mode 100644 index 00000000..a5214d92 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PatchOrganizationsResourceGroupsUsersResponseResourceVariant3 + { + /// + /// + /// + /// "blog" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "blog"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("private")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Private { 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 PatchOrganizationsResourceGroupsUsersResponseResourceVariant3( + string id, + string slug, + string title, + bool @private, + string? addedBy, + string type = "blog") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.AddedBy = addedBy; + this.Private = @private; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchOrganizationsResourceGroupsUsersResponseResourceVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type.Json.g.cs new file mode 100644 index 00000000..22322341 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type), + jsonSerializerContext) as global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type.g.cs new file mode 100644 index 00000000..88c75f78 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PatchOrganizationsResourceGroupsUsersResponseResourceVariant3Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4.Json.g.cs new file mode 100644 index 00000000..f762410c --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PatchOrganizationsResourceGroupsUsersResponseResourceVariant4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4), + jsonSerializerContext) as global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4.g.cs new file mode 100644 index 00000000..99c8b520 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PatchOrganizationsResourceGroupsUsersResponseResourceVariant4 + { + /// + /// + /// + /// "job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 PatchOrganizationsResourceGroupsUsersResponseResourceVariant4( + string id, + string? addedBy, + string type = "job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchOrganizationsResourceGroupsUsersResponseResourceVariant4() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static PatchOrganizationsResourceGroupsUsersResponseResourceVariant4 FromId(string id) + { + return new PatchOrganizationsResourceGroupsUsersResponseResourceVariant4 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type.Json.g.cs new file mode 100644 index 00000000..bbeedce5 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type), + jsonSerializerContext) as global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type.g.cs new file mode 100644 index 00000000..cf8934d8 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PatchOrganizationsResourceGroupsUsersResponseResourceVariant4Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5.Json.g.cs new file mode 100644 index 00000000..d1e30c94 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PatchOrganizationsResourceGroupsUsersResponseResourceVariant5 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5), + jsonSerializerContext) as global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5.g.cs new file mode 100644 index 00000000..3a2649ac --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PatchOrganizationsResourceGroupsUsersResponseResourceVariant5 + { + /// + /// + /// + /// "scheduled-job" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "scheduled-job"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addedBy")] + public string? AddedBy { 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 PatchOrganizationsResourceGroupsUsersResponseResourceVariant5( + string id, + string? addedBy, + string type = "scheduled-job") + { + this.Type = type; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.AddedBy = addedBy; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchOrganizationsResourceGroupsUsersResponseResourceVariant5() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static PatchOrganizationsResourceGroupsUsersResponseResourceVariant5 FromId(string id) + { + return new PatchOrganizationsResourceGroupsUsersResponseResourceVariant5 + { + Id = id, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type.Json.g.cs new file mode 100644 index 00000000..d5d41e2d --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type), + jsonSerializerContext) as global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type.g.cs new file mode 100644 index 00000000..f690de4b --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PatchOrganizationsResourceGroupsUsersResponseResourceVariant5Type + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsExposeResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsExposeResponse.g.cs index 2789a20a..a33aa3bf 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsExposeResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsExposeResponse.g.cs @@ -81,6 +81,12 @@ public sealed partial class PutJobsExposeResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.PutJobsExposeResponseCreatedBy CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -131,6 +137,12 @@ public sealed partial class PutJobsExposeResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.PutJobsExposeResponseOwner Owner { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroup")] + public global::HuggingFace.PutJobsExposeResponseResourceGroup? ResourceGroup { get; set; } + /// /// /// @@ -185,6 +197,7 @@ public sealed partial class PutJobsExposeResponse /// /// /// + /// /// /// /// @@ -193,6 +206,7 @@ public sealed partial class PutJobsExposeResponse /// /// Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs). /// + /// /// /// /// @@ -215,12 +229,14 @@ public PutJobsExposeResponse( global::System.Collections.Generic.IList? command, global::System.Collections.Generic.IList? arguments, global::HuggingFace.PutJobsExposeResponseArch? arch, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, global::HuggingFace.PutJobsExposeResponseDurations? durations, global::System.Collections.Generic.IList? volumes, global::HuggingFace.PutJobsExposeResponseExpose? expose, + global::HuggingFace.PutJobsExposeResponseResourceGroup? resourceGroup, global::HuggingFace.AnyOf? initiator, global::System.Collections.Generic.IList? secrets, global::System.Collections.Generic.Dictionary? labels, @@ -238,6 +254,7 @@ public PutJobsExposeResponse( this.Arch = arch; this.Flavor = flavor; this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; @@ -246,6 +263,7 @@ public PutJobsExposeResponse( this.Expose = expose; this.Type = type; this.Owner = owner ?? throw new global::System.ArgumentNullException(nameof(owner)); + this.ResourceGroup = resourceGroup; this.Initiator = initiator; this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); this.Secrets = secrets; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsExposeResponseResourceGroup.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsExposeResponseResourceGroup.Json.g.cs new file mode 100644 index 00000000..cd06af69 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsExposeResponseResourceGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PutJobsExposeResponseResourceGroup + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PutJobsExposeResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PutJobsExposeResponseResourceGroup), + jsonSerializerContext) as global::HuggingFace.PutJobsExposeResponseResourceGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PutJobsExposeResponseResourceGroup? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PutJobsExposeResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PutJobsExposeResponseResourceGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PutJobsExposeResponseResourceGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsExposeResponseResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsExposeResponseResourceGroup.g.cs new file mode 100644 index 00000000..0f03ada8 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsExposeResponseResourceGroup.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PutJobsExposeResponseResourceGroup + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numUsers")] + public double? NumUsers { 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 PutJobsExposeResponseResourceGroup( + string id, + string name, + double? numUsers) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NumUsers = numUsers; + } + + /// + /// Initializes a new instance of the class. + /// + public PutJobsExposeResponseResourceGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsLabelsResponse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsLabelsResponse.g.cs index 965967d4..bf49e1c1 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsLabelsResponse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsLabelsResponse.g.cs @@ -81,6 +81,12 @@ public sealed partial class PutJobsLabelsResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.PutJobsLabelsResponseCreatedBy CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -131,6 +137,12 @@ public sealed partial class PutJobsLabelsResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.PutJobsLabelsResponseOwner Owner { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroup")] + public global::HuggingFace.PutJobsLabelsResponseResourceGroup? ResourceGroup { get; set; } + /// /// /// @@ -185,6 +197,7 @@ public sealed partial class PutJobsLabelsResponse /// /// /// + /// /// /// /// @@ -193,6 +206,7 @@ public sealed partial class PutJobsLabelsResponse /// /// Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs). /// + /// /// /// /// @@ -215,12 +229,14 @@ public PutJobsLabelsResponse( global::System.Collections.Generic.IList? command, global::System.Collections.Generic.IList? arguments, global::HuggingFace.PutJobsLabelsResponseArch? arch, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, global::HuggingFace.PutJobsLabelsResponseDurations? durations, global::System.Collections.Generic.IList? volumes, global::HuggingFace.PutJobsLabelsResponseExpose? expose, + global::HuggingFace.PutJobsLabelsResponseResourceGroup? resourceGroup, global::HuggingFace.AnyOf? initiator, global::System.Collections.Generic.IList? secrets, global::System.Collections.Generic.Dictionary? labels, @@ -238,6 +254,7 @@ public PutJobsLabelsResponse( this.Arch = arch; this.Flavor = flavor; this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; @@ -246,6 +263,7 @@ public PutJobsLabelsResponse( this.Expose = expose; this.Type = type; this.Owner = owner ?? throw new global::System.ArgumentNullException(nameof(owner)); + this.ResourceGroup = resourceGroup; this.Initiator = initiator; this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); this.Secrets = secrets; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsLabelsResponseResourceGroup.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsLabelsResponseResourceGroup.Json.g.cs new file mode 100644 index 00000000..a8d80fc4 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsLabelsResponseResourceGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PutJobsLabelsResponseResourceGroup + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PutJobsLabelsResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PutJobsLabelsResponseResourceGroup), + jsonSerializerContext) as global::HuggingFace.PutJobsLabelsResponseResourceGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PutJobsLabelsResponseResourceGroup? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PutJobsLabelsResponseResourceGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PutJobsLabelsResponseResourceGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PutJobsLabelsResponseResourceGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsLabelsResponseResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsLabelsResponseResourceGroup.g.cs new file mode 100644 index 00000000..fa701ec7 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutJobsLabelsResponseResourceGroup.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PutJobsLabelsResponseResourceGroup + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numUsers")] + public double? NumUsers { 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 PutJobsLabelsResponseResourceGroup( + string id, + string name, + double? numUsers) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NumUsers = numUsers; + } + + /// + /// Initializes a new instance of the class. + /// + public PutJobsLabelsResponseResourceGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PutScheduledJobsLabelsResponseJobSpec.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutScheduledJobsLabelsResponseJobSpec.g.cs index e1d41733..631a6d2b 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.Models.PutScheduledJobsLabelsResponseJobSpec.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutScheduledJobsLabelsResponseJobSpec.g.cs @@ -60,6 +60,12 @@ public sealed partial class PutScheduledJobsLabelsResponseJobSpec [global::System.Text.Json.Serialization.JsonRequired] public required global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecFlavor Flavor { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroupId")] + public string? ResourceGroupId { get; set; } + /// /// /// @@ -96,6 +102,12 @@ public sealed partial class PutScheduledJobsLabelsResponseJobSpec [global::System.Text.Json.Serialization.JsonPropertyName("expose")] public global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecExpose? Expose { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceGroup")] + public global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecResourceGroup? ResourceGroup { get; set; } + /// /// /// @@ -131,6 +143,7 @@ public sealed partial class PutScheduledJobsLabelsResponseJobSpec /// /// /// + /// /// /// /// @@ -139,6 +152,7 @@ public sealed partial class PutScheduledJobsLabelsResponseJobSpec /// /// Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs). /// + /// /// /// /// @@ -154,12 +168,14 @@ public PutScheduledJobsLabelsResponseJobSpec( global::System.Collections.Generic.IList? command, global::System.Collections.Generic.IList? arguments, global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecArch? arch, + string? resourceGroupId, double? retry, global::System.DateTime? startedAt, global::System.DateTime? finishedAt, global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecDurations? durations, global::System.Collections.Generic.IList? volumes, global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecExpose? expose, + global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecResourceGroup? resourceGroup, global::System.Collections.Generic.IList? secrets, global::System.Collections.Generic.Dictionary? labels, global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecHfToken? hfToken) @@ -172,12 +188,14 @@ public PutScheduledJobsLabelsResponseJobSpec( this.Arguments = arguments; this.Arch = arch; this.Flavor = flavor; + this.ResourceGroupId = resourceGroupId; this.Retry = retry; this.StartedAt = startedAt; this.FinishedAt = finishedAt; this.Durations = durations; this.Volumes = volumes; this.Expose = expose; + this.ResourceGroup = resourceGroup; this.Secrets = secrets; this.Labels = labels; this.HfToken = hfToken; diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PutScheduledJobsLabelsResponseJobSpecResourceGroup.Json.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutScheduledJobsLabelsResponseJobSpecResourceGroup.Json.g.cs new file mode 100644 index 00000000..43a4df19 --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutScheduledJobsLabelsResponseJobSpecResourceGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace HuggingFace +{ + public sealed partial class PutScheduledJobsLabelsResponseJobSpecResourceGroup + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecResourceGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecResourceGroup), + jsonSerializerContext) as global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecResourceGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecResourceGroup? FromJson( + string json) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecResourceGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecResourceGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::HuggingFace.PutScheduledJobsLabelsResponseJobSpecResourceGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::HuggingFace.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/HuggingFace/Generated/HuggingFace.Models.PutScheduledJobsLabelsResponseJobSpecResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutScheduledJobsLabelsResponseJobSpecResourceGroup.g.cs new file mode 100644 index 00000000..0c759c7a --- /dev/null +++ b/src/libs/HuggingFace/Generated/HuggingFace.Models.PutScheduledJobsLabelsResponseJobSpecResourceGroup.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace HuggingFace +{ + /// + /// + /// + public sealed partial class PutScheduledJobsLabelsResponseJobSpecResourceGroup + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numUsers")] + public double? NumUsers { 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 PutScheduledJobsLabelsResponseJobSpecResourceGroup( + string id, + string name, + double? numUsers) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NumUsers = numUsers; + } + + /// + /// Initializes a new instance of the class. + /// + public PutScheduledJobsLabelsResponseJobSpecResourceGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameBillingUsageByInferenceSession.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameBillingUsageByInferenceSession.g.cs index e33cf91b..41f0ffdb 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameBillingUsageByInferenceSession.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameBillingUsageByInferenceSession.g.cs @@ -54,7 +54,7 @@ partial void ProcessGetOrganizationsByNameBillingUsageByInferenceSessionResponse /// Default Value: 2026-07-01T00:00:00.000Z /// /// - /// Default Value: 2026-07-24T15:05:43.485Z + /// Default Value: 2026-07-27T14:24:02.646Z /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -85,7 +85,7 @@ partial void ProcessGetOrganizationsByNameBillingUsageByInferenceSessionResponse /// Default Value: 2026-07-01T00:00:00.000Z /// /// - /// Default Value: 2026-07-24T15:05:43.485Z + /// Default Value: 2026-07-27T14:24:02.646Z /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameBillingUsageByResourceGroup.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameBillingUsageByResourceGroup.g.cs index 18da5539..4647ca7a 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameBillingUsageByResourceGroup.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameBillingUsageByResourceGroup.g.cs @@ -54,7 +54,7 @@ partial void ProcessGetOrganizationsByNameBillingUsageByResourceGroupResponseCon /// Default Value: 2026-07-01T00:00:00.000Z /// /// - /// Default Value: 2026-07-24T15:05:43.484Z + /// Default Value: 2026-07-27T14:24:02.645Z /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -85,7 +85,7 @@ partial void ProcessGetOrganizationsByNameBillingUsageByResourceGroupResponseCon /// Default Value: 2026-07-01T00:00:00.000Z /// /// - /// Default Value: 2026-07-24T15:05:43.484Z + /// Default Value: 2026-07-27T14:24:02.645Z /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/HuggingFace/Generated/HuggingFace.UsersClient.GetSettingsBillingUsageByInferenceSession.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.UsersClient.GetSettingsBillingUsageByInferenceSession.g.cs index c3014a1f..4a92d779 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.UsersClient.GetSettingsBillingUsageByInferenceSession.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.UsersClient.GetSettingsBillingUsageByInferenceSession.g.cs @@ -51,7 +51,7 @@ partial void ProcessGetSettingsBillingUsageByInferenceSessionResponseContent( /// Default Value: 2026-07-01T00:00:00.000Z /// /// - /// Default Value: 2026-07-24T15:05:43.485Z + /// Default Value: 2026-07-27T14:24:02.646Z /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -79,7 +79,7 @@ partial void ProcessGetSettingsBillingUsageByInferenceSessionResponseContent( /// Default Value: 2026-07-01T00:00:00.000Z /// /// - /// Default Value: 2026-07-24T15:05:43.485Z + /// Default Value: 2026-07-27T14:24:02.646Z /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/HuggingFace/openapi.json b/src/libs/HuggingFace/openapi.json index c3f4e63e..357eba6e 100644 --- a/src/libs/HuggingFace/openapi.json +++ b/src/libs/HuggingFace/openapi.json @@ -1 +1 @@ -{"openapi":"3.1.0","info":{"title":"Hub API Endpoints","version":"0.0.1","description":"We have open endpoints that you can use to retrieve information from the Hub as well as perform certain actions such as creating model, dataset or Space repos. We offer a wrapper Python client, [`huggingface_hub`](https://github.com/huggingface/huggingface_hub), and a JS client, [`huggingface.js`](https://github.com/huggingface/huggingface.js), that allow easy access to these endpoints. We also provide [webhooks](https://huggingface.co/docs/hub/webhooks) to receive real-time incremental info about repos. Enjoy!\n\nThe base URL for those endpoints below is `https://huggingface.co`. For example, to construct the `/api/models` call below, one can call the URL [https://huggingface.co/api/models](https://huggingface.co/api/models).\n\nIf you're an Agent, you might prefer the [markdown version OpenAPI spec](https://huggingface.co/.well-known/openapi.md).\n"},"servers":[{"url":"https://huggingface.co","description":"Hub"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"RepoId":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"examples":["deepseek-ai/DeepSeek-R1","black-forest-labs/FLUX.1-dev"],"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]}},"required":["name","type"],"additionalProperties":false,"id":"RepoId"},"Job":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"owner":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"null"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false}},"required":["id","createdAt","owner","environment","flavor","status","createdBy"],"additionalProperties":false,"id":"Job"}}},"security":[{"bearerAuth":[]}],"tags":[{"name":"auth","x-displayName":"Auth","description":"The following endpoints get information about your currently used user based on the passed token."},{"name":"models","x-displayName":"Models","description":"Get information from all models on the Hub."},{"name":"kernels","x-displayName":"Kernels","description":"Get information from all kernels on the Hub."},{"name":"datasets","x-displayName":"Datasets","description":"Get information from all datasets on the Hub."},{"name":"sql-console","x-displayName":"SQL Console","description":"Get information from SQL Console embeds from a dataset."},{"name":"discussions","x-displayName":"Discussions","description":"The following endpoints manage discussions."},{"name":"spaces","x-displayName":"Spaces","description":"Get information from all Spaces on the Hub."},{"name":"repo-search","x-displayName":"Repository Search","description":"The following endpoints help get information about models, datasets, and Spaces stored on the Hub."},{"name":"repos","x-displayName":"Repositories","description":"The following endpoints manage repository settings like creating and deleting a repository."},{"name":"users","x-displayName":"Users","description":"User accounts are the base authoring entity on the Hub"},{"name":"orgs","x-displayName":"Organizations","description":"The following endpoints let you interact with Hub Organizations and their members."},{"name":"service-accounts","x-displayName":"Service Accounts","description":"The following endpoints manage service accounts and their tokens."},{"name":"jobs","x-displayName":"Jobs","description":"The following endpoints manage jobs."},{"name":"resource-groups","x-displayName":"Resource groups","description":"The following endpoints manage resource groups. Resource groups are a Team or Enterprise feature."},{"name":"papers","x-displayName":"Paper pages","description":"The following endpoint gets information about papers."},{"name":"collections","x-displayName":"Collections","description":"Use Collections to group repositories from the Hub (Models, Datasets, Spaces and Papers) on a dedicated page.\n\nYou can learn more about it in the Collections [guide](https://huggingface.co/docs/hub/collections). Collections can also be managed using the Python client (see [guide](https://huggingface.co/docs/huggingface_hub/main/en/guides/collections))."},{"name":"buckets","x-displayName":"Buckets","description":"Git-free storage buckets for files, powered by Xet. Buckets provide simple file storage without git versioning."},{"name":"notifications","x-displayName":"Notifications","description":"The following endpoints fetch Hub notifications."},{"name":"inference-providers","x-displayName":"Inference Providers","description":"Run inference from one of our inference providers."},{"name":"inference-endpoints","x-displayName":"Inference Endpoints","description":"Manage inference endpoints."},{"name":"mcp","x-displayName":"MCP","description":"The following endpoints are for use with the MCP server."},{"name":"oauth","x-displayName":"OAuth","description":"The following endpoints are for use with OAuth."},{"name":"docs","x-displayName":"Documentation","description":"The following endpoints are for interacting with the Hub's documentation."},{"name":"webhooks","x-displayName":"Webhooks","description":"The following endpoints are for use with webhooks."},{"name":"scim","x-displayName":"SCIM","description":"Use the SCIM API to control and manage your hub Enterprise organization manage members' access.\n## Authentication\n\n- Must be organization owner\n- Use Access token with write permission on organization\n- Organization must be Enterprise Plus\n\n## Key Attribute Matching\n\n- Microsoft Entra ID (Azure AD)\n\t* SAML: `http://schemas.microsoft.com/identity/claims/objectidentifier`\n\t* SCIM: `externalId`\n- Other Identity Providers\n\t* SAML: `NameID` or `unique identifier`\n\t* SCIM: `externalId`\n\n## Supported SCIM User Attributes\n\n| Attribute | Description |\n|---|---|\n| `userName` | Username for the user |\n| `name.givenName` | First name |\n| `name.familyName` | Last name |\n| `emails` | Array of user emails; we don't support email types |\n| `externalId` | IDP provider's unique identifier |\n| `id` | Hugging Face SCIM endpoint identifier |\n| `active` | Boolean for provisioning status |\n\n"},{"name":"agentic-provisioning","x-displayName":"Agentic Provisioning","description":"The following endpoints are for use with Agentic Provisioning Protocol."},{"name":"agents","x-displayName":"Agents","description":"The following endpoints provide information about AI agents using the Hub."},{"name":"container","x-displayName":"Container Registry","description":"The following endpoints back the HuggingFace container registry, e.g. `docker login` token minting."}],"paths":{"/api/notifications":{"get":{"description":"List notifications for the user","summary":"List notifications","tags":["notifications"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"notifications":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"const":"paper"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"read":{"type":"boolean"},"discussionEventId":{"type":"string"},"paper":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"title":{"type":"string"}},"required":["_id","title"],"additionalProperties":false},"paperDiscussion":{"type":"object","properties":{"id":{"type":"string"},"participating":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatar":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatar","user"],"additionalProperties":false}},"paperId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}},"required":["id","participating","paperId"],"additionalProperties":false}},"required":["type","updatedAt","read","paper","paperDiscussion"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"repo"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"read":{"type":"boolean"},"discussionEventId":{"type":"string"},"repo":{"$ref":"#/components/schemas/RepoId"},"discussion":{"type":"object","properties":{"num":{"type":"number"},"title":{"type":"string"},"status":{"enum":["draft","open","closed","merged"]},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"isPullRequest":{"type":"boolean"},"participating":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatar":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatar","user"],"additionalProperties":false}}},"required":["num","title","status","id","isPullRequest","participating"],"additionalProperties":false}},"required":["type","updatedAt","read","repo","discussion"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"post"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"read":{"type":"boolean"},"discussionEventId":{"type":"string"},"post":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"authorName":{"type":"string"},"title":{"type":"string"},"participating":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatar":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatar","user"],"additionalProperties":false}}},"required":["id","slug","authorName","title","participating"],"additionalProperties":false}},"required":["type","updatedAt","read","post"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"community_blog"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"read":{"type":"boolean"},"discussionEventId":{"type":"string"},"blog":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"canonical":{"type":"boolean"},"authorName":{"type":"string"},"participating":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatar":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatar","user"],"additionalProperties":false}}},"required":["id","slug","title","canonical","participating"],"additionalProperties":false}},"required":["type","updatedAt","read","blog"],"additionalProperties":false}]}},"count":{"type":"object","properties":{"view":{"type":"number"},"unread":{"type":"number"},"all":{"type":"number"}},"required":["view","unread","all"],"additionalProperties":false},"start":{"type":"number"}},"required":["notifications","count","start"],"additionalProperties":false}}},"description":"The notifications for the user"}},"parameters":[{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"required":false},{"name":"readStatus","in":"query","schema":{"default":"all","enum":["all","unread"]},"required":false},{"name":"repoType","in":"query","schema":{"enum":["dataset","model","space","bucket","kernel"]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"postAuthor","in":"query","schema":{"type":"string"},"required":false},{"name":"paperId","in":"query","schema":{"type":"string"},"required":false},{"name":"articleId","in":"query","schema":{"type":"string"},"required":false},{"name":"mention","in":"query","schema":{"default":"all","enum":["all","participating","mentions"]},"required":false},{"name":"lastUpdate","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]},"delete":{"description":"Delete notifications, either by specifying discussionIds or by applying to all notifications with search parameters","summary":"Delete notifications","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"discussionIds":{"minItems":1,"type":"array","items":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}}}}}}},"parameters":[{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"required":false},{"name":"readStatus","in":"query","schema":{"default":"all","enum":["all","unread"]},"required":false},{"name":"repoType","in":"query","schema":{"enum":["dataset","model","space","bucket","kernel"]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"postAuthor","in":"query","schema":{"type":"string"},"required":false},{"name":"paperId","in":"query","schema":{"type":"string"},"required":false},{"name":"articleId","in":"query","schema":{"type":"string"},"required":false},{"name":"mention","in":"query","schema":{"default":"all","enum":["all","participating","mentions"]},"required":false},{"name":"lastUpdate","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"applyToAll","in":"query","schema":{"default":false},"required":false}]}},"/api/notifications/mark-as-read":{"post":{"description":"Mark discussions as read or unread. If `applyToAll` is true, all notifications for the user matching the search parameters will be marked as read or unread.","summary":"Change read status","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"discussionIds":{"default":[],"type":"array","items":{"type":"string"}},"read":{"default":true,"type":"boolean"}}}}}},"parameters":[{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"required":false},{"name":"readStatus","in":"query","schema":{"default":"all","enum":["all","unread"]},"required":false},{"name":"repoType","in":"query","schema":{"enum":["dataset","model","space","bucket","kernel"]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"postAuthor","in":"query","schema":{"type":"string"},"required":false},{"name":"paperId","in":"query","schema":{"type":"string"},"required":false},{"name":"articleId","in":"query","schema":{"type":"string"},"required":false},{"name":"mention","in":"query","schema":{"default":"all","enum":["all","participating","mentions"]},"required":false},{"name":"lastUpdate","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"applyToAll","in":"query","schema":{"default":false},"required":false}]}},"/api/settings/mcp":{"get":{"description":"Get the MCP tools for the current user","summary":"Get MCP tools","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"builtInTools":{"type":"array","items":{"type":"string"}},"spaceTools":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"emoji":{"type":"string"},"subdomain":{"type":"string"}},"required":["_id","name","emoji","subdomain"],"additionalProperties":false}}},"required":["builtInTools","spaceTools"],"additionalProperties":false}}},"description":"The MCP tools for the current user"}}}},"/api/settings/notifications":{"patch":{"description":"Update notification settings for the user","summary":"Update notification settings","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"notifications":{"type":"object","properties":{"announcements":{"type":"boolean"},"arxiv_paper_activity":{"type":"boolean"},"daily_papers_digest":{"type":"boolean"},"discussions_participating":{"type":"boolean"},"discussions_watched":{"type":"boolean"},"gated_user_access_request":{"type":"boolean"},"inference_endpoint_status":{"type":"boolean"},"launch_autonlp":{"type":"boolean"},"launch_spaces":{"type":"boolean"},"launch_prepaid_credits":{"type":"boolean"},"launch_training_cluster":{"type":"boolean"},"org_request":{"type":"boolean"},"org_suggestions":{"type":"boolean"},"org_verified_suggestions":{"type":"boolean"},"org_suggestions_to_create":{"type":"boolean"},"posts_participating":{"type":"boolean"},"user_follows":{"type":"boolean"},"secret_detected":{"type":"boolean"},"web_discussions_participating":{"type":"boolean"},"web_discussions_watched":{"type":"boolean"},"web_posts_participating":{"type":"boolean"},"product_updates_after":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"api_inference_sunset":{"type":"boolean"},"locked_out":{"type":"boolean"},"repo_release":{"type":"boolean"}}},"prepaidAmount":{"description":"To be provided when enabling launch_prepaid_credits","type":"string","maxLength":24}},"required":["notifications"]}}}}}},"/api/settings/watch":{"patch":{"description":"Update watch settings for the user. Get notified when discussions happen on your watched items.","summary":"Update watch settings","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"delete":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"enum":["org","user","repo"]}},"required":["id","type"]}},"add":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"enum":["org","user","repo"]}},"required":["id","type"]}}}}}}}}},"/api/settings/webhooks":{"get":{"summary":"List webhooks","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}}}},"description":"Webhooks"}}},"post":{"summary":"Create webhook","tags":["webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"watched":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"name":{"type":"string"}},"required":["type","name"]}},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"additionalProperties":{"type":"string"}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"arch":{"enum":["amd64","arm64"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"attempts":{"description":"Max number of attempts to make. For example, if you set this to 3, the job will be retried up to 2 times if it fails.","default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the job container.","minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}},"expose":{"description":"Ports to expose publicly through the jobs proxy. Each port is reachable at `https://--.`. Access requires a HF token with read access to the job's namespace, except for ports also listed in `portsPublic`.","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"]},"ssh":{"description":"When `enabled`, the job's container is reachable over SSH at `ssh @ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub.","type":"object","properties":{"enabled":{"default":false,"type":"boolean"}}}},"required":["flavor"]},"jobSourceId":{"type":"string"},"domains":{"minItems":1,"type":"array","items":{"enum":["repo","discussion"]}},"secret":{"type":"string","pattern":"^[\\x20-\\x7F]*$"}},"required":["watched","domains"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"webhook":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}},"required":["webhook"],"additionalProperties":false}}},"description":"Created webhook"}}}},"/api/settings/webhooks/{webhookId}":{"get":{"summary":"Get webhook","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"webhook":{"description":"Webhook","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}},"required":["webhook"],"additionalProperties":false}}},"description":"Webhook"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"summary":"Update webhook","tags":["webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"watched":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"name":{"type":"string"}},"required":["type","name"]}},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"additionalProperties":{"type":"string"}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"arch":{"enum":["amd64","arm64"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"attempts":{"description":"Max number of attempts to make. For example, if you set this to 3, the job will be retried up to 2 times if it fails.","default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the job container.","minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}},"expose":{"description":"Ports to expose publicly through the jobs proxy. Each port is reachable at `https://--.`. Access requires a HF token with read access to the job's namespace, except for ports also listed in `portsPublic`.","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"]},"ssh":{"description":"When `enabled`, the job's container is reachable over SSH at `ssh @ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub.","type":"object","properties":{"enabled":{"default":false,"type":"boolean"}}}},"required":["flavor"]},"jobSourceId":{"type":"string"},"domains":{"minItems":1,"type":"array","items":{"enum":["repo","discussion"]}},"secret":{"type":"string","pattern":"^[\\x20-\\x7F]*$"}},"required":["watched","domains"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"webhook":{"description":"Webhook","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}},"required":["webhook"],"additionalProperties":false}}},"description":"Updated webhook"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete webhook","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}},"description":"Deleted webhook"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/settings/webhooks/{webhookId}/{action}":{"post":{"summary":"Enable/disable webhook","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"webhook":{"description":"Webhook","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}},"required":["webhook"],"additionalProperties":false}}},"description":"Updated webhook"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","enum":["enable","disable"]}}]}},"/api/settings/webhooks/{webhookId}/replay/{logId}":{"post":{"summary":"Replay webhook log","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"description":"Replay HTTP status","type":"number"}},"required":["status"],"additionalProperties":false}}},"description":"Replay response"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}},{"name":"logId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/settings/papers/claim":{"post":{"summary":"Claim paper authorship","tags":["papers"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paperId":{"description":"ArXiv paper identifier being claimed.","type":"string","pattern":"^\\d{4}\\.\\d{4,5}$"},"claimAuthorId":{"description":"Author entry on the paper being claimed.","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"targetUserId":{"description":"HF user who should receive the claim.","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["paperId","claimAuthorId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean"},"claimedPaperId":{"type":"string"}},"required":["ok","claimedPaperId"],"additionalProperties":false}}},"description":"Paper authorship claim result, including the claimed paper id"}}}},"/api/settings/repositories":{"get":{"summary":"List user repositories","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"updatedAt":{"type":"string"},"visibility":{"enum":["public","private","protected"]},"storage":{"type":"number"},"storagePercent":{"type":"number"}},"required":["id","type","updatedAt","visibility","storage","storagePercent"],"additionalProperties":false}}}},"description":"Repositories with storage usage"}},"parameters":[{"name":"search","in":"query","schema":{"description":"Filter repositories by name (case-insensitive substring match)","type":"string"},"required":false},{"name":"type","in":"query","schema":{"description":"Filter by repository type","enum":["dataset","model","space","bucket","kernel"]},"required":false},{"name":"limit","in":"query","schema":{"description":"Max number of repositories to return","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"sort","in":"query","schema":{"description":"Sort field (default: storage)","default":"storage","enum":["storage","updatedAt"]},"required":false},{"name":"direction","in":"query","schema":{"description":"Sort direction (default: desc)","default":"desc","enum":["asc","desc"]},"required":false}]}},"/api/organizations/{name}/settings/tokens/revoke":{"post":{"description":"An org admin can revoke a token's access to the org. The token itself isn't deleted, it still works outside the org. Requires the raw token value. Enterprise only.","summary":"Revoke member token","tags":["orgs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","pattern":"^hf_.*"}},"required":["token"]}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/settings/repositories":{"get":{"summary":"List organization repositories","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"updatedAt":{"type":"string"},"visibility":{"enum":["public","private","protected"]},"storage":{"type":"number"},"storagePercent":{"type":"number"}},"required":["id","type","updatedAt","visibility","storage","storagePercent"],"additionalProperties":false}}}},"description":"Organization repositories with storage usage"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"search","in":"query","schema":{"description":"Filter repositories by name (case-insensitive substring match)","type":"string"},"required":false},{"name":"type","in":"query","schema":{"description":"Filter by repository type","enum":["dataset","model","space","bucket","kernel"]},"required":false},{"name":"limit","in":"query","schema":{"description":"Max number of repositories to return","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"sort","in":"query","schema":{"description":"Sort field (default: storage)","default":"storage","enum":["storage","updatedAt"]},"required":false},{"name":"direction","in":"query","schema":{"description":"Sort direction (default: desc)","default":"desc","enum":["asc","desc"]},"required":false}]}},"/api/organizations/{name}/audit-log/export":{"get":{"description":"Export the audit log events in JSON format for a Team or Enterprise organization. The export is limited to the last 100,000 events.","summary":"Export the audit log","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"type":{"enum":["billing.update_payment_method","billing.create_customer","billing.remove_payment_method","billing.aws_add","billing.aws_remove","billing.gcp_add","billing.gcp_remove","billing.marketplace_approve","billing.cancel_subscription","billing.renew_subscription","billing.start_subscription","billing.un_cancel_subscription","billing.update_subscription","billing.update_subscription_plan","collection.create","collection.delete","collection.update_resource_group","org.add_user","org.change_role","org.create","org.delete","org.restore","org.invite_user","org.invite.accept","org.invite.email","org.join.from_domain","org.join.automatic","org.leave","org.remove_user","org.rename","org.rotate_token","org.sso_login","org.sso_join","org.update_join_settings","org.update_settings","org.settings.regions","org.settings.profile","org.settings.resource_groups","org.settings.publisher_gating","org.settings.inference_providers","org.settings.inference_providers.keys.add","org.settings.inference_providers.keys.remove","org.settings.inference_providers.usage","org.settings.sso","org.settings.sso.enable","org.settings.sso.disable","org.settings.security.repo_visibility","org.settings.security.2fa.enable","org.settings.security.2fa.disable","org.settings.security.auto_join.enable","org.settings.security.auto_join.disable","org.settings.security.members_privacy.enable","org.settings.security.members_privacy.disable","org.settings.network","org.settings.network.ip_restriction.enable","org.settings.network.ip_restriction.disable","org.settings.network.auth_enforcement.enable","org.settings.network.auth_enforcement.disable","org.token_approval.enabled","org.token_approval.disabled","org.token_approval.authorization_request","org.token_approval.authorization_request.authorized","org.token_approval.authorization_request.revoked","org.token_approval.authorization_request.denied","org.custom_role.create","org.custom_role.update","org.custom_role.delete","repo.add_secrets","repo.remove_secrets","repo.add_secret","repo.update_secret","repo.remove_secret","repo.create","repo.delete","repo.disable","repo.removeDisable","repo.duplication","repo.delete_doi","repo.move","repo.update_resource_group","repo.update_settings","repo.add_variable","repo.update_variable","repo.remove_variable","repo.add_variables","repo.remove_variables","repo.delete_lfs_file","repo.add_trusted_publisher","repo.remove_trusted_publisher","spaces.add_storage","spaces.remove_storage","spaces.set_volumes","spaces.remove_volumes","spaces.update_hardware","spaces.update_sleep_time","resource_group.create","resource_group.add_users","resource_group.remove_users","resource_group.change_role","resource_group.settings","resource_group.delete","jobs.create","jobs.cancel","jobs.update_labels","jobs.update_expose","scheduled_job.create","scheduled_job.delete","scheduled_job.resume","scheduled_job.suspend","scheduled_job.run","scheduled_job.update_schedule","scheduled_job.update_labels","org.service_account.create","org.service_account.delete","org.service_account.token.create","org.service_account.token.delete","org.service_account.token.rotate","org.service_account.token.update","oauth.token"]},"data":{},"message":{"type":"string"},"ip":{"type":"string"},"location":{"type":"object","properties":{"formatted":{"type":"string"},"country":{"type":"string"},"city":{"type":"string"}},"required":["formatted"],"additionalProperties":false},"userAgent":{"type":"string"},"author":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","system"]},"deleted":{"type":"boolean"}},"required":["_id","user","avatarUrl","type"],"additionalProperties":false},"token":{"type":"object","properties":{"type":{"const":"access_token"},"id":{"type":"string"},"role":{"enum":["read","write","fineGrained"]},"last4":{"type":"string"},"deleted":{"type":"boolean"}},"required":["type","id","deleted"],"additionalProperties":false},"oauth":{"type":"object","properties":{"clientId":{"type":"string"},"name":{"type":"string"}},"required":["clientId"],"additionalProperties":false}},"required":["_id","createdAt","type","message","author"],"additionalProperties":false}}}},"description":"Array of audit log events","headers":{"Content-Disposition":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"The filename of the exported audit log"}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"q","in":"query","schema":{"examples":["author:huggingface","ip:127.0.0.0","type:repo.create"],"type":"string"},"required":false}]}},"/api/organizations/{name}/resource-groups/{resourceGroupId}":{"patch":{"description":"Update the name and/or description of a resource group.\n\nRequires the org to have a Team plan or higher.","summary":"Update resource group","tags":["resource-groups"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The updated resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Delete a resource group from the organization.\n\nRequires the org to have a Team plan or higher.","summary":"Delete resource group","tags":["resource-groups"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}},"description":"Whether the resource group was deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"description":"Retrieve a single resource group by id.\n\nRequires the org to have a Team plan or higher.","summary":"Get resource group","tags":["resource-groups"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/resource-groups/{resourceGroupId}/settings":{"post":{"description":"Configure the auto-join settings of a resource group.\n\nRequires the org to have a Team plan or higher.","summary":"Configure auto-join","tags":["resource-groups"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"anyOf":[{"const":true},{"const":"true"}]},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"]},{"type":"object","properties":{"enabled":{"anyOf":[{"const":false},{"const":"false"}]}},"required":["enabled"]}]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The updated resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/resource-groups/{resourceGroupId}/users":{"post":{"description":"Add one or more organization members to a resource group.\n\nRequires the org to have a Team plan or higher.","summary":"Add users","tags":["resource-groups"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"users":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["name","role"]},{"type":"object","properties":{"user":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["user","role"]}]}}},"required":["users"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The updated resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/resource-groups/{resourceGroupId}/users/{username}":{"delete":{"description":"Remove a user from a resource group, revoking the access granted through it.\n\nRequires the org to have a Team plan or higher.","summary":"Remove user","tags":["resource-groups"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The updated resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Change the role of a user in a resource group.\n\nRequires the org to have a Team plan or higher.","summary":"Change user role","tags":["resource-groups"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["role"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The updated resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/resource-groups":{"get":{"description":"Retrieve accessible resource groups. Get all resource groups the user has access to.\n\nRequires the org to have a Team plan or higher.","summary":"Get resource groups","tags":["resource-groups"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}}},"description":"Resource groups the user has access to"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"description":"Create a new resource group in the organization.\n\nRequires the org to have a Team plan or higher.","summary":"Create resource group","tags":["resource-groups"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":500},"users":{"default":[],"type":"array","items":{"type":"object","properties":{"user":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["user","role"]}},"repos":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/RepoId"}},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"]},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"]}]}},"required":["name"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The created resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/settings/network-security":{"get":{"description":"Get the network security settings for an organization.","summary":"Get network security settings","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enforceAuth":{"anyOf":[{"type":"boolean"},{"const":"pending"}]},"enforceIpRestriction":{"type":"boolean"},"highRateLimits":{"type":"boolean"},"ipRanges":{"type":"array","items":{"type":"string"}},"blockedContents":{"type":"array","items":{"type":"object","properties":{"resource":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"const":"*"}]},"scope":{"type":"string","minLength":1}},"required":["resource","scope"],"additionalProperties":false}},"allowedContents":{"type":"array","items":{"type":"object","properties":{"resource":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"const":"*"}]},"scope":{"type":"string","minLength":1}},"required":["resource","scope"],"additionalProperties":false}},"keepReposMetadataVisible":{"type":"boolean"}},"required":["enforceAuth","enforceIpRestriction","highRateLimits","ipRanges","blockedContents","allowedContents","keepReposMetadataVisible"],"additionalProperties":false}}},"description":"Network security settings"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Update the network security settings for an organization.","summary":"Update network security","tags":["orgs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enforceAuth":{"type":"boolean"},"enforceIpRestriction":{"type":"boolean"},"highRateLimits":{"type":"boolean"},"ipRanges":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string","format":"cidrv4","pattern":"^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$"},{"type":"string","format":"cidrv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$"}]}},"blockedContents":{"type":"array","items":{"type":"object","properties":{"resource":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"const":"*"}]},"scope":{"type":"string","minLength":1}},"required":["resource","scope"]}},"allowedContents":{"type":"array","items":{"type":"object","properties":{"resource":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"const":"*"}]},"scope":{"type":"string","minLength":1}},"required":["resource","scope"]}},"keepReposMetadataVisible":{"type":"boolean"}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enforceAuth":{"anyOf":[{"type":"boolean"},{"const":"pending"}]},"enforceIpRestriction":{"type":"boolean"},"highRateLimits":{"type":"boolean"},"ipRanges":{"type":"array","items":{"type":"string"}},"blockedContents":{"type":"array","items":{"type":"object","properties":{"resource":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"const":"*"}]},"scope":{"type":"string","minLength":1}},"required":["resource","scope"],"additionalProperties":false}},"allowedContents":{"type":"array","items":{"type":"object","properties":{"resource":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"const":"*"}]},"scope":{"type":"string","minLength":1}},"required":["resource","scope"],"additionalProperties":false}},"keepReposMetadataVisible":{"type":"boolean"}},"required":["enforceAuth","enforceIpRestriction","highRateLimits","ipRanges","blockedContents","allowedContents","keepReposMetadataVisible"],"additionalProperties":false}}},"description":"Updated network security settings"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/service-accounts":{"get":{"description":"List all service accounts for the organization.","summary":"List service accounts","tags":["service-accounts"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"user":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"description":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["_id","user","name","email","createdAt"],"additionalProperties":false}}}},"description":"List of service accounts"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"description":"Create a new service account for the organization.","summary":"Create service account","tags":["service-accounts"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"description":"Display name for the service account","type":"string","minLength":1,"maxLength":50},"description":{"description":"Optional description of what this service account is used for","type":"string","maxLength":500}},"required":["name"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string"},"user":{"type":"string"},"fullname":{"type":"string"},"description":{"type":"string"},"createdAt":{"type":"string"}},"required":["_id","user","fullname","createdAt"],"additionalProperties":false}}},"description":"Created service account"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/service-accounts/{serviceAccountId}":{"get":{"description":"Retrieve a single service account and its access token metadata. Token secrets are never returned.","summary":"Get service account","tags":["service-accounts"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"description":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"accessTokens":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"displayName":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"lastUsedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"expiration":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"role":{"enum":["read","write","fineGrained"]},"permissions":{"type":"array","items":{"enum":["repo.content.read","repo.write","inference.serverless.write","inference.endpoints.infer.write","inference.endpoints.write","org.read","org.write","collection.read","collection.write","resourceGroup.write","job.write","org.serviceAccounts.read","org.serviceAccounts.write"]}},"repoIds":{"type":"array","items":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}},"repoPermissions":{"type":"array","items":{"enum":["repo.content.read","repo.write"]}},"endpointPatterns":{"type":"array","items":{"type":"string"}},"last4":{"type":"string"}},"required":["_id","displayName","createdAt","role","permissions","repoIds","repoPermissions","endpointPatterns"],"additionalProperties":false}}},"required":["_id","user","name","email","createdAt"],"additionalProperties":false}}},"description":"Service account"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceAccountId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Delete a service account and all its tokens. This action cannot be undone.","summary":"Delete service account","tags":["service-accounts"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Service account deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceAccountId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/service-accounts/{serviceAccountId}/tokens":{"post":{"description":"Create a new access token for a service account. Store the token securely - it cannot be retrieved later.","summary":"Create service-account token","tags":["service-accounts"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"displayName":{"description":"Display name for the token","default":"API Token","type":"string","minLength":1,"maxLength":100},"permissions":{"description":"Org-wide permissions for this token","default":[],"type":"array","items":{"enum":["repo.content.read","repo.write","inference.serverless.write","inference.endpoints.infer.write","inference.endpoints.write","org.read","org.write","collection.read","collection.write","resourceGroup.write","job.write","org.serviceAccounts.read","org.serviceAccounts.write"]}},"repoIds":{"description":"Repositories to grant `repoPermissions` on. Can be repositories owned by the organization or any public repository. These override the org-wide permissions.","type":"array","items":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"repoPermissions":{"description":"Permissions granted on the selected `repoIds`.","default":[],"type":"array","items":{"enum":["repo.content.read","repo.write"]}},"endpointPatterns":{"description":"Inference endpoint name patterns (wildcards allowed, e.g. `gpt2-*`) restricting the token's org-wide Inference Endpoint permissions to matching endpoints. Empty means all endpoints.","default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":256,"pattern":"^[^.?()\\]\\\\[{}]+$"}}}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"description":"The access token - store this securely, it cannot be retrieved later","type":"string"},"tokenInfo":{"type":"object","properties":{"_id":{"type":"string"},"displayName":{"type":"string"},"createdAt":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"repoIds":{"type":"array","items":{"type":"string"}},"repoPermissions":{"type":"array","items":{"type":"string"}},"endpointPatterns":{"type":"array","items":{"type":"string"}}},"required":["_id","displayName","createdAt","repoIds","repoPermissions","endpointPatterns"],"additionalProperties":false}},"required":["token","tokenInfo"],"additionalProperties":false}}},"description":"Created token"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceAccountId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/service-accounts/{serviceAccountId}/tokens/{tokenId}":{"delete":{"description":"Delete an access token from a service account. This action cannot be undone.","summary":"Delete service-account token","tags":["service-accounts"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Token deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceAccountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tokenId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Update the name and/or permissions of an existing service account token.","summary":"Update service-account token","tags":["service-accounts"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"displayName":{"description":"New display name for the token","type":"string","minLength":1,"maxLength":100},"permissions":{"description":"Org-wide permissions for this token","type":"array","items":{"enum":["repo.content.read","repo.write","inference.serverless.write","inference.endpoints.infer.write","inference.endpoints.write","org.read","org.write","collection.read","collection.write","resourceGroup.write","job.write","org.serviceAccounts.read","org.serviceAccounts.write"]}},"repoIds":{"description":"Repositories to grant `repoPermissions` on. Can be repositories owned by the organization or any public repository. These override the org-wide permissions.","type":"array","items":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"repoPermissions":{"description":"Permissions granted on the selected `repoIds`.","type":"array","items":{"enum":["repo.content.read","repo.write"]}},"endpointPatterns":{"description":"Inference endpoint name patterns (wildcards allowed, e.g. `gpt2-*`) restricting the token's org-wide Inference Endpoint permissions to matching endpoints. Empty means all endpoints.","maxItems":20,"type":"array","items":{"type":"string","maxLength":256,"pattern":"^[^.?()\\]\\\\[{}]+$"}}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string"},"displayName":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"repoIds":{"type":"array","items":{"type":"string"}},"repoPermissions":{"type":"array","items":{"type":"string"}},"endpointPatterns":{"type":"array","items":{"type":"string"}}},"required":["_id","displayName","permissions","repoIds","repoPermissions","endpointPatterns"],"additionalProperties":false}}},"description":"Updated token info"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceAccountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tokenId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/service-accounts/{serviceAccountId}/tokens/{tokenId}/rotate":{"post":{"description":"Invalidate an existing token and generate a new one with the same permissions. The old token will stop working immediately.","summary":"Rotate service-account token","tags":["service-accounts"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"description":"The new access token","type":"string"},"tokenInfo":{"type":"object","properties":{"_id":{"type":"string"},"displayName":{"type":"string"},"createdAt":{"type":"string"},"last4":{"type":"string"}},"required":["_id","displayName","createdAt"],"additionalProperties":false}},"required":["token","tokenInfo"],"additionalProperties":false}}},"description":"Rotated token"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceAccountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tokenId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/avatar":{"get":{"description":"Retrieve organization avatar. This endpoint returns a JSON with the avatar URL for the organization.\n\nIf called with the `Sec-Fetch-Dest: image` header, it instead redirects to the avatar URL","summary":"Get avatar","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"avatarUrl":{"type":"string","format":"uri"}},"required":["avatarUrl"],"additionalProperties":false}}},"description":"Avatar URL"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"redirect","in":"query","schema":{"description":"Redirect to the avatar url instead of returning it"},"required":false}]}},"/api/organizations/{name}/members":{"get":{"description":"Get a list of members for the organization with optional search and pagination.","summary":"Get organization members","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"type":{"const":"user"},"isFollowing":{"type":"boolean"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"},"numUsers":{"type":"number"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["name","id","numUsers","role"],"additionalProperties":false}},"twoFaEnabled":{"type":"boolean"},"verifiedEmail":{"description":"The user's SSO email, if the org has a Team or Enterprise plan and the requester is an admin","anyOf":[{"type":"string"},{"type":"null"}]},"isExternalCollaborator":{"type":"boolean"}},"required":["avatarUrl","fullname","isPro","user","type","_id"],"additionalProperties":false}}}},"description":"Array of organization members","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"},"required":false},{"name":"email","in":"query","schema":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":500,"type":"integer","minimum":10,"maximum":10000},"required":false}]}},"/api/organizations/{name}/members/{username}/role":{"put":{"description":"Change the role of a member in the organization. Need a paid plan.","summary":"Change member role","tags":["orgs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["id","role"]}}},"required":["role"]}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/ServiceProviderConfig":{"get":{"description":"Returns the SCIM 2.0 Service Provider configuration, describing the server's capabilities and supported authentication schemes.","summary":"Get SCIM Configuration","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"documentationUri":{"type":"string"},"patch":{"type":"object","properties":{"supported":{"type":"boolean"}},"required":["supported"],"additionalProperties":false},"bulk":{"type":"object","properties":{"supported":{"type":"boolean"},"maxOperations":{"type":"number"},"maxPayloadSize":{"type":"number"}},"required":["supported","maxOperations","maxPayloadSize"],"additionalProperties":false},"filter":{"type":"object","properties":{"supported":{"type":"boolean"},"maxResults":{"type":"number"}},"required":["supported","maxResults"],"additionalProperties":false},"changePassword":{"type":"object","properties":{"supported":{"type":"boolean"}},"required":["supported"],"additionalProperties":false},"sort":{"type":"object","properties":{"supported":{"type":"boolean"}},"required":["supported"],"additionalProperties":false},"etag":{"type":"object","properties":{"supported":{"type":"boolean"}},"required":["supported"],"additionalProperties":false},"authenticationSchemes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"specUri":{"type":"string"},"documentationUri":{"type":"string"}},"required":["type","name","description","specUri","documentationUri"],"additionalProperties":false}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","documentationUri","patch","bulk","filter","changePassword","sort","etag","authenticationSchemes","meta"],"additionalProperties":false}}},"description":"SCIM Service Provider Configuration"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/ResourceTypes":{"get":{"description":"Returns the list of SCIM 2.0 resource types supported by this server (User and Group).","summary":"Get SCIM Resource Types","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"endpoint":{"type":"string"},"schema":{"type":"string"},"meta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","name","description","endpoint","schema","meta"],"additionalProperties":false}}}},"description":"SCIM Resource Types"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Schemas":{"get":{"description":"Returns the SCIM 2.0 schema definitions for User and Group resources.","summary":"Get SCIM Schemas","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"attributes":{"type":"array","items":{}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","name","description","attributes","meta"],"additionalProperties":false}}}},"description":"SCIM Schema Definitions"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Schemas/{schemaId}":{"get":{"description":"Returns a single SCIM 2.0 schema definition by its schema URI.","summary":"Get SCIM Schema by ID","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"attributes":{"type":"array","items":{}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","name","description","attributes","meta"],"additionalProperties":false}}},"description":"SCIM Schema Definition"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"schemaId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Users":{"get":{"description":"Retrieves a paginated list of all organization members who have been set up, including disabled users. If you provide the filter parameter, the resources for all matching members are returned.","summary":"List SCIM users","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:ListResponse"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"totalResults":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"itemsPerPage":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startIndex":{"examples":[1],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"required":["schemas","totalResults","itemsPerPage","startIndex","Resources"],"additionalProperties":false}}},"description":"SCIM User List"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startIndex","in":"query","schema":{"default":1,"type":"number","minimum":1},"required":false},{"name":"count","in":"query","schema":{"default":1000,"type":"number","minimum":1,"maximum":1000},"required":false},{"name":"filter","in":"query","schema":{"description":"You can filter results using the equals operator (eq) to find items that match specific values like `id`, `userName`, `emails`, and `externalId`. For example, to find a user named Bob, use this search: `?filter=userName%20eq%20Bob`","default":"","type":"string"},"required":false}]},"post":{"description":"Creates a new user in the organization. If the user already exists, only `active` field will be updated to provision the user.","summary":"Create a SCIM user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"type":"array","items":{"type":"string"}},"userName":{"description":"Username for the user, it should respect the hub rules: No consecutive dashes, No digit-only, Does not start or end with a dash, Only dashes, letters or numbers, Not 24 chars hex string","type":"string","minLength":2,"maxLength":42,"pattern":"^\\b(?!\\d+$)(?![0-9a-fA-F]{24}$)([a-zA-Z0-9]|-(?!-))+\\b$"},"emails":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["value"]}},"name":{"type":"object","properties":{"givenName":{"type":"string","minLength":1},"familyName":{"type":"string","minLength":1}},"required":["givenName","familyName"]},"active":{"default":true,"type":"boolean"},"externalId":{"description":"External ID for the user, it must be unique within the organization and is required for managed users","type":"string"}},"required":["schemas","userName","emails","name","externalId"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"SCIM User already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Users/{userId}":{"get":{"description":"Retrieves a SCIM user by their ID.","summary":"Get a SCIM user","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Update an attribute of a SCIM user. Modify individual attributes using Operations format. Just provide the changes you want to make using add, remove (only `externalId` is supported), or replace operations.\n If you set `active` to `false`, the user will be deprovisioned from the organization. \nComplicated SCIM `path` values are not supported like `emails[type eq 'work'].value`.","summary":"Update SCIM user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:PatchOp"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:api:messages:2.0:PatchOp"}},"Operations":{"type":"array","items":{"type":"object","properties":{"op":{"type":"string"},"path":{"enum":["active","externalId","userName","emails[type eq 'work'].value","name.givenName","name.familyName"]},"value":{}},"required":["op","value"]}}},"required":["schemas","Operations"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"put":{"description":"Updates a provisioned user, you'll need to provide all their information fresh - just like setting them up for the first time. Any details you don't include will be automatically removed, so make sure to include everything they need to keep their account running smoothly. Setting `active` to `false` will deprovision the user from the organization.","summary":"Update a SCIM user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"type":"array","items":{"type":"string"}},"userName":{"description":"Username for the user, it should respect the hub rules: No consecutive dashes, No digit-only, Does not start or end with a dash, Only dashes, letters or numbers, Not 24 chars hex string","type":"string","minLength":2,"maxLength":42,"pattern":"^\\b(?!\\d+$)(?![0-9a-fA-F]{24}$)([a-zA-Z0-9]|-(?!-))+\\b$"},"emails":{"maxItems":1,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["value"]}},"name":{"type":"object","properties":{"givenName":{"type":"string","minLength":1},"familyName":{"type":"string","minLength":1}},"required":["givenName","familyName"]},"active":{"default":true,"type":"boolean"},"externalId":{"type":"string"}},"required":["schemas","userName","emails","name","externalId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a SCIM user","tags":["scim"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Groups":{"get":{"description":"Get a list of SCIM groups. Retrieves a paginated list of all organization groups. If you provide the filter parameter, the resources for all matching groups are returned.","summary":"List SCIM groups","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:ListResponse"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"totalResults":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"itemsPerPage":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startIndex":{"examples":[1],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}},"required":["schemas","totalResults","itemsPerPage","startIndex","Resources"],"additionalProperties":false}}},"description":"SCIM Group List"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startIndex","in":"query","schema":{"default":1,"type":"number","minimum":1},"required":false},{"name":"count","in":"query","schema":{"default":1000,"type":"number","minimum":1,"maximum":1000},"required":false},{"name":"filter","in":"query","schema":{"default":"","type":"string"},"required":false},{"name":"excludedAttributes","in":"query","schema":{"const":"members"},"required":false}]},"post":{"description":"Creates a new group in the organization. The group name must be unique within the organization.","summary":"Create a SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"displayName":{"type":"string"},"externalId":{"type":"string"},"members":{"description":"Array of SCIM user ids","type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["value"]}}},"required":["displayName","members"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Group already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Groups/{groupId}":{"get":{"description":"Retrieves a group by its ID. If you provide the `excludedAttributes` parameter, the `members` attribute is not returned.","summary":"Get a SCIM group","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"excludedAttributes","in":"query","schema":{"const":"members"},"required":false}]},"put":{"description":"Updates a group by its ID. The group name must be unique within the organization.","summary":"Update a SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:schemas:core:2.0:Group"}},"displayName":{"type":"string"},"externalId":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["value"]}}},"required":["schemas","displayName","members"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Update attributes of a SCIM group. Updates individual attributes using Operations format. Just provide the changes you want to make using add, remove (only `members` is supported), or replace operations.","summary":"Update SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:PatchOp"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:api:messages:2.0:PatchOp"}},"Operations":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}}},"required":["op","path"]},{"type":"object","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{}},"required":["op","value"]}]}}},"required":["schemas","Operations"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a SCIM group","tags":["scim"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"SCIM Group deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim-provisioning/v2/Users":{"get":{"description":"Retrieves a paginated list of organization members and pending invitations managed by SCIM for non-managed organizations.","summary":"List SCIM-managed users","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:ListResponse"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"totalResults":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"itemsPerPage":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startIndex":{"examples":[1],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"required":["schemas","totalResults","itemsPerPage","startIndex","Resources"],"additionalProperties":false}}},"description":"SCIM User List"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startIndex","in":"query","schema":{"default":1,"type":"number","minimum":1},"required":false},{"name":"count","in":"query","schema":{"default":1000,"type":"number","minimum":1,"maximum":1000},"required":false},{"name":"filter","in":"query","schema":{"description":"You can filter results using the equals operator (eq) to find items that match specific values like `id`, `userName`, `emails`, and `externalId`. For example, to find a user named Bob, use this search: `?filter=userName%20eq%20Bob`","default":"","type":"string"},"required":false}]},"post":{"description":"Creates an invitation for a user to join the organization. The user must have an existing Hugging Face account.","summary":"Create SCIM invitation","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"type":"array","items":{"type":"string"}},"userName":{"description":"Username of the existing Hugging Face user","type":"string","minLength":2,"maxLength":42,"pattern":"^\\b(?!\\d+$)(?![0-9a-fA-F]{24}$)([a-zA-Z0-9]|-(?!-))+\\b$"},"emails":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["value"]}},"active":{"default":true,"type":"boolean"},"externalId":{"description":"SSO unique identifier (SAML nameid or OIDC sub claim) - required for SSO login","type":"string"}},"required":["schemas","userName","emails","externalId"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim-provisioning/v2/Users/{userId}":{"get":{"description":"Retrieves a SCIM user by their ID for non-managed organizations.","summary":"Get a SCIM provisioning user","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Modify individual attributes for non-managed organizations. Only the `active` field can be modified. User profile fields are not editable via SCIM.","summary":"Update SCIM user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:PatchOp"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:api:messages:2.0:PatchOp"}},"Operations":{"type":"array","items":{"type":"object","properties":{"op":{"description":"`remove` operation is not supported for non-managed organizations","enum":["add","remove","replace"]},"path":{"enum":["active","externalId","userName","emails[type eq 'work'].value","name.givenName","name.familyName"]},"value":{}},"required":["op","value"]}}},"required":["schemas","Operations"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"put":{"description":"Updates a provisioned user's invitation for non-managed organizations. User profile fields are not editable via SCIM for non-managed organizations.","summary":"Update a SCIM user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"type":"array","items":{"type":"string"}},"active":{"default":true,"type":"boolean"},"externalId":{"type":"string"}},"required":["schemas","externalId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Removes a user from the organization and deletes any pending invitations for non-managed organizations.","summary":"Delete SCIM user","tags":["scim"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User removed from organization"},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User not found or not provisioned"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim-provisioning/v2/Groups":{"get":{"description":"Get a list of SCIM groups. Retrieves a paginated list of all organization groups. If you provide the filter parameter, the resources for all matching groups are returned.","summary":"List SCIM groups","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:ListResponse"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"totalResults":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"itemsPerPage":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startIndex":{"examples":[1],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}},"required":["schemas","totalResults","itemsPerPage","startIndex","Resources"],"additionalProperties":false}}},"description":"SCIM Group List"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startIndex","in":"query","schema":{"default":1,"type":"number","minimum":1},"required":false},{"name":"count","in":"query","schema":{"default":1000,"type":"number","minimum":1,"maximum":1000},"required":false},{"name":"filter","in":"query","schema":{"default":"","type":"string"},"required":false},{"name":"excludedAttributes","in":"query","schema":{"const":"members"},"required":false}]},"post":{"description":"Creates a new group in the organization. The group name must be unique within the organization.","summary":"Create a SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"displayName":{"type":"string"},"externalId":{"type":"string"},"members":{"description":"Array of SCIM user ids","type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["value"]}}},"required":["displayName","members"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Group already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim-provisioning/v2/Groups/{groupId}":{"get":{"description":"Retrieves a group by its ID. If you provide the `excludedAttributes` parameter, the `members` attribute is not returned.","summary":"Get a SCIM group","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"excludedAttributes","in":"query","schema":{"const":"members"},"required":false}]},"put":{"description":"Updates a group by its ID. The group name must be unique within the organization.","summary":"Update a SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:schemas:core:2.0:Group"}},"displayName":{"type":"string"},"externalId":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["value"]}}},"required":["schemas","displayName","members"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Update attributes of a SCIM group. Updates individual attributes using Operations format. Just provide the changes you want to make using add, remove (only `members` is supported), or replace operations.","summary":"Update SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:PatchOp"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:api:messages:2.0:PatchOp"}},"Operations":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}}},"required":["op","path"]},{"type":"object","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{}},"required":["op","value"]}]}}},"required":["schemas","Operations"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a SCIM group","tags":["scim"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"SCIM Group deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/health":{"get":{"summary":"Get health","tags":["agentic-provisioning"]}},"/api/agentic/provisioning/services":{"get":{"summary":"Get services","tags":["agentic-provisioning"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"categories":{"minItems":1,"type":"array","items":{"enum":["compute","database","storage","cache","messaging","email","notification","auth","cdn","observability","analytics","payments","search","ci","feature_flags","ai"]}},"kind":{"enum":["deployable","plan"]},"pricing":{"anyOf":[{"type":"object","properties":{"type":{"const":"free"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"paid"},"paid":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"const":"freeform"},"freeform":{"type":"string","minLength":1},"stripe_price":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","freeform"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"stripe_price"},"stripe_price":{"type":"string","minLength":1},"freeform":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","stripe_price"],"additionalProperties":false}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"const":"freeform"},"freeform":{"type":"string","minLength":1},"stripe_price":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","freeform"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"stripe_price"},"stripe_price":{"type":"string","minLength":1},"freeform":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","stripe_price"],"additionalProperties":false}]}}]}},"required":["type","paid"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"component"},"component":{"type":"object","properties":{"options":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"const":"free"},"default":{"type":"boolean"},"parent_service_ids":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"paid"},"paid":{"anyOf":[{"type":"object","properties":{"type":{"const":"freeform"},"freeform":{"type":"string","minLength":1},"stripe_price":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","freeform"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"stripe_price"},"stripe_price":{"type":"string","minLength":1},"freeform":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","stripe_price"],"additionalProperties":false}]},"default":{"type":"boolean"},"parent_service_ids":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["type","paid"],"additionalProperties":false}]}}},"required":["options"],"additionalProperties":false}},"required":["type","component"],"additionalProperties":false}]},"group":{"type":"string","minLength":1},"scope":{"enum":["project","account"]},"kyc":{"type":"object","properties":{"required_fields":{"minItems":1,"type":"array","items":{"enum":["name","email","phone","country"]}}},"required":["required_fields"],"additionalProperties":false},"configuration_schema":{"type":"object","properties":{"type":{"const":"object"},"properties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","properties"],"additionalProperties":false},"allowed_updates":{"type":"array","items":{"type":"object","properties":{"service":{"type":"string","minLength":1},"direction":{"enum":["any","up","down"]}},"required":["service","direction"],"additionalProperties":false}},"constraints":{"type":"object","properties":{"count":{"type":"object","properties":{"at_most":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["at_most"],"additionalProperties":false},"mutual_exclusion":{"type":"object","properties":{"allowed_updates":{"const":true}},"required":["allowed_updates"],"additionalProperties":false}},"additionalProperties":false}},"required":["id","description","categories","pricing"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}},"description":"List of available Agentic Provisioning services"}}}},"/api/agentic/provisioning/account_requests":{"post":{"summary":"Create account request","tags":["agentic-provisioning"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":1},"object":{"const":"account_request"},"name":{"type":"string","minLength":1},"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"scopes":{"type":"array","items":{"type":"string","minLength":1}},"phone":{"type":"string","minLength":1},"country":{"type":"string","minLength":1},"kyc":{"type":"object","properties":{"verified_fields":{"type":"array","items":{"enum":["name","email","phone","country"]}}},"required":["verified_fields"]},"client_capabilities":{"type":"array","items":{"enum":["browser","email","sms"]}},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"confirmation_secret":{"type":"string","minLength":1},"expires_at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"orchestrator":{"type":"object","properties":{"type":{"const":"stripe"},"stripe":{"type":"object","properties":{"organization":{"type":"string","minLength":1},"account":{"type":"string","minLength":1}},"required":["account"]}},"required":["type","stripe"]}},"required":["id","object","email","scopes","client_capabilities","confirmation_secret","expires_at","orchestrator"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"type":{"const":"credentials"},"credentials":{"type":"object","properties":{"type":{"const":"bearer"},"bearer":{"type":"object","properties":{"access_token":{"type":"string"},"refresh_token":{"type":"string"},"expires_in":{"type":"number"},"account":{"type":"object","properties":{"id":{"type":"string"},"payment_credentials":{"const":"orchestrator"}},"required":["id","payment_credentials"],"additionalProperties":false}},"required":["access_token","refresh_token","expires_in","account"],"additionalProperties":false}},"required":["type","bearer"],"additionalProperties":false}},"required":["type","credentials"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"requires_auth"},"requires_auth":{"type":"object","properties":{"type":{"const":"redirect"},"redirect":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}},"required":["type","redirect"],"additionalProperties":false}},"required":["type","requires_auth"],"additionalProperties":false}]}}},"description":"Account request result"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["type","error"],"additionalProperties":false}}},"description":"Account request error"}}}},"/api/agentic/provisioning/resources":{"post":{"summary":"Provision a resource","tags":["agentic-provisioning"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"service_id":{"const":"platform"}},"required":["service_id"]},{"type":"object","properties":{"service_id":{"const":"bucket"},"configuration":{"type":"object","properties":{"name":{"description":"The name of the repository (defaults to a random name if not provided)","default":"gQtqXERB","type":"string","minLength":1},"visibility":{"default":"private","description":"The visibility of the repository (defaults to private)","enum":["public","private"]}}}},"required":["service_id","configuration"]},{"type":"object","properties":{"service_id":{"const":"free"},"configuration":{"type":"object","properties":{"rechargeAmountUsd":{"description":"Optional pay-as-you-go auto top-up ceiling, in USD. If set, usage above the plan's included quota is billed via the shared payment token (minimum $15). If omitted, the plan's included quota is a hard cap.","type":"number","minimum":15}}},"payment_credentials":{"type":"object","properties":{"type":{"const":"stripe_payment_token"},"stripe_payment_token":{"type":"string","minLength":1}},"required":["type","stripe_payment_token"]}},"required":["service_id"]},{"type":"object","properties":{"service_id":{"const":"pro"},"configuration":{"type":"object","properties":{"rechargeAmountUsd":{"description":"Optional pay-as-you-go auto top-up ceiling, in USD. If set, usage above the plan's included quota is billed via the shared payment token (minimum $15). If omitted, the plan's included quota is a hard cap.","type":"number","minimum":15}}},"payment_credentials":{"type":"object","properties":{"type":{"const":"stripe_payment_token"},"stripe_payment_token":{"type":"string","minLength":1}},"required":["type","stripe_payment_token"]}},"required":["service_id"]}]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"complete"},"id":{"type":"string"},"complete":{"type":"object","properties":{"access_configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["access_configuration"],"additionalProperties":false}},"required":["status","id","complete"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"pending"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"description":"Resource provisioning error","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Provisioned resource"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Resource provisioning error"}}}},"/api/agentic/provisioning/resources/{id}":{"get":{"summary":"Get a resource by ID","tags":["agentic-provisioning"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"complete"},"id":{"type":"string"},"complete":{"type":"object","properties":{"access_configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["status","id","complete"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"pending"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"removed"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Resource status"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Resource error"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/resources/{id}/update_service":{"post":{"summary":"Update resource service","tags":["agentic-provisioning"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"service_id":{"type":"string","minLength":1},"configuration":{"type":"object","properties":{"rechargeAmountUsd":{"description":"Set a number (USD, minimum $15) to enable or update pay-as-you-go auto top-up; pass null to disable; omit to leave it unchanged.","anyOf":[{"type":"number","minimum":15},{"type":"null"}]}}},"payment_credentials":{"type":"object","properties":{"type":{"const":"stripe_payment_token"},"stripe_payment_token":{"type":"string","minLength":1}},"required":["type"]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"complete"},"id":{"type":"string"},"complete":{"type":"object","properties":{"access_configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["status","id","complete"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"pending"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"description":"Service update error","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Service update result"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Service update error"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/resources/{id}/remove":{"post":{"summary":"Remove resource","tags":["agentic-provisioning"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"removed"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"description":"Resource removal not supported","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Resource removal result"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Resource removal error"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/resources/{id}/rotate_credentials":{"post":{"summary":"Rotate resource credentials","tags":["agentic-provisioning"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"complete"},"id":{"type":"string"},"complete":{"type":"object","properties":{"access_configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["status","id","complete"],"additionalProperties":false},{"description":"Credential rotation not supported","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Rotated credentials"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Credential rotation error"},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Resource not found"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Token was modified concurrently"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/deep_links":{"post":{"summary":"Create deep link","tags":["agentic-provisioning"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"purpose":{"const":"dashboard"}},"required":["purpose"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"purpose":{"type":"string"},"url":{"type":"string"},"expires_at":{"type":"string"}},"required":["purpose","url","expires_at"],"additionalProperties":false}}},"description":"Deep link URL"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"description":"Deep link error"}}}},"/oauth/register":{"post":{"summary":"Register a new OAuth app","tags":["oauth"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"redirect_uris":{"type":"array","items":{"type":"string","format":"uri"}},"client_name":{"type":"string"},"client_uri":{"type":"string","format":"uri"},"logo_uri":{"type":"string","format":"uri"},"scope":{"type":"string"},"contacts":{"type":"array","items":{"type":"string"}},"token_endpoint_auth_method":{"enum":["client_secret_basic","none","client_secret_post"]},"software_id":{"type":"string"},"software_version":{"type":"string"}}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"},"client_id_issued_at":{"type":"number"},"client_secret_expires_at":{"type":"number"},"redirect_uris":{"type":"array","items":{"type":"string","format":"uri"}},"client_name":{"type":"string"},"client_uri":{"type":"string","format":"uri"},"logo_uri":{"type":"string","format":"uri"},"scope":{"type":"string"},"grant_types":{"readOnly":true,"type":"array","items":{"enum":["urn:ietf:params:oauth:grant-type:token-exchange","urn:ietf:params:oauth:grant-type:device_code","authorization_code","refresh_token"]}},"contacts":{"type":"array","items":{"type":"string"}},"token_endpoint_auth_method":{"enum":["client_secret_basic","none","client_secret_post"]},"software_id":{"type":"string"},"software_version":{"type":"string"}},"required":["client_id","client_id_issued_at","client_secret_expires_at","redirect_uris","scope","grant_types"],"additionalProperties":false}}},"description":"Details of the OAuth app that was created"}}}},"/oauth/device":{"post":{"summary":"Initiate device authorization","tags":["oauth"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Initiate device authorization as per https://datatracker.ietf.org/doc/html/rfc8628#section-3.1","type":"object","properties":{"client_id":{"type":"string"},"scope":{"type":"string"}},"required":["client_id"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"device_code":{"type":"string"},"user_code":{"type":"string"},"verification_uri":{"type":"string"},"expires_in":{"type":"number"}},"required":["device_code","user_code","verification_uri","expires_in"],"additionalProperties":false}}},"description":"Details of the device code that was created as per https://datatracker.ietf.org/doc/html/rfc8628#section-3.2"}}}},"/oauth/userinfo":{"get":{"description":"Get information about the user. Only available through oauth access tokens. Information varies depending on the scope of the oauth app and what permissions the user granted to the oauth app.","summary":"Get user info","tags":["oauth"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sub":{"description":"ID of the user","type":"string"},"name":{"description":"Full name of the user","type":"string"},"preferred_username":{"description":"Username of the user","type":"string"},"profile":{"description":"Profile URL of the user","type":"string","format":"uri"},"picture":{"description":"Avatar URL of the user","type":"string","format":"uri"},"website":{"description":"Website of the user","type":"string","format":"uri"},"email":{"description":"Email of the user","type":"string"},"email_verified":{"description":"Whether the email is verified","type":"boolean"},"isPro":{"description":"Whether the user is a Pro user","type":"boolean"},"canPay":{"description":"Whether the user has access to billing. You should check `canPay` first.","type":"boolean"},"billingMode":{"description":"Whether the user is on prepaid or postpaid billing","enum":["prepaid","postpaid"]},"orgs":{"type":"array","items":{"type":"object","properties":{"sub":{"description":"ID of the organization","type":"string"},"name":{"description":"Name of the organization","type":"string"},"picture":{"description":"Avatar URL of the organization","type":"string","format":"uri"},"preferred_username":{"description":"Username of the organization","type":"string"},"plan":{"enum":["team","enterprise","plus","academia"]},"canPay":{"type":"boolean"},"billingMode":{"enum":["prepaid","postpaid"]},"roleInOrg":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"securityRestrictions":{"description":"Current security restrictions for accessing data in this organization with current authentication method","type":"array","items":{"enum":["mfa","token-policy","token-revoked","sso","ip"]}},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"sub":{"type":"string"},"name":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["sub","name","role"],"additionalProperties":false}}},"required":["sub","name","picture","preferred_username"],"additionalProperties":false}}},"required":["sub","isPro","orgs"],"additionalProperties":false}}},"description":"User info"}}},"post":{"description":"Get information about the user. Only available through oauth access tokens. Information varies depending on the scope of the oauth app and what permissions the user granted to the oauth app.","summary":"Get user info","tags":["oauth"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sub":{"description":"ID of the user","type":"string"},"name":{"description":"Full name of the user","type":"string"},"preferred_username":{"description":"Username of the user","type":"string"},"profile":{"description":"Profile URL of the user","type":"string","format":"uri"},"picture":{"description":"Avatar URL of the user","type":"string","format":"uri"},"website":{"description":"Website of the user","type":"string","format":"uri"},"email":{"description":"Email of the user","type":"string"},"email_verified":{"description":"Whether the email is verified","type":"boolean"},"isPro":{"description":"Whether the user is a Pro user","type":"boolean"},"canPay":{"description":"Whether the user has access to billing. You should check `canPay` first.","type":"boolean"},"billingMode":{"description":"Whether the user is on prepaid or postpaid billing","enum":["prepaid","postpaid"]},"orgs":{"type":"array","items":{"type":"object","properties":{"sub":{"description":"ID of the organization","type":"string"},"name":{"description":"Name of the organization","type":"string"},"picture":{"description":"Avatar URL of the organization","type":"string","format":"uri"},"preferred_username":{"description":"Username of the organization","type":"string"},"plan":{"enum":["team","enterprise","plus","academia"]},"canPay":{"type":"boolean"},"billingMode":{"enum":["prepaid","postpaid"]},"roleInOrg":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"securityRestrictions":{"description":"Current security restrictions for accessing data in this organization with current authentication method","type":"array","items":{"enum":["mfa","token-policy","token-revoked","sso","ip"]}},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"sub":{"type":"string"},"name":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["sub","name","role"],"additionalProperties":false}}},"required":["sub","name","picture","preferred_username"],"additionalProperties":false}}},"required":["sub","isPro","orgs"],"additionalProperties":false}}},"description":"User info"}}}},"/api/registry/token":{"get":{"description":"Mints a short-lived EdDSA JWT for the HuggingFace container registry, verifiable via the JWK at `/api/keys/jwt`.","summary":"Registry token","tags":["container"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"description":"EdDSA JWT signed by the moon JWT key, carrying `access[]`.","type":"string"},"access_token":{"description":"Identical to `token` \u2014 Docker Distribution v2 accepts either field.","type":"string"},"expires_in":{"description":"JWT lifetime in seconds.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"issued_at":{"description":"ISO-8601 timestamp at which the JWT was minted.","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["token","access_token","expires_in","issued_at"],"additionalProperties":false}}},"description":"Docker Distribution v2 token response \u2014 see https://distribution.github.io/distribution/spec/auth/jwt/"}},"parameters":[{"name":"service","in":"query","schema":{"description":"Registry service identifier \u2014 placed in the JWT `aud` claim.","type":"string","minLength":1},"required":true},{"name":"scope","in":"query","schema":{"description":"Docker Distribution scope(s), e.g. `repository:org/img:push,pull`. May be repeated.","anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"required":false}]}},"/api/blog/{slug}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/blog/{slug}/comment/{commentId}/reply":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/blog/{namespace}/{slug}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/blog/{namespace}/{slug}/comment/{commentId}/reply":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/docs":{"get":{"description":"Get list of available documentation","summary":"List docs","tags":["docs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"category":{"type":"string"}},"required":["id","url"],"additionalProperties":false}}}},"description":"List of available documentation"}}}},"/api/docs/search":{"get":{"description":"Search any Hugging Face documentation","summary":"Search docs","tags":["docs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_vectors":{"type":"object","properties":{"embeddings":{"type":"array","items":{"type":"number"}}},"required":["embeddings"],"additionalProperties":false},"heading1":{"type":"string"},"text":{"type":"string"},"product":{"type":"string"},"source_page_url":{"type":"string"},"source_page_title":{"type":"string"},"heading2":{"type":"string"},"heading3":{"type":"string"},"heading4":{"type":"string"},"heading5":{"type":"string"}},"required":["id","_vectors","heading1","text","product","source_page_url","source_page_title"],"additionalProperties":false}}}},"description":"Search results"}},"parameters":[{"name":"q","in":"query","schema":{"type":"string","maxLength":250},"required":true},{"name":"product","in":"query","schema":{"enum":["hub","transformers","diffusers","datasets","gradio","trackio","smolagents","huggingface_hub","cli","huggingface.js","transformers.js","inference-providers","inference-endpoints","peft","accelerate","optimum","optimum-habana","optimum-neuron","optimum-intel","optimum-executorch","optimum-tpu","tokenizers","llm-course","context-course","robotics-course","mcp-course","smol-course","agents-course","deep-rl-course","computer-vision-course","evaluate","tasks","dataset-viewer","trl","openenv","simulate","sagemaker","timm","safetensors","tgi","setfit","audio-course","lerobot","reachy_mini","autotrain","tei","bitsandbytes","cookbook","sentence_transformers","ml-games-course","diffusion-course","ml-for-3d-course","chat-ui","leaderboards","lighteval","argilla","distilabel","microsoft-azure","kernels","google-cloud","xet"]},"required":false},{"name":"limit","in":"query","schema":{"default":10,"type":"integer","minimum":1,"maximum":25},"required":false}]}},"/api/docs/search/full-text":{"get":{"description":"Full-text search across Hugging Face documentation","summary":"Full-text search docs","tags":["docs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hits":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"hierarchy_lvl0":{"type":"string"},"hierarchy_lvl1":{"type":"string"},"hierarchy_lvl2":{"type":"string"},"hierarchy_lvl3":{"type":"string"},"hierarchy_lvl4":{"type":"string"},"hierarchy_lvl5":{"type":"string"},"hierarchy_lvl6":{"type":"string"},"content":{"type":"string"},"anchor":{"type":"string"},"_formatted":{"type":"object","properties":{"url":{"type":"string"},"hierarchy_lvl0":{"type":"string"},"hierarchy_lvl1":{"type":"string"},"hierarchy_lvl2":{"type":"string"},"hierarchy_lvl3":{"type":"string"},"hierarchy_lvl4":{"type":"string"},"hierarchy_lvl5":{"type":"string"},"hierarchy_lvl6":{"type":"string"},"content":{"type":"string"},"anchor":{"type":"string"}},"additionalProperties":false}},"required":["url"],"additionalProperties":false}}},"required":["hits"],"additionalProperties":false}}},"description":"Full-text search results"}},"parameters":[{"name":"q","in":"query","schema":{"type":"string","maxLength":250},"required":true},{"name":"limit","in":"query","schema":{"default":9,"type":"integer","minimum":1,"maximum":100},"required":false},{"name":"domain","in":"query","schema":{"type":"string","maxLength":100},"required":false}]}},"/api/whoami-v2":{"get":{"description":"Get information about the user and auth method used","summary":"Get user info","tags":["auth"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"auth":{"type":"object","properties":{"type":{"type":"string"},"accessToken":{"type":"object","properties":{"displayName":{"type":"string"},"role":{"enum":["read","write","god","fineGrained"]},"fineGrained":{"type":"object","properties":{"scoped":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","collection","org","user","resource-group","oauth-app"]}},"required":["_id","type"],"additionalProperties":false},"permissions":{"type":"array","items":{"type":"string"}}},"required":["entity","permissions"],"additionalProperties":false}},"global":{"type":"array","items":{"enum":["discussion.write","post.write"]}},"canReadGatedRepos":{"description":"Allow access to all public gated repos to which the user has access","type":"boolean"}},"required":["scoped"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["displayName","role","createdAt"],"additionalProperties":false},"expiresAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resource":{"type":"object","properties":{"sub":{"type":"string"}},"required":["sub"],"additionalProperties":false}},"required":["type"],"additionalProperties":false},"type":{"const":"user"},"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"canPay":{"type":"boolean"},"billingMode":{"enum":["prepaid","postpaid"]},"avatarUrl":{"type":"string"},"periodEnd":{"anyOf":[{"type":"number"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"isPro":{"type":"boolean"},"orgs":{"type":"array","items":{"type":"object","properties":{"type":{"const":"org"},"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"canPay":{"type":"boolean"},"billingMode":{"enum":["prepaid","postpaid"]},"avatarUrl":{"type":"string"},"periodEnd":{"anyOf":[{"type":"number"},{"type":"null"}]},"plan":{"enum":["team","enterprise","plus","academia"]},"roleInOrg":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"securityRestrictions":{"description":"Current security restrictions for accessing data in this organization with current authentication method","type":"array","items":{"enum":["mfa","token-policy","token-revoked","sso","ip"]}},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["id","name","role"],"additionalProperties":false}}},"required":["type","id","name","fullname","avatarUrl"],"additionalProperties":false}}},"required":["auth","type","id","name","fullname","avatarUrl","isPro","orgs"],"additionalProperties":false}]}}},"description":"Auth information"}}}},"/api/organizations/{name}/billing/usage":{"get":{"description":"Get org usage for a given period","summary":"Get org usage","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"usage":{"type":"object","propertyNames":{"anyOf":[{"enum":["Endpoints","Spaces"]},{"not":{}}]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"entityId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"product":{"enum":["hf/repository-storage","jobs/cpu-basic/minutes","jobs/cpu-upgrade/minutes","jobs/cpu-performance/minutes","jobs/cpu-xl/minutes","jobs/sprx8/minutes","jobs/t4-small/minutes","jobs/t4-medium/minutes","jobs/a10g-small/minutes","jobs/a10g-large/minutes","jobs/a10g-largex2/minutes","jobs/a10g-largex4/minutes","jobs/a100-large/minutes","jobs/a100x4/minutes","jobs/a100x8/minutes","jobs/h100/minutes","jobs/h100x8/minutes","jobs/h200/minutes","jobs/h200x2/minutes","jobs/h200x4/minutes","jobs/h200x8/minutes","jobs/rtx-pro-6000/minutes","jobs/rtx-pro-6000x2/minutes","jobs/rtx-pro-6000x4/minutes","jobs/rtx-pro-6000x8/minutes","jobs/l4x1/minutes","jobs/l4x4/minutes","jobs/l40sx1/minutes","jobs/l40sx4/minutes","jobs/l40sx8/minutes","jobs/v5e-2x4/minutes","jobs/v5e-2x2/minutes","jobs/v5e-1x1/minutes","jobs/inf2x6/minutes","spaces/zero-a10g/minutes","spaces/cpu-basic/minutes","spaces/cpu-upgrade/minutes","spaces/cpu-performance/minutes","spaces/cpu-xl/minutes","spaces/sprx8/minutes","spaces/t4-small/minutes","spaces/t4-medium/minutes","spaces/a10g-small/minutes","spaces/a10g-large/minutes","spaces/a10g-largex2/minutes","spaces/a10g-largex4/minutes","spaces/a100-large/minutes","spaces/a100x4/minutes","spaces/a100x8/minutes","spaces/h100/minutes","spaces/h100x8/minutes","spaces/h200/minutes","spaces/h200x2/minutes","spaces/h200x4/minutes","spaces/h200x8/minutes","spaces/rtx-pro-6000/minutes","spaces/rtx-pro-6000x2/minutes","spaces/rtx-pro-6000x4/minutes","spaces/rtx-pro-6000x8/minutes","spaces/l4x1/minutes","spaces/l4x4/minutes","spaces/l40sx1/minutes","spaces/l40sx4/minutes","spaces/l40sx8/minutes","spaces/inf2x6/minutes","spaces/v5e-2x4/minutes","spaces/v5e-2x2/minutes","spaces/v5e-1x1/minutes","spaces/storage-small/minutes","spaces/storage-medium/minutes","spaces/storage-large/minutes","endpoints/azure/intel-xeon/x1","endpoints/azure/intel-xeon/x2","endpoints/azure/intel-xeon/x4","endpoints/azure/intel-xeon/x8","endpoints/aws/intel-icl/x1","endpoints/aws/intel-icl/x2","endpoints/aws/intel-icl/x4","endpoints/aws/intel-icl/x8","endpoints/aws/intel-spr/x1","endpoints/aws/intel-spr/x2","endpoints/aws/intel-spr/x4","endpoints/aws/intel-spr/x8","endpoints/aws/intel-spr/x16","endpoints/aws/intel-spr-overcommitted/x16","endpoints/aws/nvidia-t4/x1","endpoints/aws/nvidia-t4/x4","endpoints/aws/nvidia-l4/x1","endpoints/aws/nvidia-l4/x4","endpoints/aws/nvidia-l40s/x1","endpoints/aws/nvidia-l40s/x4","endpoints/aws/nvidia-l40s/x8","endpoints/aws/nvidia-a10g/x1","endpoints/aws/nvidia-a10g/x4","endpoints/aws/nvidia-a100/x1","endpoints/aws/nvidia-a100/x2","endpoints/aws/nvidia-a100/x4","endpoints/aws/nvidia-a100/x8","endpoints/aws/nvidia-h100/x1","endpoints/aws/nvidia-h100/x2","endpoints/aws/nvidia-h100/x4","endpoints/aws/nvidia-h100/x8","endpoints/aws/nvidia-h200/x1","endpoints/aws/nvidia-h200/x2","endpoints/aws/nvidia-h200/x4","endpoints/aws/nvidia-h200/x8","endpoints/aws/nvidia-b200/x1","endpoints/aws/nvidia-b200/x2","endpoints/aws/nvidia-b200/x4","endpoints/aws/nvidia-b200/x8","endpoints/aws/nvidia-rtx-pro-6000/x1","endpoints/aws/nvidia-rtx-pro-6000/x2","endpoints/aws/nvidia-rtx-pro-6000/x4","endpoints/aws/nvidia-rtx-pro-6000/x8","endpoints/aws/inf2/x1","endpoints/aws/inf2/x1-large","endpoints/aws/inf2/x12","endpoints/gcp/intel-spr/x1","endpoints/gcp/intel-spr/x2","endpoints/gcp/intel-spr/x4","endpoints/gcp/intel-spr/x8","endpoints/gcp/nvidia-t4/x1","endpoints/gcp/nvidia-l4/x1","endpoints/gcp/nvidia-l4/x4","endpoints/gcp/nvidia-a100/x1","endpoints/gcp/nvidia-a100/x2","endpoints/gcp/nvidia-a100/x4","endpoints/gcp/nvidia-a100/x8","endpoints/gcp/nvidia-h100/x1","endpoints/gcp/nvidia-h100/x2","endpoints/gcp/nvidia-h100/x4","endpoints/gcp/nvidia-h100/x8","endpoints/gcp/v5e/1x1","endpoints/gcp/v5e/2x2","endpoints/gcp/v5e/2x4"]},"quantity":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"stoppedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},{"type":"null"}]},"freeGrant":{"type":"boolean"},"productPrettyName":{"type":"string"},"unitLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalCostMicroUSD":{"type":"number"},"unitCostMicroUSD":{"type":"number"},"active":{"type":"boolean"}},"required":["entityId","label","product","quantity","productPrettyName","unitLabel","totalCostMicroUSD","unitCostMicroUSD","active"],"additionalProperties":false}}},"period":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"entityId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"entityType":{"enum":["user","org"]},"entityName":{"type":"string"},"periodStart":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"invoice":{"anyOf":[{"type":"object","properties":{"type":{"const":"stripe"},"id":{"type":"string"},"amountDueCents":{"type":"number"},"totalCents":{"type":"number"},"status":{"enum":["draft","open","paid","uncollectible","void","unpaid"]},"dueDate":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"collectionMethod":{"enum":["charge_automatically","send_invoice"]}},"required":["type","id","amountDueCents","totalCents","status","dueDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"no-invoice"},"id":{"const":"no-invoice"}},"required":["type","id"],"additionalProperties":false}]},"charges":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"dueDate":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"usageAtChargeTimeMicroUSD":{"type":"number"},"amountCents":{"type":"number"},"billedThrough":{"enum":["stripe-payment-intent"]},"paymentIntentId":{"type":"string"},"paymentIntentStatus":{"enum":["canceled","processing","requires_action","requires_capture","requires_confirmation","requires_payment_method","succeeded"]}},"required":["_id","createdAt","dueDate","usageAtChargeTimeMicroUSD","amountCents","billedThrough","paymentIntentId","paymentIntentStatus"],"additionalProperties":false}}},"required":["_id","entityId","entityType","entityName","periodStart","periodEnd"],"additionalProperties":false}},"required":["usage","period"],"additionalProperties":false}}},"description":"Usage and period information"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"periodId","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"required":false}]}},"/api/organizations/{name}/billing/usage-v2":{"get":{"description":"Get org usage for a given period","summary":"Get org usage","tags":["orgs"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"required":true},{"name":"endDate","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"required":true}]}},"/api/organizations/{name}/billing/usage-by-resource-group":{"get":{"description":"Get org usage breakdown per resource group, returned as a time-series of monthly periods. Window is [startDate, endDate], defaults to the current month. Both dates must fall within the last 12 months. Storage values are the peak observed within each monthly period.","summary":"Get resource group usage","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"currency":{"type":"string"},"periods":{"type":"array","items":{"type":"object","properties":{"period":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"storage":{"type":"object","properties":{"privateGB":{"type":"number"},"publicGB":{"type":"number"}},"required":["privateGB","publicGB"],"additionalProperties":false},"inference":{"type":"object","properties":{"requestCount":{"type":"number"},"costCents":{"type":"number"}},"required":["requestCount","costCents"],"additionalProperties":false},"compute":{"type":"object","properties":{"spaces":{"type":"object","properties":{"uptimeSec":{"type":"number"},"costCents":{"type":"number"}},"required":["uptimeSec","costCents"],"additionalProperties":false},"endpoints":{"type":"object","properties":{"uptimeSec":{"type":"number"},"costCents":{"type":"number"}},"required":["uptimeSec","costCents"],"additionalProperties":false},"jobs":{"type":"object","properties":{"uptimeSec":{"type":"number"},"costCents":{"type":"number"}},"required":["uptimeSec","costCents"],"additionalProperties":false}},"required":["spaces","endpoints","jobs"],"additionalProperties":false}},"required":["id","name","storage","inference","compute"],"additionalProperties":false}}},"required":["period","resourceGroups"],"additionalProperties":false}}},"required":["currency","periods"],"additionalProperties":false}}},"description":"Org usage breakdown per resource group, indexed by monthly period"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","schema":{"default":"2026-07-01T00:00:00.000Z","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"endDate","in":"query","schema":{"default":"2026-07-24T15:05:43.484Z","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]}},"/api/organizations/{name}/billing/usage-by-inference-session":{"get":{"description":"Get org inference-provider usage broken down per session id, as a time-series of monthly periods.","summary":"Get session inference usage","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"currency":{"type":"string"},"periods":{"type":"array","items":{"type":"object","properties":{"period":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"sessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"requestCount":{"type":"number"},"costCents":{"type":"number"}},"required":["id","requestCount","costCents"],"additionalProperties":false}}},"required":["period","sessions"],"additionalProperties":false}}},"required":["currency","periods"],"additionalProperties":false}}},"description":"Inference-provider usage breakdown per session, indexed by monthly period"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","schema":{"default":"2026-07-01T00:00:00.000Z","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"endDate","in":"query","schema":{"default":"2026-07-24T15:05:43.485Z","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]}},"/api/organizations/{name}/billing/usage/live":{"get":{"description":"Get live usage for org","summary":"Stream usage","tags":["orgs"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/settings/billing/usage":{"get":{"description":"Get user usage for a given period","summary":"Get user usage","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"usage":{"type":"object","propertyNames":{"anyOf":[{"enum":["Endpoints","Spaces"]},{"not":{}}]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"entityId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"product":{"enum":["hf/repository-storage","jobs/cpu-basic/minutes","jobs/cpu-upgrade/minutes","jobs/cpu-performance/minutes","jobs/cpu-xl/minutes","jobs/sprx8/minutes","jobs/t4-small/minutes","jobs/t4-medium/minutes","jobs/a10g-small/minutes","jobs/a10g-large/minutes","jobs/a10g-largex2/minutes","jobs/a10g-largex4/minutes","jobs/a100-large/minutes","jobs/a100x4/minutes","jobs/a100x8/minutes","jobs/h100/minutes","jobs/h100x8/minutes","jobs/h200/minutes","jobs/h200x2/minutes","jobs/h200x4/minutes","jobs/h200x8/minutes","jobs/rtx-pro-6000/minutes","jobs/rtx-pro-6000x2/minutes","jobs/rtx-pro-6000x4/minutes","jobs/rtx-pro-6000x8/minutes","jobs/l4x1/minutes","jobs/l4x4/minutes","jobs/l40sx1/minutes","jobs/l40sx4/minutes","jobs/l40sx8/minutes","jobs/v5e-2x4/minutes","jobs/v5e-2x2/minutes","jobs/v5e-1x1/minutes","jobs/inf2x6/minutes","spaces/zero-a10g/minutes","spaces/cpu-basic/minutes","spaces/cpu-upgrade/minutes","spaces/cpu-performance/minutes","spaces/cpu-xl/minutes","spaces/sprx8/minutes","spaces/t4-small/minutes","spaces/t4-medium/minutes","spaces/a10g-small/minutes","spaces/a10g-large/minutes","spaces/a10g-largex2/minutes","spaces/a10g-largex4/minutes","spaces/a100-large/minutes","spaces/a100x4/minutes","spaces/a100x8/minutes","spaces/h100/minutes","spaces/h100x8/minutes","spaces/h200/minutes","spaces/h200x2/minutes","spaces/h200x4/minutes","spaces/h200x8/minutes","spaces/rtx-pro-6000/minutes","spaces/rtx-pro-6000x2/minutes","spaces/rtx-pro-6000x4/minutes","spaces/rtx-pro-6000x8/minutes","spaces/l4x1/minutes","spaces/l4x4/minutes","spaces/l40sx1/minutes","spaces/l40sx4/minutes","spaces/l40sx8/minutes","spaces/inf2x6/minutes","spaces/v5e-2x4/minutes","spaces/v5e-2x2/minutes","spaces/v5e-1x1/minutes","spaces/storage-small/minutes","spaces/storage-medium/minutes","spaces/storage-large/minutes","endpoints/azure/intel-xeon/x1","endpoints/azure/intel-xeon/x2","endpoints/azure/intel-xeon/x4","endpoints/azure/intel-xeon/x8","endpoints/aws/intel-icl/x1","endpoints/aws/intel-icl/x2","endpoints/aws/intel-icl/x4","endpoints/aws/intel-icl/x8","endpoints/aws/intel-spr/x1","endpoints/aws/intel-spr/x2","endpoints/aws/intel-spr/x4","endpoints/aws/intel-spr/x8","endpoints/aws/intel-spr/x16","endpoints/aws/intel-spr-overcommitted/x16","endpoints/aws/nvidia-t4/x1","endpoints/aws/nvidia-t4/x4","endpoints/aws/nvidia-l4/x1","endpoints/aws/nvidia-l4/x4","endpoints/aws/nvidia-l40s/x1","endpoints/aws/nvidia-l40s/x4","endpoints/aws/nvidia-l40s/x8","endpoints/aws/nvidia-a10g/x1","endpoints/aws/nvidia-a10g/x4","endpoints/aws/nvidia-a100/x1","endpoints/aws/nvidia-a100/x2","endpoints/aws/nvidia-a100/x4","endpoints/aws/nvidia-a100/x8","endpoints/aws/nvidia-h100/x1","endpoints/aws/nvidia-h100/x2","endpoints/aws/nvidia-h100/x4","endpoints/aws/nvidia-h100/x8","endpoints/aws/nvidia-h200/x1","endpoints/aws/nvidia-h200/x2","endpoints/aws/nvidia-h200/x4","endpoints/aws/nvidia-h200/x8","endpoints/aws/nvidia-b200/x1","endpoints/aws/nvidia-b200/x2","endpoints/aws/nvidia-b200/x4","endpoints/aws/nvidia-b200/x8","endpoints/aws/nvidia-rtx-pro-6000/x1","endpoints/aws/nvidia-rtx-pro-6000/x2","endpoints/aws/nvidia-rtx-pro-6000/x4","endpoints/aws/nvidia-rtx-pro-6000/x8","endpoints/aws/inf2/x1","endpoints/aws/inf2/x1-large","endpoints/aws/inf2/x12","endpoints/gcp/intel-spr/x1","endpoints/gcp/intel-spr/x2","endpoints/gcp/intel-spr/x4","endpoints/gcp/intel-spr/x8","endpoints/gcp/nvidia-t4/x1","endpoints/gcp/nvidia-l4/x1","endpoints/gcp/nvidia-l4/x4","endpoints/gcp/nvidia-a100/x1","endpoints/gcp/nvidia-a100/x2","endpoints/gcp/nvidia-a100/x4","endpoints/gcp/nvidia-a100/x8","endpoints/gcp/nvidia-h100/x1","endpoints/gcp/nvidia-h100/x2","endpoints/gcp/nvidia-h100/x4","endpoints/gcp/nvidia-h100/x8","endpoints/gcp/v5e/1x1","endpoints/gcp/v5e/2x2","endpoints/gcp/v5e/2x4"]},"quantity":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"stoppedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},{"type":"null"}]},"freeGrant":{"type":"boolean"},"productPrettyName":{"type":"string"},"unitLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalCostMicroUSD":{"type":"number"},"unitCostMicroUSD":{"type":"number"},"active":{"type":"boolean"}},"required":["entityId","label","product","quantity","productPrettyName","unitLabel","totalCostMicroUSD","unitCostMicroUSD","active"],"additionalProperties":false}}},"period":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"entityId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"entityType":{"enum":["user","org"]},"entityName":{"type":"string"},"periodStart":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"invoice":{"anyOf":[{"type":"object","properties":{"type":{"const":"stripe"},"id":{"type":"string"},"amountDueCents":{"type":"number"},"totalCents":{"type":"number"},"status":{"enum":["draft","open","paid","uncollectible","void","unpaid"]},"dueDate":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"collectionMethod":{"enum":["charge_automatically","send_invoice"]}},"required":["type","id","amountDueCents","totalCents","status","dueDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"no-invoice"},"id":{"const":"no-invoice"}},"required":["type","id"],"additionalProperties":false}]},"charges":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"dueDate":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"usageAtChargeTimeMicroUSD":{"type":"number"},"amountCents":{"type":"number"},"billedThrough":{"enum":["stripe-payment-intent"]},"paymentIntentId":{"type":"string"},"paymentIntentStatus":{"enum":["canceled","processing","requires_action","requires_capture","requires_confirmation","requires_payment_method","succeeded"]}},"required":["_id","createdAt","dueDate","usageAtChargeTimeMicroUSD","amountCents","billedThrough","paymentIntentId","paymentIntentStatus"],"additionalProperties":false}}},"required":["_id","entityId","entityType","entityName","periodStart","periodEnd"],"additionalProperties":false}},"required":["usage","period"],"additionalProperties":false}}},"description":"Usage and period information"}},"parameters":[{"name":"periodId","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"required":false}]}},"/api/settings/billing/usage-v2":{"get":{"description":"Get user usage for a given period","summary":"Get user usage","tags":["users"],"parameters":[{"name":"startDate","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"required":true},{"name":"endDate","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"required":true}]}},"/api/settings/billing/usage-by-inference-session":{"get":{"description":"Get user inference-provider usage broken down per session id","summary":"Get session inference usage","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"currency":{"type":"string"},"periods":{"type":"array","items":{"type":"object","properties":{"period":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"sessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"requestCount":{"type":"number"},"costCents":{"type":"number"}},"required":["id","requestCount","costCents"],"additionalProperties":false}}},"required":["period","sessions"],"additionalProperties":false}}},"required":["currency","periods"],"additionalProperties":false}}},"description":"Inference-provider usage breakdown per session, indexed by monthly period"}},"parameters":[{"name":"startDate","in":"query","schema":{"default":"2026-07-01T00:00:00.000Z","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"endDate","in":"query","schema":{"default":"2026-07-24T15:05:43.485Z","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]}},"/api/settings/billing/usage/jobs":{"get":{"description":"Get user Jobs usage for current subscription period","summary":"Get jobs usage","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"usage":{"type":"object","properties":{"usedMicroUsd":{"type":"number"},"totalMinutes":{"type":"number"},"periodStart":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"jobDetails":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string"},"hardwareFlavor":{"type":"string"},"totalMinutes":{"type":"number"},"totalCostMicroUsd":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"completedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["jobId","hardwareFlavor","totalMinutes","totalCostMicroUsd","startedAt"],"additionalProperties":false}}},"required":["usedMicroUsd","totalMinutes","periodStart","periodEnd","jobDetails"],"additionalProperties":false},"hasAccess":{"type":"boolean"}},"required":["usage","hasAccess"],"additionalProperties":false}}},"description":"Jobs usage information"}}}},"/api/settings/billing/usage/live":{"get":{"description":"Get live usage for user","summary":"Stream usage","tags":["users"]}},"/api/users/{username}/billing/usage/live":{"get":{"description":"Get live usage for user","summary":"Stream usage","tags":["users"],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/users/{username}/overview":{"get":{"summary":"User overview","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numBuckets":{"type":"number"},"numKernels":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"numFollowingOrgs":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"primaryOrgAvatarUrl":{"type":"string"},"type":{"const":"user"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["_id","avatarUrl","fullname","isPro","user","type","createdAt"],"additionalProperties":false}}},"description":"User overview data including their organizations, stats, and creation date"}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/users/{username}/socials":{"get":{"description":"Get a user's social media handles","summary":"Get social handles","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string"},"user":{"type":"string"},"socialHandles":{"type":"object","properties":{"twitter":{"type":"string"},"github":{"type":"string"},"linkedin":{"type":"string"},"bluesky":{"type":"string"}},"additionalProperties":false}},"required":["_id","user","socialHandles"],"additionalProperties":false}}},"description":"The user's social media handles. Only includes handles that the user has provided."}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/users/{username}/avatar":{"get":{"description":"This endpoint returns a JSON with the avatar URL for the user.\n\nIf called with the `Sec-Fetch-Dest: image` header, it instead redirects to the avatar URL","summary":"Retrieve user avatar","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"avatarUrl":{"type":"string","format":"uri"}},"required":["avatarUrl"],"additionalProperties":false}}},"description":"Avatar URL"}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"redirect","in":"query","schema":{"description":"Redirect to the avatar url instead of returning it"},"required":false}]}},"/api/users/{username}/likes":{"get":{"description":"List public repos liked by a user","summary":"List user likes","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"repo":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]}},"required":["name","type"],"additionalProperties":false}},"required":["createdAt","repo"],"additionalProperties":false}}}},"description":"Likes on public repositories","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link to the next page"}}}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"description":"Max number of likes to return","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"cursor","in":"query","schema":{"description":"Cursor for pagination. Always check to see if more results, a page can be empty or not filled.","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"required":false}]}},"/api/organizations/{name}/socials":{"get":{"description":"Get an organization's social media handles","summary":"Get social handles","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string"},"org":{"type":"string"},"socialHandles":{"type":"object","properties":{"twitter":{"type":"string"},"github":{"type":"string"},"linkedin":{"type":"string"}},"additionalProperties":false}},"required":["_id","org","socialHandles"],"additionalProperties":false}}},"description":"The organization's social media handles. Only includes handles that the organization has provided."}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/avatars/{namespace}":{"get":{"description":"Display the avatar for any user or organization. This endpoint redirects to the avatar URL for either a user or an organization","summary":"Get avatar","tags":["users","orgs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/inference-endpoints/{namespace}/auth-check/{perms}":{"post":{"description":"Check if the user has access to the inference endpoint","summary":"Check access","tags":["inference-endpoints"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hasHfLevelAccess":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false},"resourceGroupId":{"type":"string"}},"required":["namespace","user"],"additionalProperties":false}}},"description":"The user has access to the inference endpoint/resource"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hasHfLevelAccess":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false},"patternRestrictions":{"type":"array","items":{"type":"string"}},"resourceGroupId":{"type":"string"}},"required":["namespace","user","patternRestrictions"],"additionalProperties":false}}},"description":"The user has access to the resource, but the endpoint name is restricted by pattern restrictions. Can only be returned if `endpoint` is not provided in the path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"perms","in":"path","required":true,"schema":{"type":"string","enum":["read","write","infer"]}},{"name":"own","in":"query","schema":{},"required":false},{"name":"is_creator","in":"query","schema":{},"required":false},{"name":"creator_id","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"incur_cost","in":"query","schema":{},"required":false},{"name":"resource_group_id","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"repo_id","in":"query","schema":{"type":"string"},"required":false}]}},"/api/inference-endpoints/{namespace}/{endpoint}/auth-check/{perms}":{"post":{"description":"Check if the user has access to the inference endpoint","summary":"Check access","tags":["inference-endpoints"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hasHfLevelAccess":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false},"resourceGroupId":{"type":"string"}},"required":["namespace","user"],"additionalProperties":false}}},"description":"The user has access to the inference endpoint/resource"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hasHfLevelAccess":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false},"patternRestrictions":{"type":"array","items":{"type":"string"}},"resourceGroupId":{"type":"string"}},"required":["namespace","user","patternRestrictions"],"additionalProperties":false}}},"description":"The user has access to the resource, but the endpoint name is restricted by pattern restrictions. Can only be returned if `endpoint` is not provided in the path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"endpoint","in":"path","required":true,"schema":{"type":"string"}},{"name":"perms","in":"path","required":true,"schema":{"type":"string","enum":["read","write","infer"]}},{"name":"own","in":"query","schema":{},"required":false},{"name":"is_creator","in":"query","schema":{},"required":false},{"name":"creator_id","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"incur_cost","in":"query","schema":{},"required":false},{"name":"resource_group_id","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"repo_id","in":"query","schema":{"type":"string"},"required":false}]}},"/api/jobs/{namespace}/auth-check/{perms}":{"post":{"description":"Check if the user has access to jobs in the namespace","summary":"Check access","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"required":["namespace","user"],"additionalProperties":false}}},"description":"The user has access to jobs in the namespace"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"perms","in":"path","required":true,"schema":{"type":"string","enum":["read","write"]}}]}},"/api/jobs/{namespace}/{jobId}/auth-check/{perms}":{"post":{"description":"Check if the user has access to jobs in the namespace","summary":"Check access","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"required":["namespace","user"],"additionalProperties":false}}},"description":"The user has access to jobs in the namespace"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"perms","in":"path","required":true,"schema":{"type":"string","enum":["read","write"]}}]}},"/api/models/{namespace}/{repo}/treesize/{rev}/{path}":{"get":{"description":"Get the total size of a repository at a given revision, optionally under a specific subpath. Returns the total size in bytes of all files under the specified path (recursively). If a file is stored via Xet/LFS, the LFS file size is used.","summary":"Get folder size","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"description":"The normalized path of the subtree, starting with a slash","type":"string"},"size":{"description":"Total size in bytes of all files under the subtree","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["path","size"],"additionalProperties":false}}},"description":"Total size of a repository at a given revision, under the given path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/spaces/{namespace}/{repo}/treesize/{rev}/{path}":{"get":{"description":"Get the total size of a repository at a given revision, optionally under a specific subpath. Returns the total size in bytes of all files under the specified path (recursively). If a file is stored via Xet/LFS, the LFS file size is used.","summary":"Get folder size","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"description":"The normalized path of the subtree, starting with a slash","type":"string"},"size":{"description":"Total size in bytes of all files under the subtree","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["path","size"],"additionalProperties":false}}},"description":"Total size of a repository at a given revision, under the given path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/datasets/{namespace}/{repo}/treesize/{rev}/{path}":{"get":{"description":"Get the total size of a repository at a given revision, optionally under a specific subpath. Returns the total size in bytes of all files under the specified path (recursively). If a file is stored via Xet/LFS, the LFS file size is used.","summary":"Get folder size","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"description":"The normalized path of the subtree, starting with a slash","type":"string"},"size":{"description":"Total size in bytes of all files under the subtree","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["path","size"],"additionalProperties":false}}},"description":"Total size of a repository at a given revision, under the given path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/models/{namespace}/{repo}/lfs-files":{"get":{"description":"List Xet/LFS files for a repo","summary":"List Large files","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"pusher":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false},"ref":{"type":"string"},"fileOid":{"type":"string"},"oid":{"type":"string"},"size":{"type":"number"},"pushedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"filename":{"description":"Potential filename of the LFS file","type":"string"},"xetHash":{"type":"string"}},"required":["fileOid","oid","size","pushedAt"],"additionalProperties":false}}}},"description":"List of Xet/LFS files for the repo","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":1,"maximum":1000},"required":false},{"name":"xet","in":"query","schema":{},"required":false}]}},"/api/datasets/{namespace}/{repo}/lfs-files":{"get":{"description":"List Xet/LFS files for a repo","summary":"List Large files","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"pusher":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false},"ref":{"type":"string"},"fileOid":{"type":"string"},"oid":{"type":"string"},"size":{"type":"number"},"pushedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"filename":{"description":"Potential filename of the LFS file","type":"string"},"xetHash":{"type":"string"}},"required":["fileOid","oid","size","pushedAt"],"additionalProperties":false}}}},"description":"List of Xet/LFS files for the repo","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":1,"maximum":1000},"required":false},{"name":"xet","in":"query","schema":{},"required":false}]}},"/api/spaces/{namespace}/{repo}/lfs-files":{"get":{"description":"List Xet/LFS files for a repo","summary":"List Large files","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"pusher":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false},"ref":{"type":"string"},"fileOid":{"type":"string"},"oid":{"type":"string"},"size":{"type":"number"},"pushedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"filename":{"description":"Potential filename of the LFS file","type":"string"},"xetHash":{"type":"string"}},"required":["fileOid","oid","size","pushedAt"],"additionalProperties":false}}}},"description":"List of Xet/LFS files for the repo","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":1,"maximum":1000},"required":false},{"name":"xet","in":"query","schema":{},"required":false}]}},"/api/models/{namespace}/{repo}/lfs-files/batch":{"post":{"description":"Delete Xet/LFS files in batch","summary":"Delete Large files","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deletions":{"type":"object","properties":{"sha":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string"}},"rewriteHistory":{"default":true,"type":"boolean"}},"required":["sha"]}},"required":["deletions"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/lfs-files/batch":{"post":{"description":"Delete Xet/LFS files in batch","summary":"Delete Large files","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deletions":{"type":"object","properties":{"sha":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string"}},"rewriteHistory":{"default":true,"type":"boolean"}},"required":["sha"]}},"required":["deletions"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/lfs-files/batch":{"post":{"description":"Delete Xet/LFS files in batch","summary":"Delete Large files","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deletions":{"type":"object","properties":{"sha":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string"}},"rewriteHistory":{"default":true,"type":"boolean"}},"required":["sha"]}},"required":["deletions"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/lfs-files/{sha}":{"delete":{"description":"Delete a Xet/LFS file","summary":"Delete Large file","tags":["models"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha","in":"path","required":true,"schema":{"type":"string"}},{"name":"rewriteHistory","in":"query","schema":{"default":true},"required":false}]}},"/api/datasets/{namespace}/{repo}/lfs-files/{sha}":{"delete":{"description":"Delete a Xet/LFS file","summary":"Delete Large file","tags":["datasets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha","in":"path","required":true,"schema":{"type":"string"}},{"name":"rewriteHistory","in":"query","schema":{"default":true},"required":false}]}},"/api/spaces/{namespace}/{repo}/lfs-files/{sha}":{"delete":{"description":"Delete a Xet/LFS file","summary":"Delete Large file","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha","in":"path","required":true,"schema":{"type":"string"}},{"name":"rewriteHistory","in":"query","schema":{"default":true},"required":false}]}},"/api/models/{namespace}/{repo}/lfs-files/duplicate":{"post":{"description":"Duplicate xet-stored 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.","summary":"Duplicate xet files","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"target":{"type":"object","properties":{"type":{"enum":["dataset","model","space","kernel"]},"name":{"type":"string","minLength":1}},"required":["type","name"]},"files":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"xetHash":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"filename":{"type":"string","maxLength":1000}},"required":["xetHash","sha256"]}}},"required":["target","files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/kernels/{namespace}/{repo}/lfs-files/duplicate":{"post":{"description":"Duplicate xet-stored 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.","summary":"Duplicate xet files","tags":["kernels"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"target":{"type":"object","properties":{"type":{"enum":["dataset","model","space","kernel"]},"name":{"type":"string","minLength":1}},"required":["type","name"]},"files":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"xetHash":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"filename":{"type":"string","maxLength":1000}},"required":["xetHash","sha256"]}}},"required":["target","files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/lfs-files/duplicate":{"post":{"description":"Duplicate xet-stored 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.","summary":"Duplicate xet files","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"target":{"type":"object","properties":{"type":{"enum":["dataset","model","space","kernel"]},"name":{"type":"string","minLength":1}},"required":["type","name"]},"files":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"xetHash":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"filename":{"type":"string","maxLength":1000}},"required":["xetHash","sha256"]}}},"required":["target","files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/lfs-files/duplicate":{"post":{"description":"Duplicate xet-stored 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.","summary":"Duplicate xet files","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"target":{"type":"object","properties":{"type":{"enum":["dataset","model","space","kernel"]},"name":{"type":"string","minLength":1}},"required":["type","name"]},"files":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"xetHash":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"filename":{"type":"string","maxLength":1000}},"required":["xetHash","sha256"]}}},"required":["target","files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}/lfs-files/duplicate":{"post":{"description":"Duplicate xet-stored 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.","summary":"Duplicate xet files","tags":["buckets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"target":{"type":"object","properties":{"type":{"enum":["dataset","model","space","kernel"]},"name":{"type":"string","minLength":1}},"required":["type","name"]},"files":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"xetHash":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"filename":{"type":"string","maxLength":1000}},"required":["xetHash","sha256"]}}},"required":["target","files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/commits/{rev}":{"get":{"summary":"List commits","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"authors":{"type":"array","items":{"type":"object","properties":{"user":{"type":"string"},"avatar":{"type":"string"}},"required":["user"],"additionalProperties":false}},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"formatted":{"description":"Available if expand includes formatted","type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title"],"additionalProperties":false}},"required":["id","title","message","authors","date"],"additionalProperties":false}}}},"description":"Commits list","headers":{"X-Total-Count":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link to the next page"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":false},{"name":"expand","in":"query","schema":{"type":"array","items":{"enum":["formatted"]}},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":1000},"required":false}]}},"/api/spaces/{namespace}/{repo}/commits/{rev}":{"get":{"summary":"List commits","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"authors":{"type":"array","items":{"type":"object","properties":{"user":{"type":"string"},"avatar":{"type":"string"}},"required":["user"],"additionalProperties":false}},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"formatted":{"description":"Available if expand includes formatted","type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title"],"additionalProperties":false}},"required":["id","title","message","authors","date"],"additionalProperties":false}}}},"description":"Commits list","headers":{"X-Total-Count":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link to the next page"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":false},{"name":"expand","in":"query","schema":{"type":"array","items":{"enum":["formatted"]}},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":1000},"required":false}]}},"/api/datasets/{namespace}/{repo}/commits/{rev}":{"get":{"summary":"List commits","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"authors":{"type":"array","items":{"type":"object","properties":{"user":{"type":"string"},"avatar":{"type":"string"}},"required":["user"],"additionalProperties":false}},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"formatted":{"description":"Available if expand includes formatted","type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title"],"additionalProperties":false}},"required":["id","title","message","authors","date"],"additionalProperties":false}}}},"description":"Commits list","headers":{"X-Total-Count":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link to the next page"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":false},{"name":"expand","in":"query","schema":{"type":"array","items":{"enum":["formatted"]}},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":1000},"required":false}]}},"/api/models/{namespace}/{repo}/refs":{"get":{"summary":"List references","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"converts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}}},"required":["tags","branches","converts"],"additionalProperties":false}}},"description":"List of references in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"include_prs","in":"query","schema":{"default":false},"required":false}]}},"/api/datasets/{namespace}/{repo}/refs":{"get":{"summary":"List references","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"converts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}}},"required":["tags","branches","converts"],"additionalProperties":false}}},"description":"List of references in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"include_prs","in":"query","schema":{"default":false},"required":false}]}},"/api/spaces/{namespace}/{repo}/refs":{"get":{"summary":"List references","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"converts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}}},"required":["tags","branches","converts"],"additionalProperties":false}}},"description":"List of references in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"include_prs","in":"query","schema":{"default":false},"required":false}]}},"/api/models/{namespace}/{repo}/compare/{compare}":{"get":{"summary":"Get a compare rev","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The diff between the two revisions"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"compare","in":"path","required":true,"schema":{"type":"string"}},{"name":"raw","in":"query","schema":{"default":false},"required":false}]}},"/api/datasets/{namespace}/{repo}/compare/{compare}":{"get":{"summary":"Get a compare rev","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The diff between the two revisions"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"compare","in":"path","required":true,"schema":{"type":"string"}},{"name":"raw","in":"query","schema":{"default":false},"required":false}]}},"/api/spaces/{namespace}/{repo}/compare/{compare}":{"get":{"summary":"Get a compare rev","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The diff between the two revisions"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"compare","in":"path","required":true,"schema":{"type":"string"}},{"name":"raw","in":"query","schema":{"default":false},"required":false}]}},"/api/models/{namespace}/{repo}/paths-info/{rev}":{"post":{"summary":"List paths info","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paths":{"anyOf":[{"maxItems":2000,"type":"array","items":{"type":"string"}},{"type":"string"}]},"expand":{"description":"Expand the response with the last commit and security file status","anyOf":[{"default":false},{"default":false,"type":"boolean"}]}},"required":["paths","expand"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"type":"number"},"lfs":{"type":"object","properties":{"pointerSize":{"type":"number"}},"required":["pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"path":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid","size","path"],"additionalProperties":false}}}},"description":"List of paths in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/paths-info/{rev}":{"post":{"summary":"List paths info","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paths":{"anyOf":[{"maxItems":2000,"type":"array","items":{"type":"string"}},{"type":"string"}]},"expand":{"description":"Expand the response with the last commit and security file status","anyOf":[{"default":false},{"default":false,"type":"boolean"}]}},"required":["paths","expand"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"type":"number"},"lfs":{"type":"object","properties":{"pointerSize":{"type":"number"}},"required":["pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"path":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid","size","path"],"additionalProperties":false}}}},"description":"List of paths in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/paths-info/{rev}":{"post":{"summary":"List paths info","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paths":{"anyOf":[{"maxItems":2000,"type":"array","items":{"type":"string"}},{"type":"string"}]},"expand":{"description":"Expand the response with the last commit and security file status","anyOf":[{"default":false},{"default":false,"type":"boolean"}]}},"required":["paths","expand"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"type":"number"},"lfs":{"type":"object","properties":{"pointerSize":{"type":"number"}},"required":["pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"path":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid","size","path"],"additionalProperties":false}}}},"description":"List of paths in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/preupload/{rev}":{"post":{"description":"Check if a file should be uploaded through the Large File mechanism or directly.","summary":"Check upload method","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"},"sample":{"type":"string"}},"required":["path","size","sample"]}},"gitAttributes":{"description":"Provide this parameter if you plan to modify `.gitattributes` yourself at the same time as uploading LFS files. Note that this is not needed if you solely rely on automatic LFS detection from HF: the commit endpoint will automatically edit the `.gitattributes` file to track the files passed to its `lfsFiles` param.","type":"string"},"gitIgnore":{"description":"Content of the .gitignore file for the revision. Optional, otherwise takes the existing content of `.gitignore` for the revision.","type":"string"}},"required":["files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"uploadMode":{"enum":["lfs","regular"]},"shouldIgnore":{"type":"boolean"},"oid":{"description":"The oid of the blob if it already exists in the repository. If the blob is a LFS file, it'll be the lfs oid.","type":"string"}},"required":["path","uploadMode","shouldIgnore"],"additionalProperties":false}},"commitOid":{"type":"string"}},"required":["files","commitOid"],"additionalProperties":false}}},"description":"Files to be uploaded."},"422":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"The request is invalid"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/preupload/{rev}":{"post":{"description":"Check if a file should be uploaded through the Large File mechanism or directly.","summary":"Check upload method","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"},"sample":{"type":"string"}},"required":["path","size","sample"]}},"gitAttributes":{"description":"Provide this parameter if you plan to modify `.gitattributes` yourself at the same time as uploading LFS files. Note that this is not needed if you solely rely on automatic LFS detection from HF: the commit endpoint will automatically edit the `.gitattributes` file to track the files passed to its `lfsFiles` param.","type":"string"},"gitIgnore":{"description":"Content of the .gitignore file for the revision. Optional, otherwise takes the existing content of `.gitignore` for the revision.","type":"string"}},"required":["files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"uploadMode":{"enum":["lfs","regular"]},"shouldIgnore":{"type":"boolean"},"oid":{"description":"The oid of the blob if it already exists in the repository. If the blob is a LFS file, it'll be the lfs oid.","type":"string"}},"required":["path","uploadMode","shouldIgnore"],"additionalProperties":false}},"commitOid":{"type":"string"}},"required":["files","commitOid"],"additionalProperties":false}}},"description":"Files to be uploaded."},"422":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"The request is invalid"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/preupload/{rev}":{"post":{"description":"Check if a file should be uploaded through the Large File mechanism or directly.","summary":"Check upload method","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"},"sample":{"type":"string"}},"required":["path","size","sample"]}},"gitAttributes":{"description":"Provide this parameter if you plan to modify `.gitattributes` yourself at the same time as uploading LFS files. Note that this is not needed if you solely rely on automatic LFS detection from HF: the commit endpoint will automatically edit the `.gitattributes` file to track the files passed to its `lfsFiles` param.","type":"string"},"gitIgnore":{"description":"Content of the .gitignore file for the revision. Optional, otherwise takes the existing content of `.gitignore` for the revision.","type":"string"}},"required":["files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"uploadMode":{"enum":["lfs","regular"]},"shouldIgnore":{"type":"boolean"},"oid":{"description":"The oid of the blob if it already exists in the repository. If the blob is a LFS file, it'll be the lfs oid.","type":"string"}},"required":["path","uploadMode","shouldIgnore"],"additionalProperties":false}},"commitOid":{"type":"string"}},"required":["files","commitOid"],"additionalProperties":false}}},"description":"Files to be uploaded."},"422":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"The request is invalid"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/xet-write-token/{rev}":{"get":{"description":"Get a write short-lived access token for XET upload","summary":"Xet write token","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetWriteAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/xet-write-token/{rev}":{"get":{"description":"Get a write short-lived access token for XET upload","summary":"Xet write token","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetWriteAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/xet-write-token/{rev}":{"get":{"description":"Get a write short-lived access token for XET upload","summary":"Xet write token","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetWriteAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}/xet-write-token":{"get":{"description":"Get a write short-lived access token for XET upload","summary":"Xet write token","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetWriteAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/xet-read-token/{rev}":{"get":{"description":"Get a read short-lived access token for XET","summary":"Xet read token","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetReadAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/xet-read-token/{rev}":{"get":{"description":"Get a read short-lived access token for XET","summary":"Xet read token","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetReadAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/xet-read-token/{rev}":{"get":{"description":"Get a read short-lived access token for XET","summary":"Xet read token","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetReadAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}/xet-read-token":{"get":{"description":"Get a read short-lived access token for XET","summary":"Xet read token","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetReadAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/commit/{rev}":{"post":{"description":"For legacy reason, we support both `application/json` and `application/x-ndjson` but we recommend using `application/x-ndjson` to create a commit.\n\nJSON-lines payload:\n```json\n{\n \"key\": \"header\",\n \"value\": {\n \"summary\": \"string (REQUIRED)\",\n \"description\": \"string (OPTIONAL - defaults to empty string)\",\n \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n }\n}\n{\n \"key\": \"file\",\n \"value\": {\n \"path\": \"string (REQUIRED)\",\n \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n}\n{\n \"key\": \"deletedEntry\",\n \"value\": {\n \"path\": \"string (REQUIRED)\"\n }\n}\n{\n \"key\": \"lfsFile\",\n \"value\": {\n \"path\": \"string (REQUIRED - max 1000 chars)\",\n \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n}\n```\n\nJSON payload:\n```json\n{\n \"summary\": \"string (REQUIRED)\",\n \"description\": \"string (OPTIONAL - defaults to empty string)\",\n \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n \"files\": [\n {\n \"path\": \"string (REQUIRED)\",\n \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n ],\n \"deletedEntries\": [\n {\n \"path\": \"string (REQUIRED)\"\n }\n ],\n \"lfsFiles\": [\n {\n \"path\": \"string (REQUIRED - max 1000 chars)\",\n \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n ]\n}\n```\n","summary":"Commit","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"Whether the commit was successful","type":"boolean"},"pullRequestUrl":{"description":"The URL of the pull request","type":"string"},"commitOid":{"description":"The OID of the commit","type":"string"},"commitUrl":{"description":"The URL of the commit","type":"string"},"hookOutput":{"description":"The output of the git hook","type":"string"}},"required":["success","commitOid","commitUrl","hookOutput"],"additionalProperties":false}}},"description":"The response of the commit"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"create_pr","in":"query","schema":{"description":"Whether to create a pull request from the commit"},"required":false},{"name":"hot_reload","in":"query","schema":{"description":"For Spaces, whether to try to hot reload the commit (only for single python files updates)"},"required":false},{"name":"Content-Type","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"`application/x-ndjson` if you to commit by json lines","default":"application/x-ndjson","enum":["application/json","application/x-ndjson"]}}]}},"/api/datasets/{namespace}/{repo}/commit/{rev}":{"post":{"description":"For legacy reason, we support both `application/json` and `application/x-ndjson` but we recommend using `application/x-ndjson` to create a commit.\n\nJSON-lines payload:\n```json\n{\n \"key\": \"header\",\n \"value\": {\n \"summary\": \"string (REQUIRED)\",\n \"description\": \"string (OPTIONAL - defaults to empty string)\",\n \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n }\n}\n{\n \"key\": \"file\",\n \"value\": {\n \"path\": \"string (REQUIRED)\",\n \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n}\n{\n \"key\": \"deletedEntry\",\n \"value\": {\n \"path\": \"string (REQUIRED)\"\n }\n}\n{\n \"key\": \"lfsFile\",\n \"value\": {\n \"path\": \"string (REQUIRED - max 1000 chars)\",\n \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n}\n```\n\nJSON payload:\n```json\n{\n \"summary\": \"string (REQUIRED)\",\n \"description\": \"string (OPTIONAL - defaults to empty string)\",\n \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n \"files\": [\n {\n \"path\": \"string (REQUIRED)\",\n \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n ],\n \"deletedEntries\": [\n {\n \"path\": \"string (REQUIRED)\"\n }\n ],\n \"lfsFiles\": [\n {\n \"path\": \"string (REQUIRED - max 1000 chars)\",\n \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n ]\n}\n```\n","summary":"Commit","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"Whether the commit was successful","type":"boolean"},"pullRequestUrl":{"description":"The URL of the pull request","type":"string"},"commitOid":{"description":"The OID of the commit","type":"string"},"commitUrl":{"description":"The URL of the commit","type":"string"},"hookOutput":{"description":"The output of the git hook","type":"string"}},"required":["success","commitOid","commitUrl","hookOutput"],"additionalProperties":false}}},"description":"The response of the commit"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"create_pr","in":"query","schema":{"description":"Whether to create a pull request from the commit"},"required":false},{"name":"hot_reload","in":"query","schema":{"description":"For Spaces, whether to try to hot reload the commit (only for single python files updates)"},"required":false},{"name":"Content-Type","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"`application/x-ndjson` if you to commit by json lines","default":"application/x-ndjson","enum":["application/json","application/x-ndjson"]}}]}},"/api/spaces/{namespace}/{repo}/commit/{rev}":{"post":{"description":"For legacy reason, we support both `application/json` and `application/x-ndjson` but we recommend using `application/x-ndjson` to create a commit.\n\nJSON-lines payload:\n```json\n{\n \"key\": \"header\",\n \"value\": {\n \"summary\": \"string (REQUIRED)\",\n \"description\": \"string (OPTIONAL - defaults to empty string)\",\n \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n }\n}\n{\n \"key\": \"file\",\n \"value\": {\n \"path\": \"string (REQUIRED)\",\n \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n}\n{\n \"key\": \"deletedEntry\",\n \"value\": {\n \"path\": \"string (REQUIRED)\"\n }\n}\n{\n \"key\": \"lfsFile\",\n \"value\": {\n \"path\": \"string (REQUIRED - max 1000 chars)\",\n \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n}\n```\n\nJSON payload:\n```json\n{\n \"summary\": \"string (REQUIRED)\",\n \"description\": \"string (OPTIONAL - defaults to empty string)\",\n \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n \"files\": [\n {\n \"path\": \"string (REQUIRED)\",\n \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n ],\n \"deletedEntries\": [\n {\n \"path\": \"string (REQUIRED)\"\n }\n ],\n \"lfsFiles\": [\n {\n \"path\": \"string (REQUIRED - max 1000 chars)\",\n \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n ]\n}\n```\n","summary":"Commit","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"Whether the commit was successful","type":"boolean"},"pullRequestUrl":{"description":"The URL of the pull request","type":"string"},"commitOid":{"description":"The OID of the commit","type":"string"},"commitUrl":{"description":"The URL of the commit","type":"string"},"hookOutput":{"description":"The output of the git hook","type":"string"}},"required":["success","commitOid","commitUrl","hookOutput"],"additionalProperties":false}}},"description":"The response of the commit"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"create_pr","in":"query","schema":{"description":"Whether to create a pull request from the commit"},"required":false},{"name":"hot_reload","in":"query","schema":{"description":"For Spaces, whether to try to hot reload the commit (only for single python files updates)"},"required":false},{"name":"Content-Type","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"`application/x-ndjson` if you to commit by json lines","default":"application/x-ndjson","enum":["application/json","application/x-ndjson"]}}]}},"/api/models/{namespace}/{repo}/tag/{rev}":{"post":{"summary":"Create tag","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tag":{"type":"string"},"message":{"type":"string"}},"required":["tag"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a tag","tags":["models"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/tag/{rev}":{"post":{"summary":"Create tag","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tag":{"type":"string"},"message":{"type":"string"}},"required":["tag"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a tag","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/tag/{rev}":{"post":{"summary":"Create tag","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tag":{"type":"string"},"message":{"type":"string"}},"required":["tag"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a tag","tags":["datasets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/branch/{rev}":{"post":{"summary":"Create branch","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"startingPoint":{"description":"The commit to start from","type":"string"},"emptyBranch":{"description":"Create an empty branch","default":false,"type":"boolean"},"overwrite":{"description":"Overwrite the branch if it already exists","default":false,"type":"boolean"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a branch","tags":["models"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/branch/{rev}":{"post":{"summary":"Create branch","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"startingPoint":{"description":"The commit to start from","type":"string"},"emptyBranch":{"description":"Create an empty branch","default":false,"type":"boolean"},"overwrite":{"description":"Overwrite the branch if it already exists","default":false,"type":"boolean"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a branch","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/branch/{rev}":{"post":{"summary":"Create branch","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"startingPoint":{"description":"The commit to start from","type":"string"},"emptyBranch":{"description":"Create an empty branch","default":false,"type":"boolean"},"overwrite":{"description":"Overwrite the branch if it already exists","default":false,"type":"boolean"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a branch","tags":["datasets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/resource-group":{"post":{"description":"Add the repository to a resource group","summary":"Add resource group","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resourceGroupId":{"description":"The resource group to add the repository to, if null, the repository will be removed from the resource group","anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},{"type":"null"}]}},"required":["resourceGroupId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"private":{"type":"boolean"},"addedBy":{"type":"string"}},"required":["name","type","private","addedBy"],"additionalProperties":false}}},"description":"Minimal information about the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"summary":"Get resource group","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}}},"description":"The resource group of the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/resource-group":{"post":{"description":"Add the repository to a resource group","summary":"Add resource group","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resourceGroupId":{"description":"The resource group to add the repository to, if null, the repository will be removed from the resource group","anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},{"type":"null"}]}},"required":["resourceGroupId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"private":{"type":"boolean"},"addedBy":{"type":"string"}},"required":["name","type","private","addedBy"],"additionalProperties":false}}},"description":"Minimal information about the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"summary":"Get resource group","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}}},"description":"The resource group of the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/resource-group":{"post":{"description":"Add the repository to a resource group","summary":"Add resource group","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resourceGroupId":{"description":"The resource group to add the repository to, if null, the repository will be removed from the resource group","anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},{"type":"null"}]}},"required":["resourceGroupId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"private":{"type":"boolean"},"addedBy":{"type":"string"}},"required":["name","type","private","addedBy"],"additionalProperties":false}}},"description":"Minimal information about the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"summary":"Get resource group","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}}},"description":"The resource group of the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}/resource-group":{"post":{"description":"Add the repository to a resource group","summary":"Add resource group","tags":["buckets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resourceGroupId":{"description":"The resource group to add the repository to, if null, the repository will be removed from the resource group","anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},{"type":"null"}]}},"required":["resourceGroupId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"private":{"type":"boolean"},"addedBy":{"type":"string"}},"required":["name","type","private","addedBy"],"additionalProperties":false}}},"description":"Minimal information about the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"summary":"Get resource group","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}}},"description":"The resource group of the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/super-squash/{rev}":{"post":{"description":"Squash all commits in the current ref into a single commit with the given message. Action is irreversible.","summary":"Squash ref","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"commitId":{"description":"The new commit ID after the squash","type":"string"}},"required":["commitId"],"additionalProperties":false}}},"description":"Response containing the new commit ID after the squash"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/super-squash/{rev}":{"post":{"description":"Squash all commits in the current ref into a single commit with the given message. Action is irreversible.","summary":"Squash ref","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"commitId":{"description":"The new commit ID after the squash","type":"string"}},"required":["commitId"],"additionalProperties":false}}},"description":"Response containing the new commit ID after the squash"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/super-squash/{rev}":{"post":{"description":"Squash all commits in the current ref into a single commit with the given message. Action is irreversible.","summary":"Squash ref","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"commitId":{"description":"The new commit ID after the squash","type":"string"}},"required":["commitId"],"additionalProperties":false}}},"description":"Response containing the new commit ID after the squash"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/settings":{"put":{"description":"Update the settings of a repo","summary":"Update repo settings","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"orgMembersGated":{"description":"If true, members of the owning org (except admins) must also go through the gated access-request flow.","type":"boolean"},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"orgMembersGated":{"description":"If true, members of the owning org (except admins) must also go through the gated access-request flow.","type":"boolean"},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}},"additionalProperties":false}}},"description":"The updated repo settings."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/settings":{"put":{"description":"Update the settings of a repo","summary":"Update repo settings","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"orgMembersGated":{"description":"If true, members of the owning org (except admins) must also go through the gated access-request flow.","type":"boolean"},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"orgMembersGated":{"description":"If true, members of the owning org (except admins) must also go through the gated access-request flow.","type":"boolean"},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}},"additionalProperties":false}}},"description":"The updated repo settings."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/settings":{"put":{"description":"Update the settings of a repo","summary":"Update repo settings","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"orgMembersGated":{"description":"If true, members of the owning org (except admins) must also go through the gated access-request flow.","type":"boolean"},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"orgMembersGated":{"description":"If true, members of the owning org (except admins) must also go through the gated access-request flow.","type":"boolean"},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}},"additionalProperties":false}}},"description":"The updated repo settings."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/tree/{rev}/{path}":{"get":{"description":"List the content of a repository tree, with pagination support.","summary":"List folder content","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"description":"If the file is a LFS pointer, it'll return the size of the remote file","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lfs":{"type":"object","properties":{"oid":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pointerSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["oid","size","pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid"],"additionalProperties":false}}}},"description":"List of entries in the repository tree","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, if applicable"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"expand","in":"query","schema":{"description":"If true, returns returns associated commit data for each entry and security scanner metadata.","default":false},"required":false},{"name":"recursive","in":"query","schema":{"description":"If true, returns the tree recursively.","default":false},"required":false},{"name":"limit","in":"query","schema":{"description":"1.000 by default, 100 by default for expand=true","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}]}},"/api/spaces/{namespace}/{repo}/tree/{rev}/{path}":{"get":{"description":"List the content of a repository tree, with pagination support.","summary":"List folder content","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"description":"If the file is a LFS pointer, it'll return the size of the remote file","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lfs":{"type":"object","properties":{"oid":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pointerSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["oid","size","pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid"],"additionalProperties":false}}}},"description":"List of entries in the repository tree","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, if applicable"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"expand","in":"query","schema":{"description":"If true, returns returns associated commit data for each entry and security scanner metadata.","default":false},"required":false},{"name":"recursive","in":"query","schema":{"description":"If true, returns the tree recursively.","default":false},"required":false},{"name":"limit","in":"query","schema":{"description":"1.000 by default, 100 by default for expand=true","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}]}},"/api/datasets/{namespace}/{repo}/tree/{rev}/{path}":{"get":{"description":"List the content of a repository tree, with pagination support.","summary":"List folder content","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"description":"If the file is a LFS pointer, it'll return the size of the remote file","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lfs":{"type":"object","properties":{"oid":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pointerSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["oid","size","pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid"],"additionalProperties":false}}}},"description":"List of entries in the repository tree","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, if applicable"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"expand","in":"query","schema":{"description":"If true, returns returns associated commit data for each entry and security scanner metadata.","default":false},"required":false},{"name":"recursive","in":"query","schema":{"description":"If true, returns the tree recursively.","default":false},"required":false},{"name":"limit","in":"query","schema":{"description":"1.000 by default, 100 by default for expand=true","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}]}},"/api/models/{namespace}/{repo}/notebook/{rev}/{path}":{"get":{"description":"Get a jupyter notebook URL for the requested file","summary":"Get notebook URL","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false},{"type":"object","properties":{"notInCache":{"const":true}},"required":["notInCache"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}]}}},"description":"Response containing the url of the notebook"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/datasets/{namespace}/{repo}/notebook/{rev}/{path}":{"get":{"description":"Get a jupyter notebook URL for the requested file","summary":"Get notebook URL","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false},{"type":"object","properties":{"notInCache":{"const":true}},"required":["notInCache"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}]}}},"description":"Response containing the url of the notebook"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/spaces/{namespace}/{repo}/notebook/{rev}/{path}":{"get":{"description":"Get a jupyter notebook URL for the requested file","summary":"Get notebook URL","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false},{"type":"object","properties":{"notInCache":{"const":true}},"required":["notInCache"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}]}}},"description":"Response containing the url of the notebook"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/models/{namespace}/{repo}/scan":{"get":{"description":"Get the security status of a repo","summary":"Get security status","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scansDone":{"type":"boolean"},"filesWithIssues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"level":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]}},"required":["path","level"],"additionalProperties":false}}},"required":["scansDone","filesWithIssues"],"additionalProperties":false}}},"description":"The security status of the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/scan":{"get":{"description":"Get the security status of a repo","summary":"Get security status","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scansDone":{"type":"boolean"},"filesWithIssues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"level":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]}},"required":["path","level"],"additionalProperties":false}}},"required":["scansDone","filesWithIssues"],"additionalProperties":false}}},"description":"The security status of the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/scan":{"get":{"description":"Get the security status of a repo","summary":"Get security status","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scansDone":{"type":"boolean"},"filesWithIssues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"level":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]}},"required":["path","level"],"additionalProperties":false}}},"required":["scansDone","filesWithIssues"],"additionalProperties":false}}},"description":"The security status of the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions":{"get":{"description":"Get discussions for a repo","summary":"List discussions","tags":["discussions"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"discussions":{"type":"array","items":{"type":"object","properties":{"num":{"type":"number"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"repo":{"$ref":"#/components/schemas/RepoId"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"topReactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"count":{"type":"number"}},"required":["reaction","count"],"additionalProperties":false}},"status":{"enum":["draft","open","closed","merged"]},"isPullRequest":{"type":"boolean"},"numComments":{"type":"number"},"numReactionUsers":{"type":"number"},"pinned":{"type":"boolean"},"repoOwner":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["org","user"]},"isParticipating":{"type":"boolean"},"isDiscussionAuthor":{"type":"boolean"}},"required":["name","type","isParticipating","isDiscussionAuthor"],"additionalProperties":false}},"required":["num","repo","title","createdAt","topReactions","status","isPullRequest","numComments","numReactionUsers","pinned"],"additionalProperties":false}},"count":{"type":"number"},"start":{"type":"number"},"numClosedDiscussions":{"description":"Number of closed discussions on the first page","type":"number"}},"required":["discussions","count","start"],"additionalProperties":false}}},"description":"List of discussions"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":false},{"name":"type","in":"query","schema":{"default":"all","enum":["all","discussion","pull_request"]},"required":false},{"name":"status","in":"query","schema":{"default":"all","enum":["all","open","closed"]},"required":false},{"name":"author","in":"query","schema":{"type":"string","minLength":2,"maxLength":42,"pattern":"^\\b(?!\\d+$)(?![0-9a-fA-F]{24}$)([a-zA-Z0-9]|-(?!-))+\\b$"},"required":false},{"name":"search","in":"query","schema":{"type":"string"},"required":false},{"name":"sort","in":"query","schema":{"default":"recently-created","enum":["recently-created","trending","reactions"]},"required":false}]},"post":{"summary":"Create a new discussion","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":200},"description":{"type":"string","maxLength":65536},"pullRequest":{"type":"boolean"}},"required":["title","description"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"},"num":{"type":"number"},"pullRequest":{"type":"boolean"},"references":{"type":"object","properties":{"base":{"type":"string"},"mergeCommitId":{"type":"string"}},"required":["base"],"additionalProperties":false}},"required":["url","num","pullRequest"],"additionalProperties":false}}},"description":"Discussion creation response"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}":{"get":{"summary":"Get discussion details","tags":["discussions"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"num":{"type":"number"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"org":{"type":"object","properties":{"avatarUrl":{"type":"string"},"email":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"requiresSSO":{"type":"boolean"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false},"repo":{"$ref":"#/components/schemas/RepoId"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"status":{"enum":["draft","open","closed","merged"]},"events":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"status-change"},"data":{"type":"object","properties":{"status":{"enum":["draft","open","closed","merged"]},"reason":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"commit"},"data":{"type":"object","properties":{"subject":{"type":"string"},"oid":{"type":"string"}},"required":["subject","oid"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"title-change"},"data":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"pinning-change"},"data":{"type":"object","properties":{"pinned":{"type":"boolean"}},"required":["pinned"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"locking-change"},"data":{"type":"object","properties":{"locked":{"type":"boolean"}},"required":["locked"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"report-status-change"},"data":{"type":"object","properties":{"report":{"type":"boolean"}},"required":["report"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"ref-deleted"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}]}},"pinned":{"type":"boolean"},"locked":{"type":"boolean"},"collection":{"enum":["discussions","paper_discussions","social_posts","community_blogs"]},"isPullRequest":{"const":false},"isReport":{"type":"boolean"}},"required":["_id","title","status","events","pinned","locked","collection","isPullRequest","isReport"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"num":{"type":"number"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"org":{"type":"object","properties":{"avatarUrl":{"type":"string"},"email":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"requiresSSO":{"type":"boolean"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false},"repo":{"$ref":"#/components/schemas/RepoId"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"status":{"enum":["draft","open","closed","merged"]},"events":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"status-change"},"data":{"type":"object","properties":{"status":{"enum":["draft","open","closed","merged"]},"reason":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"commit"},"data":{"type":"object","properties":{"subject":{"type":"string"},"oid":{"type":"string"}},"required":["subject","oid"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"title-change"},"data":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"pinning-change"},"data":{"type":"object","properties":{"pinned":{"type":"boolean"}},"required":["pinned"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"locking-change"},"data":{"type":"object","properties":{"locked":{"type":"boolean"}},"required":["locked"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"report-status-change"},"data":{"type":"object","properties":{"report":{"type":"boolean"}},"required":["report"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"ref-deleted"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}]}},"pinned":{"type":"boolean"},"locked":{"type":"boolean"},"collection":{"const":"discussions"},"isPullRequest":{"const":true},"filesWithConflicts":{"description":"The list of files with conflicts. `true` means there are conflicts but we cannot list them.","anyOf":[{"type":"array","items":{"type":"string"}},{"const":true}]},"changes":{"type":"object","properties":{"base":{"type":"string"},"mergeCommitId":{"type":"string"},"headCommitId":{"description":"The last commit ID of the PR branch, stored before ref deletion so diffs can still be computed.","type":"string"},"refDeleted":{"description":"Whether the PR ref has been deleted (to free up storage).","type":"boolean"}},"required":["base"],"additionalProperties":false}},"required":["_id","title","status","events","pinned","locked","collection","isPullRequest","filesWithConflicts","changes"],"additionalProperties":false}]},{"type":"object","properties":{"diffUrl":{"type":"string"}},"additionalProperties":false}]}}},"description":"Discussion details"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a discussion","tags":["discussions"],"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/status":{"post":{"description":"Change the status of a discussion","summary":"Change status","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"enum":["open","closed"]},"comment":{"type":"string"}},"required":["status"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newStatus":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"status-change"},"data":{"type":"object","properties":{"status":{"enum":["draft","open","closed","merged"]},"reason":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newStatus"],"additionalProperties":false}}},"description":"New status event"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/title":{"post":{"description":"Change the title of a discussion","summary":"Change title","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":200}},"required":["title"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newTitle":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"title-change"},"data":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newTitle"],"additionalProperties":false}}},"description":"New title event"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/pin":{"post":{"summary":"Pin a discussion","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pinned":{"type":"boolean"}},"required":["pinned"]}}}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/merge":{"post":{"summary":"Merge a pull request","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string"}}}}}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/ref":{"delete":{"description":"Deletes the git ref for a closed/merged pull request to free up storage. LFS files unique to this PR will be garbage collected. The PR page and diff will still be viewable using stored commit data.","summary":"Delete PR ref","tags":["discussions"],"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/storage":{"get":{"description":"Estimates the LFS storage used by a PR that could be freed if the ref is deleted.","summary":"PR storage estimate","tags":["discussions"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"estimatedStorage":{"description":"Estimated storage in bytes that may be freed","type":"number"},"refDeleted":{"description":"Whether the ref has already been deleted","type":"boolean"}},"required":["estimatedStorage","refDeleted"],"additionalProperties":false}}},"description":"PR storage estimate response"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/kernels":{"get":{"description":"List kernels with optional filtering, sorting, and pagination","summary":"List kernels","tags":["kernels"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"description":"Kernel ID in format namespace/name","type":"string"},"author":{"description":"Namespace (user or organization) of the kernel","type":"string"},"private":{"description":"Whether the kernel is private","type":"boolean"},"cardData":{"description":"Kernel card metadata","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"disabled":{"description":"Whether the kernel is disabled","type":"boolean"},"downloads":{"description":"Number of downloads in the last 30 days","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"downloadsAllTime":{"description":"Total number of downloads","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"gated":{"description":"Gated access status","anyOf":[{"type":"boolean"},{"const":"auto"},{"const":"manual"}]},"lastModified":{"description":"Last modification timestamp","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"createdAt":{"description":"Creation timestamp","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"description":"Number of likes","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sha":{"description":"Current commit SHA","type":"string"},"files":{"description":"List of files in the kernel","type":"array","items":{"type":"string"}},"tags":{"description":"Kernel tags","type":"array","items":{"type":"string"}},"trendingScore":{"description":"Trending score","type":"number"},"buildMetadata":{"description":"Build metadata","type":"object","properties":{"compatibility":{"type":"object","properties":{"torch":{"type":"array","items":{"enum":["2.8","2.9","2.10"]}},"os":{"type":"array","items":{"enum":["macos","linux","windows"]}},"arch":{"type":"array","items":{"enum":["x86_64","arm64","aarch64"]}}},"required":["torch","os","arch"],"additionalProperties":false},"backends":{"type":"array","items":{"type":"object","properties":{"type":{"enum":["cuda","rocm","metal","xpu","cpu"]},"hardwareTypes":{"type":"array","items":{"enum":["5.0","5.2","6.0","6.1","6.2","7.0","7.2","7.5","8.0","8.6","8.7","8.9","9.0","10.0","10.3","11.0","12.0","12.1","13.0","5.0+PTX","5.2+PTX","6.0+PTX","6.1+PTX","6.2+PTX","7.0+PTX","7.2+PTX","7.5+PTX","8.0+PTX","8.6+PTX","8.7+PTX","8.9+PTX","9.0+PTX","10.0+PTX","10.3+PTX","11.0+PTX","12.0+PTX","12.1+PTX","13.0+PTX","9.0a","10.0a","10.3a","11.0a","12.0a","12.1a","13.0a","10.0f","12.0f","13.0f","gfx900","gfx906","gfx908","gfx90a","gfx942","gfx950","gfx1030","gfx1100","gfx1101","gfx1102","gfx1150","gfx1151","gfx1200","gfx1201"]}},"noArchs":{"const":true}},"required":["type","hardwareTypes"],"additionalProperties":false}},"builder":{"type":"object","properties":{"version":{"type":"string"},"sha":{"type":"string"},"dirty":{"type":"boolean"}},"required":["version"],"additionalProperties":false}},"required":["backends"],"additionalProperties":false},"supportedDriverFamilies":{"description":"Driver families supported by the kernel (derived from build metadata)","type":"array","items":{"enum":["cuda","rocm","metal","xpu","cpu"]}},"resourceGroup":{"description":"Resource group information","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}},"required":["id"],"additionalProperties":false}}}},"description":"List of kernels"}},"parameters":[{"name":"search","in":"query","schema":{"description":"Filter by search term","type":"string"},"required":false},{"name":"author","in":"query","schema":{"description":"Filter by author","anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"id","in":"query","schema":{"description":"Filter by ID","anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"arxivIds","in":"query","schema":{"description":"Filter by Arxiv ID","anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"filter","in":"query","schema":{"description":"Filter by tags","anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"sort","in":"query","schema":{"description":"Sort field (e.g. downloads, likes, lastModified, trendingScore)","default":"trendingScore","enum":["downloads","likes","lastModified","trendingScore","likes30d","_id","id"]},"required":false},{"name":"direction","in":"query","schema":{"description":"Sort direction: 1 for ascending, -1 for descending","default":"-1","enum":["1","-1"]},"required":false},{"name":"limit","in":"query","schema":{"description":"Maximum number of results to return","default":1000,"type":"integer","minimum":1,"maximum":1000},"required":false},{"name":"cursor","in":"query","schema":{"description":"Pagination cursor from Link header","type":"string"},"required":false},{"name":"full","in":"query","schema":{"description":"Return full kernel info including author, sha, lastModified, files, gated","type":"boolean"},"required":false},{"name":"gated","in":"query","schema":{"description":"Filter by gated","type":"boolean"},"required":false},{"name":"expand","in":"query","schema":{"description":"Display specific fields in the response","anyOf":[{"enum":["author","cardData","disabled","downloads","downloadsAllTime","gated","lastModified","createdAt","likes","private","sha","files","tags","trendingScore","buildMetadata","supportedDriverFamilies","resourceGroup","arxivIds"]},{"type":"array","items":{"enum":["author","cardData","disabled","downloads","downloadsAllTime","gated","lastModified","createdAt","likes","private","sha","files","tags","trendingScore","buildMetadata","supportedDriverFamilies","resourceGroup","arxivIds"]}}]},"required":false}]}},"/api/kernels/{namespace}/{repo}":{"get":{"summary":"Get kernel","tags":["kernels"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"private":{"type":"boolean"},"repoType":{"const":"kernel"},"sha":{"type":"string"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"files":{"type":"array","items":{"type":"string"}},"supportedDriverFamilies":{"type":"array","items":{"enum":["cuda","rocm","metal","xpu","cpu"]}},"trustedPublisher":{"type":"boolean"}},"required":["author","downloads","id","isLikedByUser","lastModified","likes","private","repoType","sha","gated"],"additionalProperties":false}}},"description":"Kernel overview information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/kernels/{namespace}/{repo}/revision/{rev}":{"get":{"summary":"Get kernel","tags":["kernels"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"private":{"type":"boolean"},"repoType":{"const":"kernel"},"sha":{"type":"string"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"files":{"type":"array","items":{"type":"string"}},"supportedDriverFamilies":{"type":"array","items":{"enum":["cuda","rocm","metal","xpu","cpu"]}},"trustedPublisher":{"type":"boolean"}},"required":["author","downloads","id","isLikedByUser","lastModified","likes","private","repoType","sha","gated"],"additionalProperties":false}}},"description":"Kernel overview information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/leaderboard":{"get":{"description":"Returns the evaluation results ranked by score for a dataset/task","summary":"Get dataset leaderboard","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"rank":{"type":"number"},"modelId":{"type":"string"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"value":{"type":"number"},"verified":{"type":"boolean"},"source":{"type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"isExternal":{"type":"boolean"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["url","isExternal"],"additionalProperties":false},"pullRequest":{"type":"number"},"filename":{"type":"string"},"notes":{"type":"string"},"lower_is_better":{"type":"boolean"},"num_parameters":{"type":"number"}},"required":["rank","modelId","author","value","filename"],"additionalProperties":false}}}},"description":"Evaluation results"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_id","in":"query","schema":{"type":"string"},"required":false},{"name":"max_params","in":"query","schema":{"type":"string"},"required":false},{"name":"base_model","in":"query","schema":{"default":true},"required":false}]}},"/api/models/{namespace}/{repo}/jwt":{"get":{"description":"Generate a JWT token for accessing a repository. Supports optional write access for spaces in dev mode, custom expiration, and encryption.","summary":"Generate JWT","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accessToken":{"description":"The JWT token with Bearer prefix","type":"string"},"exp":{"description":"Token expiration timestamp in seconds (JWT standard)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"description":"The JWT token","type":"string"},"encryptedToken":{"description":"Encrypted JWT token and key ID (only if encrypted=true was requested)","type":"object","properties":{"encrypted":{"description":"The encrypted JWT token","type":"string"},"keyId":{"description":"Key ID used to encrypt the token","type":"string"}},"required":["encrypted","keyId"],"additionalProperties":false}},"required":["accessToken","token"],"additionalProperties":false}}},"description":"The JWT token and related information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"write","in":"query","schema":{},"required":false},{"name":"expiration","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"encrypted","in":"query","schema":{},"required":false},{"name":"inference_api","in":"query","schema":{},"required":false},{"name":"include_pro_status","in":"query","schema":{},"required":false},{"name":"billing_details","in":"query","schema":{},"required":false}]}},"/api/spaces/{namespace}/{repo}/jwt":{"get":{"description":"Generate a JWT token for accessing a repository. Supports optional write access for spaces in dev mode, custom expiration, and encryption.","summary":"Generate JWT","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accessToken":{"description":"The JWT token with Bearer prefix","type":"string"},"exp":{"description":"Token expiration timestamp in seconds (JWT standard)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"description":"The JWT token","type":"string"},"encryptedToken":{"description":"Encrypted JWT token and key ID (only if encrypted=true was requested)","type":"object","properties":{"encrypted":{"description":"The encrypted JWT token","type":"string"},"keyId":{"description":"Key ID used to encrypt the token","type":"string"}},"required":["encrypted","keyId"],"additionalProperties":false}},"required":["accessToken","token"],"additionalProperties":false}}},"description":"The JWT token and related information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"write","in":"query","schema":{},"required":false},{"name":"expiration","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"encrypted","in":"query","schema":{},"required":false},{"name":"inference_api","in":"query","schema":{},"required":false},{"name":"include_pro_status","in":"query","schema":{},"required":false},{"name":"billing_details","in":"query","schema":{},"required":false}]}},"/api/datasets/{namespace}/{repo}/jwt":{"get":{"description":"Generate a JWT token for accessing a repository. Supports optional write access for spaces in dev mode, custom expiration, and encryption.","summary":"Generate JWT","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accessToken":{"description":"The JWT token with Bearer prefix","type":"string"},"exp":{"description":"Token expiration timestamp in seconds (JWT standard)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"description":"The JWT token","type":"string"},"encryptedToken":{"description":"Encrypted JWT token and key ID (only if encrypted=true was requested)","type":"object","properties":{"encrypted":{"description":"The encrypted JWT token","type":"string"},"keyId":{"description":"Key ID used to encrypt the token","type":"string"}},"required":["encrypted","keyId"],"additionalProperties":false}},"required":["accessToken","token"],"additionalProperties":false}}},"description":"The JWT token and related information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"write","in":"query","schema":{},"required":false},{"name":"expiration","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"encrypted","in":"query","schema":{},"required":false},{"name":"inference_api","in":"query","schema":{},"required":false},{"name":"include_pro_status","in":"query","schema":{},"required":false},{"name":"billing_details","in":"query","schema":{},"required":false}]}},"/api/agent-harnesses":{"get":{"description":"Get the registry of AI agents / harnesses known to the Hub, along with the standard environment variables used to detect them. Clients use this registry to identify which agent they are running in when reporting Hub activity.","summary":"Get agent harnesses","tags":["agents"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"standardEnvVars":{"description":"Standard environment variables that any agent can set to identify itself. Their value is matched against the harness ids.","type":"array","items":{"type":"string"}},"harnesses":{"description":"Registered harnesses, keyed by id and ordered by detection priority: the first match wins","type":"object","propertyNames":{"description":"Unique identifier of the harness, used when reporting Hub activity","type":"string"},"additionalProperties":{"type":"object","properties":{"prettyLabel":{"description":"Human-readable name of the harness","type":"string"},"repoUrl":{"description":"URL to the harness's code repository","type":"string"},"docsUrl":{"description":"URL to the harness's documentation or website","type":"string"},"description":{"description":"Short description of the harness","type":"string"},"envVars":{"description":"Environment variable(s) identifying this harness, mapped to the value pattern they must match: \"*\" (set to any non-empty value), an exact value, or a \"*\" fuzzy match. Detection matches if ANY entry matches.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["prettyLabel"],"additionalProperties":false}}},"required":["standardEnvVars","harnesses"],"additionalProperties":false}}},"description":"The registry of AI agents / harnesses known to the Hub"}}}},"/api/models-tags-by-type":{"get":{"description":"Get all possible tags used for models, grouped by tag type. Optionally restrict to only one tag type","summary":"Get model tags","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"anyOf":[{"enum":["pipeline_tag","library","dataset","bucket","language","license","arxiv","doi","region","deploy","other"]},{"not":{}}]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"type":{"enum":["pipeline_tag","library","dataset","bucket","language","license","arxiv","doi","region","deploy","other"]},"subType":{"type":"string"},"clickable":{"default":true,"type":"boolean"}},"required":["id","label","type"],"additionalProperties":false}}}}},"description":"The tags, grouped by tag type"}},"parameters":[{"name":"type","in":"query","schema":{"enum":["pipeline_tag","library","dataset","bucket","language","license","arxiv","doi","region","deploy","other"]},"required":false}]}},"/api/datasets-tags-by-type":{"get":{"description":"Get all possible tags used for datasets, grouped by tag type. Optionally restrict to only one tag type","summary":"Get dataset tags","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"anyOf":[{"enum":["benchmark","task_categories","size_categories","modality","format","library","language","license","arxiv","doi","region","other","task_ids","annotations_creators","language_creators","multilinguality","source_datasets"]},{"not":{}}]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"type":{"enum":["benchmark","task_categories","size_categories","modality","format","library","language","license","arxiv","doi","region","other","task_ids","annotations_creators","language_creators","multilinguality","source_datasets"]},"subType":{"type":"string"},"clickable":{"default":true,"type":"boolean"}},"required":["id","label","type"],"additionalProperties":false}}}}},"description":"The tags, grouped by tag type"}},"parameters":[{"name":"type","in":"query","schema":{"enum":["benchmark","task_categories","size_categories","modality","format","library","language","license","arxiv","doi","region","other","task_ids","annotations_creators","language_creators","multilinguality","source_datasets"]},"required":false}]}},"/api/trending":{"get":{"description":"Get the trending repositories","summary":"Get trending","tags":["models","spaces","datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"recentlyTrending":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"repoType":{"const":"dataset"},"repoData":{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified"],"additionalProperties":false}},"required":["repoType","repoData"],"additionalProperties":false},{"type":"object","properties":{"repoType":{"const":"model"},"repoData":{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated"],"additionalProperties":false}},"required":["repoType","repoData"],"additionalProperties":false},{"type":"object","properties":{"repoType":{"const":"space"},"repoData":{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility"],"additionalProperties":false}},"required":["repoType","repoData"],"additionalProperties":false}]}}},"required":["recentlyTrending"],"additionalProperties":false}}},"description":"Trending repos"}},"parameters":[{"name":"type","in":"query","schema":{"default":"all","enum":["all","dataset","model","space"]},"required":false},{"name":"limit","in":"query","schema":{"default":10,"type":"integer","minimum":1,"maximum":20},"required":false}]}},"/api/quicksearch":{"get":{"description":"Quick search for models, datasets, spaces, orgs, users, papers, collections, and buckets","summary":"Quick search","tags":["repo-search"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"datasets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"},"trendingWeight":{"type":"number"}},"required":["id","trendingWeight"],"additionalProperties":false}},"datasetsCount":{"type":"number"},"models":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"},"trendingWeight":{"type":"number"}},"required":["id","trendingWeight"],"additionalProperties":false}},"modelsCount":{"type":"number"},"orgs":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"}},"required":["_id","avatarUrl","fullname","name"],"additionalProperties":false}},"q":{"type":"string"},"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"},"emoji":{"type":"string"},"trendingWeight":{"type":"number"}},"required":["id","emoji","trendingWeight"],"additionalProperties":false}},"spacesCount":{"type":"number"},"users":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatarUrl","fullname","user"],"additionalProperties":false}},"papers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"papersCount":{"type":"number"},"collections":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}},"required":["_id","title"],"additionalProperties":false}},"collectionsCount":{"type":"number"},"buckets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"bucketsCount":{"type":"number"},"kernels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"kernelsCount":{"type":"number"}},"required":["datasets","datasetsCount","models","modelsCount","orgs","q","spaces","spacesCount","users","papers","papersCount","collections","collectionsCount","buckets","bucketsCount","kernels","kernelsCount"],"additionalProperties":false}}},"description":"The quick search results"}},"parameters":[{"name":"q","in":"query","schema":{"default":"","type":"string"},"required":false},{"name":"limit","in":"query","schema":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"integer","minimum":1,"maximum":20}]},"required":false},{"name":"lang","in":"query","schema":{"anyOf":[{"enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},{"type":"string"}]},"required":false},{"name":"library","in":"query","schema":{"anyOf":[{"enum":["acestep","adapter-transformers","allennlp","anemoi","araclip","aviation-ner","asteroid","audiocraft","audioseal","bagel-mot","bboxmaskpose","ben2","bertopic","big_vision","bionemo","birder","birefnet","bm25s","boltzgen","cancertathomev2","cartesia_pytorch","cartesia_mlx","ccpfn","champ","chatterbox","chaossim","chat_tts","chexmix","chronos-forecasting","clara","clipscope","cloud-agents","collectorvision","colipri","cosyvoice","cotracker","colpali","comet","cosmos","cxr-foundation","deepforest","depth-anything-v2","depth-pro","derm-foundation","describe-anything","dia-tts","dia2","diff-interpretation-tuning","diffree","diffusers","diffusionkit","docking-at-home","doctr","edsnlp","elm","encoderfile","espnet","eupe","fairseq","fastai","fastprint","fasttext","fixer","flair","flextab","fme","gemma.cpp","geometry-crafter","gliner","gliner2","glm-tts","glyph-byt5","granite-library","grok","habibi-tts","hallo","hermes","holomotion","hezar","htrflow","hunyuan-dit","hunyuan3d-2","hunyuanworld-voyager","hy-worldplay","hy-world-2","image-matching-models","imstoucan","index-tts","infinitetalk","infinite-you","intellifold","ising-decoding","keras","tf-keras","keras-hub","kernels","kimi-audio","kittentts","kronos","k2","lyra-2.0","lagernvs","lightning-ir","litert","litert-lm","lerobot","lightglue","liveportrait","longcat-video-avatar-1.5","llama-cpp-python","mini-omni2","mindspore","magi-1","magenta-realtime","magenta-realtime-2","mamba-ssm","manas-1","mars5-tts","matanyone","mesh-anything","merlin","medvae","mitie","ml-agents","ml-sharp","mlx","mlx-image","mlc-llm","model2vec","mobilint","moshi","mtvcraft","multimolecule","nemo","ninfer","nv-medtech","open-oasis","open_clip","openasr","openpeerllm","open-sora","outetts","paddlenlp","PaddleOCR","peft","perception-encoder","phantom-wan","pocket-tts","pruna-ai","pxia","pyannote-audio","py-feat","pythae","quantumpeer","qwen3_tts","recurrentgemma","relik","refiners","renderformer","reverb","rkllm","robo-orchard-lab","rwkv","saelens","scail-2","sam2","sam-3d-body","sam-3d-objects","same","sample-factory","sap-rpt-1-oss","sapiens","sapiens2","seedvr","self-forcing","sentence-transformers","setfit","sklearn","spacy","span-marker","speechbrain","ssr-speech","stable-audio-3","stable-audio-tools","monkeyocr","diffusion-single-file","seed-story","skala","soloaudio","songbloom","stable-baselines3","stanza","supertonic","swarmformer","synthefy-migas","f5-tts","genmo","tencent-song-generation","tensorflowtts","tensorrt","tabpfn","terratorch","tic-clip","timesfm","timee-ts","timm","tirex","tirex-2","torchgeo","transformers","transformers.js","trellis","trellis2","tunejury","ultralytics","univa","uni-3dar","unity-sentis","sana","videoprism","vfi-mamba","vismatch","lvface","voicecraft","voxcpm","vui","vibevoice","videox_fun","wan2.2","wham","whisperkit","yolov10","yolov26","zonos","3dtopia-xl"]},{"type":"string"}]},"required":false},{"name":"type","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["model","dataset","space","org","user","paper","collection","bucket","kernel"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"orgsFilter","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["own","unwatched"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"reposFilter","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["skip_disabled","skip_gated","own","own_orgs","granted_access"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"pipelines","in":"query","schema":{"description":"Comma-separated or array of pipeline types","anyOf":[{"type":"array","items":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other"]}},{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}]},"required":false},{"name":"exclude","in":"query","schema":{"description":"Array of excluded resources: spaces/repo, models/repo, datasets/repo, papers/paperId, collections/collectionId, users/username, orgs/orgName, buckets/bucketName, kernels/repo","default":[],"type":"array","items":{"type":"string","pattern":"^(spaces|models|datasets|papers|collections|users|orgs|buckets|kernels)\\/.*"}},"required":false},{"name":"namespace","in":"query","schema":{"description":"Namespace to filter by","type":"string"},"required":false},{"name":"includeInvitees","in":"query","schema":{"default":false,"anyOf":[{"type":"boolean"},{}]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"repoType","in":"query","schema":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"type":"string"}]},"required":false},{"name":"discussionId","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"discussionCollectionName","in":"query","schema":{"type":"string"},"required":false},{"name":"spacesTags","in":"query","schema":{"type":"array","items":{"type":"string"}},"required":false}]},"post":{"description":"Quick search for models, datasets, spaces, orgs, users, papers, collections, and buckets","summary":"Quick search","tags":["repo-search"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"q":{"default":"","type":"string"},"limit":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"integer","minimum":1,"maximum":20}]},"lang":{"anyOf":[{"enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},{"type":"string"}]},"library":{"anyOf":[{"enum":["acestep","adapter-transformers","allennlp","anemoi","araclip","aviation-ner","asteroid","audiocraft","audioseal","bagel-mot","bboxmaskpose","ben2","bertopic","big_vision","bionemo","birder","birefnet","bm25s","boltzgen","cancertathomev2","cartesia_pytorch","cartesia_mlx","ccpfn","champ","chatterbox","chaossim","chat_tts","chexmix","chronos-forecasting","clara","clipscope","cloud-agents","collectorvision","colipri","cosyvoice","cotracker","colpali","comet","cosmos","cxr-foundation","deepforest","depth-anything-v2","depth-pro","derm-foundation","describe-anything","dia-tts","dia2","diff-interpretation-tuning","diffree","diffusers","diffusionkit","docking-at-home","doctr","edsnlp","elm","encoderfile","espnet","eupe","fairseq","fastai","fastprint","fasttext","fixer","flair","flextab","fme","gemma.cpp","geometry-crafter","gliner","gliner2","glm-tts","glyph-byt5","granite-library","grok","habibi-tts","hallo","hermes","holomotion","hezar","htrflow","hunyuan-dit","hunyuan3d-2","hunyuanworld-voyager","hy-worldplay","hy-world-2","image-matching-models","imstoucan","index-tts","infinitetalk","infinite-you","intellifold","ising-decoding","keras","tf-keras","keras-hub","kernels","kimi-audio","kittentts","kronos","k2","lyra-2.0","lagernvs","lightning-ir","litert","litert-lm","lerobot","lightglue","liveportrait","longcat-video-avatar-1.5","llama-cpp-python","mini-omni2","mindspore","magi-1","magenta-realtime","magenta-realtime-2","mamba-ssm","manas-1","mars5-tts","matanyone","mesh-anything","merlin","medvae","mitie","ml-agents","ml-sharp","mlx","mlx-image","mlc-llm","model2vec","mobilint","moshi","mtvcraft","multimolecule","nemo","ninfer","nv-medtech","open-oasis","open_clip","openasr","openpeerllm","open-sora","outetts","paddlenlp","PaddleOCR","peft","perception-encoder","phantom-wan","pocket-tts","pruna-ai","pxia","pyannote-audio","py-feat","pythae","quantumpeer","qwen3_tts","recurrentgemma","relik","refiners","renderformer","reverb","rkllm","robo-orchard-lab","rwkv","saelens","scail-2","sam2","sam-3d-body","sam-3d-objects","same","sample-factory","sap-rpt-1-oss","sapiens","sapiens2","seedvr","self-forcing","sentence-transformers","setfit","sklearn","spacy","span-marker","speechbrain","ssr-speech","stable-audio-3","stable-audio-tools","monkeyocr","diffusion-single-file","seed-story","skala","soloaudio","songbloom","stable-baselines3","stanza","supertonic","swarmformer","synthefy-migas","f5-tts","genmo","tencent-song-generation","tensorflowtts","tensorrt","tabpfn","terratorch","tic-clip","timesfm","timee-ts","timm","tirex","tirex-2","torchgeo","transformers","transformers.js","trellis","trellis2","tunejury","ultralytics","univa","uni-3dar","unity-sentis","sana","videoprism","vfi-mamba","vismatch","lvface","voicecraft","voxcpm","vui","vibevoice","videox_fun","wan2.2","wham","whisperkit","yolov10","yolov26","zonos","3dtopia-xl"]},{"type":"string"}]},"type":{"anyOf":[{"type":"array","items":{"enum":["model","dataset","space","org","user","paper","collection","bucket","kernel"]}},{"type":"array","items":{"type":"string"}}]},"orgsFilter":{"anyOf":[{"type":"array","items":{"enum":["own","unwatched"]}},{"type":"array","items":{"type":"string"}}]},"reposFilter":{"anyOf":[{"type":"array","items":{"enum":["skip_disabled","skip_gated","own","own_orgs","granted_access"]}},{"type":"array","items":{"type":"string"}}]},"pipelines":{"description":"Comma-separated or array of pipeline types","anyOf":[{"type":"array","items":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other"]}},{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}]},"exclude":{"description":"Array of excluded resources: spaces/repo, models/repo, datasets/repo, papers/paperId, collections/collectionId, users/username, orgs/orgName, buckets/bucketName, kernels/repo","default":[],"type":"array","items":{"type":"string","pattern":"^(spaces|models|datasets|papers|collections|users|orgs|buckets|kernels)\\/.*"}},"namespace":{"description":"Namespace to filter by","type":"string"},"includeInvitees":{"default":false,"anyOf":[{"type":"boolean"},{}]},"repoName":{"type":"string"},"repoType":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"type":"string"}]},"discussionId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"discussionCollectionName":{"type":"string"},"spacesTags":{"type":"array","items":{"type":"string"}}},"required":["exclude","bucketNamespace"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"datasets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"},"trendingWeight":{"type":"number"}},"required":["id","trendingWeight"],"additionalProperties":false}},"datasetsCount":{"type":"number"},"models":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"},"trendingWeight":{"type":"number"}},"required":["id","trendingWeight"],"additionalProperties":false}},"modelsCount":{"type":"number"},"orgs":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"}},"required":["_id","avatarUrl","fullname","name"],"additionalProperties":false}},"q":{"type":"string"},"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"},"emoji":{"type":"string"},"trendingWeight":{"type":"number"}},"required":["id","emoji","trendingWeight"],"additionalProperties":false}},"spacesCount":{"type":"number"},"users":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatarUrl","fullname","user"],"additionalProperties":false}},"papers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"papersCount":{"type":"number"},"collections":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}},"required":["_id","title"],"additionalProperties":false}},"collectionsCount":{"type":"number"},"buckets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"bucketsCount":{"type":"number"},"kernels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"kernelsCount":{"type":"number"}},"required":["datasets","datasetsCount","models","modelsCount","orgs","q","spaces","spacesCount","users","papers","papersCount","collections","collectionsCount","buckets","bucketsCount","kernels","kernelsCount"],"additionalProperties":false}}},"description":"The quick search results"}},"parameters":[{"name":"q","in":"query","schema":{"default":"","type":"string"},"required":false},{"name":"limit","in":"query","schema":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"integer","minimum":1,"maximum":20}]},"required":false},{"name":"lang","in":"query","schema":{"anyOf":[{"enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},{"type":"string"}]},"required":false},{"name":"library","in":"query","schema":{"anyOf":[{"enum":["acestep","adapter-transformers","allennlp","anemoi","araclip","aviation-ner","asteroid","audiocraft","audioseal","bagel-mot","bboxmaskpose","ben2","bertopic","big_vision","bionemo","birder","birefnet","bm25s","boltzgen","cancertathomev2","cartesia_pytorch","cartesia_mlx","ccpfn","champ","chatterbox","chaossim","chat_tts","chexmix","chronos-forecasting","clara","clipscope","cloud-agents","collectorvision","colipri","cosyvoice","cotracker","colpali","comet","cosmos","cxr-foundation","deepforest","depth-anything-v2","depth-pro","derm-foundation","describe-anything","dia-tts","dia2","diff-interpretation-tuning","diffree","diffusers","diffusionkit","docking-at-home","doctr","edsnlp","elm","encoderfile","espnet","eupe","fairseq","fastai","fastprint","fasttext","fixer","flair","flextab","fme","gemma.cpp","geometry-crafter","gliner","gliner2","glm-tts","glyph-byt5","granite-library","grok","habibi-tts","hallo","hermes","holomotion","hezar","htrflow","hunyuan-dit","hunyuan3d-2","hunyuanworld-voyager","hy-worldplay","hy-world-2","image-matching-models","imstoucan","index-tts","infinitetalk","infinite-you","intellifold","ising-decoding","keras","tf-keras","keras-hub","kernels","kimi-audio","kittentts","kronos","k2","lyra-2.0","lagernvs","lightning-ir","litert","litert-lm","lerobot","lightglue","liveportrait","longcat-video-avatar-1.5","llama-cpp-python","mini-omni2","mindspore","magi-1","magenta-realtime","magenta-realtime-2","mamba-ssm","manas-1","mars5-tts","matanyone","mesh-anything","merlin","medvae","mitie","ml-agents","ml-sharp","mlx","mlx-image","mlc-llm","model2vec","mobilint","moshi","mtvcraft","multimolecule","nemo","ninfer","nv-medtech","open-oasis","open_clip","openasr","openpeerllm","open-sora","outetts","paddlenlp","PaddleOCR","peft","perception-encoder","phantom-wan","pocket-tts","pruna-ai","pxia","pyannote-audio","py-feat","pythae","quantumpeer","qwen3_tts","recurrentgemma","relik","refiners","renderformer","reverb","rkllm","robo-orchard-lab","rwkv","saelens","scail-2","sam2","sam-3d-body","sam-3d-objects","same","sample-factory","sap-rpt-1-oss","sapiens","sapiens2","seedvr","self-forcing","sentence-transformers","setfit","sklearn","spacy","span-marker","speechbrain","ssr-speech","stable-audio-3","stable-audio-tools","monkeyocr","diffusion-single-file","seed-story","skala","soloaudio","songbloom","stable-baselines3","stanza","supertonic","swarmformer","synthefy-migas","f5-tts","genmo","tencent-song-generation","tensorflowtts","tensorrt","tabpfn","terratorch","tic-clip","timesfm","timee-ts","timm","tirex","tirex-2","torchgeo","transformers","transformers.js","trellis","trellis2","tunejury","ultralytics","univa","uni-3dar","unity-sentis","sana","videoprism","vfi-mamba","vismatch","lvface","voicecraft","voxcpm","vui","vibevoice","videox_fun","wan2.2","wham","whisperkit","yolov10","yolov26","zonos","3dtopia-xl"]},{"type":"string"}]},"required":false},{"name":"type","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["model","dataset","space","org","user","paper","collection","bucket","kernel"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"orgsFilter","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["own","unwatched"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"reposFilter","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["skip_disabled","skip_gated","own","own_orgs","granted_access"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"pipelines","in":"query","schema":{"description":"Comma-separated or array of pipeline types","anyOf":[{"type":"array","items":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other"]}},{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}]},"required":false},{"name":"exclude","in":"query","schema":{"description":"Array of excluded resources: spaces/repo, models/repo, datasets/repo, papers/paperId, collections/collectionId, users/username, orgs/orgName, buckets/bucketName, kernels/repo","default":[],"type":"array","items":{"type":"string","pattern":"^(spaces|models|datasets|papers|collections|users|orgs|buckets|kernels)\\/.*"}},"required":false},{"name":"namespace","in":"query","schema":{"description":"Namespace to filter by","type":"string"},"required":false},{"name":"includeInvitees","in":"query","schema":{"default":false,"anyOf":[{"type":"boolean"},{}]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"repoType","in":"query","schema":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"type":"string"}]},"required":false},{"name":"discussionId","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"discussionCollectionName","in":"query","schema":{"type":"string"},"required":false},{"name":"spacesTags","in":"query","schema":{"type":"array","items":{"type":"string"}},"required":false}]}},"/api/spaces/hardware":{"get":{"description":"Get available space hardware","summary":"List space hardware","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"prettyName":{"type":"string"},"cpu":{"type":"string"},"ram":{"type":"string"},"accelerator":{"anyOf":[{"type":"object","properties":{"type":{"enum":["gpu","neuron"]},"model":{"type":"string"},"quantity":{"type":"string"},"vram":{"type":"string"},"manufacturer":{"enum":["Nvidia","AWS"]}},"required":["type","model","quantity","vram","manufacturer"],"additionalProperties":false},{"type":"null"}]},"unitCostMicroUSD":{"type":"number"},"unitCostUSD":{"type":"number"},"unitLabel":{"type":"string"}},"required":["name","prettyName","cpu","ram","accelerator","unitCostMicroUSD","unitCostUSD","unitLabel"],"additionalProperties":false}}}},"description":"Available space hardware (public only)"}}}},"/api/spaces/templates":{"get":{"description":"Returns the catalog of official Space templates. The `repoId` of a template can be passed as `template` when creating a Space through the create-repo endpoint.","summary":"List Space templates","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"templates":{"type":"array","items":{"type":"object","properties":{"sdk":{"enum":["docker","static","gradio"]},"name":{"description":"Human-friendly name of the template (e.g. `JupyterLab`).","type":"string"},"repoId":{"description":"Repo id of the template Space, to pass as `template` on create.","type":"string"},"preferredPrivate":{"description":"Whether the created Space is expected to be private.","type":"boolean"}},"required":["sdk","name","repoId","preferredPrivate"],"additionalProperties":false}}},"required":["templates"],"additionalProperties":false}}},"description":"The list of available Space templates."}}}},"/api/spaces/zero-gpu/quota":{"get":{"description":"Get the authenticated user's current ZeroGPU quota usage and limits","summary":"Get ZeroGPU quota","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"base":{"description":"Total quota in GPU-seconds","type":"number"},"current":{"description":"Remaining quota in GPU-seconds","type":"number"},"resetsAt":{"description":"ISO 8601 timestamp when the quota resets, or null if the quota has not been used yet","anyOf":[{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},{"type":"null"}]},"overquotaUsed":{"description":"Overquota (paid) GPU-seconds consumed","type":"number"},"runs":{"description":"Execution (runs) accounting, or omitted for visitors without a runs limit","type":"object","properties":{"used":{"description":"Executions used in the current runs window","type":"number"},"limit":{"description":"Maximum number of executions allowed in the runs window","type":"number"},"remaining":{"description":"Executions left before the runs limit is reached","type":"number"},"resetsAt":{"description":"ISO 8601 timestamp when the runs window resets, or null if no run has happened yet. Independent of resetsAt.","anyOf":[{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},{"type":"null"}]}},"required":["used","limit","remaining","resetsAt"],"additionalProperties":false}},"required":["base","current","resetsAt"],"additionalProperties":false}}},"description":"The authenticated user's current ZeroGPU quota usage and limits"}}}},"/api/spaces/{namespace}/{repo}/secrets":{"post":{"description":"Upsert Spaces's secret","summary":"Upsert secret","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"default":"","type":"string"}},"required":["key"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Delete Spaces's secret","summary":"Delete secret","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string"}},"required":["key"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"description":"List a Space's secret keys. Values are never returned.","summary":"List secrets","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string"},"description":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["key"],"additionalProperties":false}}}},"description":"Secret keys indexed by name."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/variables":{"post":{"description":"Upsert Spaces's variable","summary":"Upsert variable","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"default":"","type":"string"}},"required":["key"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Delete Spaces's variable","summary":"Delete variable","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string"}},"required":["key"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"description":"List a Space's variables with their values.","summary":"List variables","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"},"description":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["key","value"],"additionalProperties":false}}}},"description":"Variables indexed by name"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/duplicate":{"post":{"summary":"Duplicate a repository","tags":["repos"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"repository":{"type":"string"},"private":{"type":"boolean"},"visibility":{"enum":["private","public","protected"]},"resourceGroupId":{"anyOf":[{"anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}]},{"type":"null"}]},"hardware":{"default":"","enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6",""]},"sleepTimeSeconds":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"const":-1}]},"secrets":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"type":"string"}},"required":["key","value"]}},"variables":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"type":"string"}},"required":["key","value"]}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the duplicated Space.","type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}}},"required":["repository"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}},"description":"Repository created, url is given"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["spaces"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/repos/create":{"post":{"summary":"Create a new repository","tags":["repos"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","allOf":[{"type":"object","properties":{"name":{"type":"string"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}]},"region":{"description":"The region where the repository is hosted.","enum":["us","eu"]},"license":{"description":"The license of the repository. You can select 'Other' if your license is not in the list","enum":["apache-2.0","mit","openrail","bigscience-openrail-m","creativeml-openrail-m","bigscience-bloom-rail-1.0","bigcode-openrail-m","afl-3.0","artistic-2.0","bsl-1.0","bsd","bsd-2-clause","bsd-3-clause","bsd-3-clause-clear","c-uda","cc","cc0-1.0","cc-by-2.0","cc-by-2.5","cc-by-3.0","cc-by-4.0","cc-by-sa-3.0","cc-by-sa-4.0","cc-by-nc-2.0","cc-by-nc-3.0","cc-by-nc-4.0","cc-by-nd-4.0","cc-by-nc-nd-3.0","cc-by-nc-nd-4.0","cc-by-nc-sa-2.0","cc-by-nc-sa-3.0","cc-by-nc-sa-4.0","cdla-sharing-1.0","cdla-permissive-1.0","cdla-permissive-2.0","wtfpl","ecl-2.0","epl-1.0","epl-2.0","etalab-2.0","eupl-1.1","eupl-1.2","agpl-3.0","gfdl","gpl","gpl-2.0","gpl-3.0","lgpl","lgpl-2.1","lgpl-3.0","isc","h-research","intel-research","lppl-1.3c","ms-pl","apple-ascl","apple-amlr","mpl-2.0","odc-by","odbl","openmdw-1.0","openmdw-1.1","openrail++","osl-3.0","postgresql","ofl-1.1","ncsa","unlicense","zlib","pddl","lgpl-lr","deepfloyd-if-license","fair-noncommercial-research-license","llama2","llama3","llama3.1","llama3.2","llama3.3","llama4","grok2-community","gemma","unknown","other"]},"license_name":{"type":"string","pattern":"^[a-z0-9-.]+$"},"license_link":{"anyOf":[{"const":"LICENSE"},{"const":"LICENSE.md"},{"type":"string","format":"uri"}]},"private":{"description":"Repository visibility. Defaults to public. Cannot be specified along with visibility.","anyOf":[{"type":"boolean"},{"type":"null"}]},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces. Cannot be specified along with private.","enum":["private","public","protected"]},"resourceGroupId":{"anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}]},"files":{"type":"array","items":{"type":"object","properties":{"content":{"type":"string"},"path":{"type":"string"},"encoding":{"enum":["utf-8","base64"]}},"required":["content","path"]}}},"required":["name"]},{"anyOf":[{"type":"object","properties":{"type":{"const":"dataset"}},"required":["type"]},{"type":"object","properties":{"type":{"default":"model","const":"model"}}},{"type":"object","properties":{"type":{"const":"kernel"}},"required":["type"]},{"type":"object","properties":{"type":{"const":"space"},"template":{"type":"string"},"short_description":{"type":"string","maxLength":60},"hardware":{"description":"The hardware flavor of the space. If you select 'zero-a10g' or 'zerogpu', the SDK must be Gradio.","enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6","zerogpu"]},"secrets":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"type":"string"}},"required":["key","value"]}},"variables":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"type":"string"}},"required":["key","value"]}},"sleepTimeSeconds":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"const":-1}]},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the Space container.","type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}},"sdk":{"description":"The Space SDK. `static` is free for everyone. `gradio` and `docker` run on compute: on the free `cpu-basic` flavor they require a subscription (PRO for users, Team/Enterprise for orgs), while paid hardware only requires billing (a payment method and prepaid credits).","enum":["gradio","docker","static"]},"sdkVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"devModeEnabled":{"type":"boolean"}},"required":["type","sdk"]}]}]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}},"required":["url","name","id"],"additionalProperties":false}}},"description":"Repository created, url is given"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"url":{"type":"string"}},"required":["error","url"],"additionalProperties":false}}},"description":"Repository already exists, url is given"}}}},"/api/repos/move":{"post":{"description":"Move or rename a repo","summary":"Move repo","tags":["repos"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fromRepo":{"examples":["black-forest-labs/FLUX.1-dev"],"type":"string"},"toRepo":{"type":"string"},"type":{"default":"model","enum":["dataset","model","space","bucket","kernel"]}},"required":["fromRepo","toRepo"]}}}}}},"/api/{repoType}/{namespace}/{repo}/sql-console/embed/{id}":{"patch":{"description":"Update SQL Console embed","summary":"Update embed","tags":["sql-console"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","maxLength":200},"private":{"type":"boolean"},"sql":{"type":"string"}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"repoId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"views":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"displayName":{"type":"string"},"viewName":{"type":"string"}},"required":["key","displayName","viewName"],"additionalProperties":false}},"sql":{"type":"string"},"title":{"type":"string"},"userId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"slug":{"type":"string"},"private":{"type":"boolean"},"rating":{"type":"number"},"justification":{"type":"string"}},"required":["_id","repoId","views","sql","title","userId","createdAt","slug"],"additionalProperties":false}}},"description":"Updated SQL console embed"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["datasets"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Delete SQL Console embed","summary":"Delete embed","tags":["sql-console"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}},"description":"SQL console embed deleted successfully"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["datasets"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/sql-console/embed":{"post":{"description":"Create SQL Console embed","summary":"Create embed","tags":["sql-console"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sql":{"type":"string"},"title":{"type":"string","maxLength":200},"private":{"type":"boolean"},"views":{"minItems":1,"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"displayName":{"type":"string"},"viewName":{"type":"string"}},"required":["key","displayName","viewName"]}}},"required":["sql","title","views"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"repoId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"views":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"displayName":{"type":"string"},"viewName":{"type":"string"}},"required":["key","displayName","viewName"],"additionalProperties":false}},"sql":{"type":"string"},"title":{"type":"string"},"userId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"slug":{"type":"string"},"private":{"type":"boolean"},"rating":{"type":"number"},"justification":{"type":"string"}},"required":["_id","repoId","views","sql","title","userId","createdAt","slug"],"additionalProperties":false}}},"description":"Created SQL console embed"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["datasets"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/spaces/{namespace}/{repo}/resolve/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/datasets/{namespace}/{repo}/resolve/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/{namespace}/{repo}/resolve/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/api/resolve-cache/spaces/{namespace}/{repo}/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/api/resolve-cache/datasets/{namespace}/{repo}/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/api/resolve-cache/models/{namespace}/{repo}/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/{namespace}/{repo}/ask-access":{"post":{"description":"Request access to a gated repository. The fields requested by repository card metadata (https://huggingface.co/docs/hub/en/models-gated#customize-requested-information)","summary":"Request access","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"responses":{"303":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/datasets/{namespace}/{repo}/ask-access":{"post":{"description":"Request access to a gated repository. The fields requested by repository card metadata (https://huggingface.co/docs/hub/en/models-gated#customize-requested-information)","summary":"Request access","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"responses":{"303":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/{namespace}/{repo}/user-access-report":{"get":{"description":"Export a report of all access requests for a gated repository","summary":"Export access report","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The report of all access requests for a gated repository","headers":{"Content-Disposition":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"The filename of the report"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/datasets/{namespace}/{repo}/user-access-report":{"get":{"description":"Export a report of all access requests for a gated repository","summary":"Export access report","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The report of all access requests for a gated repository","headers":{"Content-Disposition":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"The filename of the report"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/user-access-request/cancel":{"post":{"description":"Cancel the current user's access request to a gated repository","summary":"Cancel access request","tags":["models"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/user-access-request/cancel":{"post":{"description":"Cancel the current user's access request to a gated repository","summary":"Cancel access request","tags":["datasets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/user-access-request/{status}":{"get":{"description":"List access requests for a gated repository","summary":"List access requests","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"user":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numBuckets":{"type":"number"},"numKernels":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"numFollowingOrgs":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"primaryOrgAvatarUrl":{"type":"string"},"type":{"const":"user"},"email":{"type":"string"},"verifiedOrgNames":{"type":"array","items":{"type":"string"}}},"required":["_id","avatarUrl","fullname","isPro","user","type","verifiedOrgNames"],"additionalProperties":false},"grantedBy":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numBuckets":{"type":"number"},"numKernels":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"numFollowingOrgs":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"primaryOrgAvatarUrl":{"type":"string"},"type":{"const":"user"},"email":{"type":"string"}},"required":["_id","avatarUrl","fullname","isPro","user","type"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]},"status":{"enum":["accepted","rejected","pending"]},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"timestamp":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"reviewedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["status","timestamp"],"additionalProperties":false}}}},"description":"List of access requests for the gated repository","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"path","required":true,"schema":{"type":"string","enum":["pending","accepted","rejected"]}},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":10,"maximum":1000},"required":false},{"name":"after","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"before","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]}},"/api/datasets/{namespace}/{repo}/user-access-request/{status}":{"get":{"description":"List access requests for a gated repository","summary":"List access requests","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"user":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numBuckets":{"type":"number"},"numKernels":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"numFollowingOrgs":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"primaryOrgAvatarUrl":{"type":"string"},"type":{"const":"user"},"email":{"type":"string"},"verifiedOrgNames":{"type":"array","items":{"type":"string"}}},"required":["_id","avatarUrl","fullname","isPro","user","type","verifiedOrgNames"],"additionalProperties":false},"grantedBy":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numBuckets":{"type":"number"},"numKernels":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"numFollowingOrgs":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"primaryOrgAvatarUrl":{"type":"string"},"type":{"const":"user"},"email":{"type":"string"}},"required":["_id","avatarUrl","fullname","isPro","user","type"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]},"status":{"enum":["accepted","rejected","pending"]},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"timestamp":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"reviewedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["status","timestamp"],"additionalProperties":false}}}},"description":"List of access requests for the gated repository","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"path","required":true,"schema":{"type":"string","enum":["pending","accepted","rejected"]}},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":10,"maximum":1000},"required":false},{"name":"after","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"before","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]}},"/api/models/{namespace}/{repo}/user-access-request/handle":{"post":{"description":"Handle a user's access request to a gated repository","summary":"Handle access request","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"description":"Either userId or user must be provided","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"description":"Either userId or user must be provided","type":"string"},"status":{"enum":["accepted","rejected","pending"]},"rejectionReason":{"type":"string","maxLength":200}},"required":["status"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/user-access-request/handle":{"post":{"description":"Handle a user's access request to a gated repository","summary":"Handle access request","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"description":"Either userId or user must be provided","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"description":"Either userId or user must be provided","type":"string"},"status":{"enum":["accepted","rejected","pending"]},"rejectionReason":{"type":"string","maxLength":200}},"required":["status"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/user-access-request/batch":{"post":{"description":"Accept or reject up to 100 access requests for a single gated repository in one call. The same `status` (and optional `rejectionReason`) is applied to every request in the list.","summary":"Batch handle access requests","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"enum":["accepted","rejected"]},"rejectionReason":{"type":"string","maxLength":200},"requests":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"userId":{"description":"Either userId or user must be provided","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"description":"Either userId or user must be provided","type":"string"}}}}},"required":["status","requests"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"user":{"type":"string"},"ok":{"type":"boolean"},"error":{"enum":["user_not_found","request_not_found"]}},"required":["ok"],"additionalProperties":false}}}},"description":"Per-request outcomes, in the same order as the input requests array."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/user-access-request/batch":{"post":{"description":"Accept or reject up to 100 access requests for a single gated repository in one call. The same `status` (and optional `rejectionReason`) is applied to every request in the list.","summary":"Batch handle access requests","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"enum":["accepted","rejected"]},"rejectionReason":{"type":"string","maxLength":200},"requests":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"userId":{"description":"Either userId or user must be provided","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"description":"Either userId or user must be provided","type":"string"}}}}},"required":["status","requests"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"user":{"type":"string"},"ok":{"type":"boolean"},"error":{"enum":["user_not_found","request_not_found"]}},"required":["ok"],"additionalProperties":false}}}},"description":"Per-request outcomes, in the same order as the input requests array."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/user-access-request/grant":{"post":{"description":"Grant access to a user for a gated repository","summary":"Grant access","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The user to grant access to either by userId or user","type":"object","properties":{"userId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"type":"string"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/user-access-request/grant":{"post":{"description":"Grant access to a user for a gated repository","summary":"Grant access","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The user to grant access to either by userId or user","type":"object","properties":{"userId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"type":"string"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/volumes":{"put":{"summary":"Set Space volumes","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"volumes":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}}},"required":["volumes"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete Space volumes","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/logs/{logType}":{"get":{"description":"Get logs for a specific Space in a streaming fashion, with SSE protocol","summary":"Stream logs","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"logType","in":"path","required":true,"schema":{"type":"string","enum":["build","run"]}},{"name":"tail","in":"query","schema":{"description":"Maximum number of lines to return from the logs.","type":"integer","minimum":0,"maximum":9007199254740991},"required":false}]}},"/api/spaces/{namespace}/{repo}/events":{"get":{"description":"Get status updates for a specific Space in a streaming fashion, with SSE protocol","summary":"Stream events","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"session_uuid","in":"query","schema":{"type":"string"},"required":false}]}},"/api/spaces/{namespace}/{repo}/metrics":{"get":{"description":"Get live metrics for a specific Space in a streaming fashion, with SSE protocol, such as current Zero-GPU usage","summary":"Stream metrics","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/daily_papers":{"get":{"summary":"Get Daily Papers","tags":["papers"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"description":"Daily paper data for API responses","type":"object","properties":{"paper":{"description":"Paper data with metadata","type":"object","properties":{"id":{"type":"string"},"authors":{"type":"array","items":{"description":"Paper author information","type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"statusLastChangedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"user":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"hidden":{"type":"boolean"}},"required":["_id","name","hidden"],"additionalProperties":false}},"mediaUrls":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"submittedOnDailyAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"title":{"type":"string"},"submittedOnDailyBy":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"summary":{"type":"string"},"upvotes":{"type":"number"},"withdrawnAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"discussionId":{"type":"string"},"projectPage":{"type":"string"},"githubRepo":{"type":"string"},"ai_summary":{"type":"string"},"ai_keywords":{"type":"array","items":{"type":"string"}},"ai_summary_model":{"type":"string"},"githubStars":{"type":"number"}},"required":["id","authors","publishedAt","title","summary","upvotes","discussionId"],"additionalProperties":false},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"title":{"type":"string"},"summary":{"type":"string"},"mediaUrls":{"type":"array","items":{"type":"string"}},"thumbnail":{"type":"string"},"numComments":{"type":"number"},"submittedBy":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"isAuthorParticipating":{"type":"boolean"}},"required":["paper","publishedAt","title","summary","thumbnail","numComments","submittedBy","isAuthorParticipating"],"additionalProperties":false}}}},"description":"List of daily papers"}},"parameters":[{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"required":false},{"name":"date","in":"query","schema":{"type":"string","format":"date","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))$"},"required":false},{"name":"week","in":"query","schema":{"type":"string","pattern":"^\\d{4}-W(0[1-9]|[1-4][0-9]|5[0-2])$"},"required":false},{"name":"month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"required":false},{"name":"submitter","in":"query","schema":{"type":"string"},"required":false},{"name":"sort","in":"query","schema":{"default":"publishedAt","enum":["publishedAt","trending"]},"required":false}]}},"/api/papers":{"get":{"description":"List arXiv papers sorted by published date","summary":"List papers","tags":["papers"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"authors":{"type":"array","items":{"description":"Paper author information","type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"statusLastChangedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"user":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"hidden":{"type":"boolean"}},"required":["_id","name","hidden"],"additionalProperties":false}},"summary":{"type":"string"},"projectPage":{"type":"string"},"githubRepo":{"type":"string"},"ai_summary":{"type":"string"},"organization":{"type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatar":{"type":"string"}},"required":["_id","name"],"additionalProperties":false}},"required":["id","title","upvotes","publishedAt","authors","summary"],"additionalProperties":false}}}},"description":"List of papers"}},"parameters":[{"name":"cursor","in":"query","schema":{"description":"Pagination cursor","type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"required":false}]}},"/api/papers/search":{"get":{"description":"Perform a hybrid semantic / full-text-search on papers","summary":"Search papers","tags":["papers"],"parameters":[{"name":"q","in":"query","schema":{"default":"","type":"string","maxLength":250},"required":false},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":120},"required":false}]}},"/api/papers/index":{"post":{"description":"Index a paper from arXiv by its ID. If the paper is already indexed, only its authors can re-index it.","summary":"Index a paper","tags":["papers"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"arxivId":{"description":"The arXiv ID of the paper to index (e.g. 2301.00001)","type":"string","pattern":"^\\d{4}\\.\\d{4,5}$"}},"required":["arxivId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}},"description":"Empty object on success"}}}},"/api/papers/{paperId}":{"get":{"summary":"Get a paper","tags":["papers"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"authors":{"type":"array","items":{"description":"Paper author information","type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"statusLastChangedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"user":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"hidden":{"type":"boolean"}},"required":["_id","name","hidden"],"additionalProperties":false}},"mediaUrls":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"submittedOnDailyAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"title":{"type":"string"},"submittedOnDailyBy":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"summary":{"type":"string"},"upvotes":{"type":"number"},"withdrawnAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"discussionId":{"type":"string"},"projectPage":{"type":"string"},"githubRepo":{"type":"string"},"ai_summary":{"type":"string"},"ai_keywords":{"type":"array","items":{"type":"string"}},"ai_summary_model":{"type":"string"},"githubStars":{"type":"number"},"submissionDeadline":{"description":"only available when field contains 'submissionDeadline'","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"linkedModels":{"type":"array","items":{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated"],"additionalProperties":false}},"numTotalModels":{"type":"number"},"linkedDatasets":{"type":"array","items":{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified"],"additionalProperties":false}},"numTotalDatasets":{"type":"number"},"linkedSpaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"emoji":{"type":"string"},"running":{"type":"boolean"},"shortDescription":{"type":"string"},"featured":{"type":"boolean"}},"required":["id","emoji","running","featured"],"additionalProperties":false}},"numTotalSpaces":{"type":"number"},"comments":{"description":"only available when field contains 'comments'","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}}},"required":["id","authors","publishedAt","title","summary","upvotes","discussionId","linkedModels","numTotalModels","linkedDatasets","numTotalDatasets","linkedSpaces","numTotalSpaces"],"additionalProperties":false}}},"description":"Paper data"}},"parameters":[{"name":"paperId","in":"path","required":true,"schema":{"type":"string"}},{"name":"field","in":"query","schema":{"anyOf":[{"enum":["submissionDeadline","comments"]},{"type":"array","items":{"enum":["submissionDeadline","comments"]}}]},"required":false}]}},"/api/papers/{paperId}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"paperId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/papers/{paperId}/comment/{commentId}/reply":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"paperId","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/papers/{paperId}/links":{"post":{"description":"Update the project page, GitHub repository, or submitting organization for a paper. Requires the requester to be the paper author, the Daily Papers submitter, or a papers admin.","summary":"Update paper links","tags":["papers"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"projectPage":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"githubRepo":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"organizationId":{"anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}},"description":"Paper links updated"}},"parameters":[{"name":"paperId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/posts/{username}/{postSlug}":{"delete":{"summary":"Delete a discussion","tags":["discussions"],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"postSlug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/posts/{username}/{postSlug}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"postSlug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/posts/{username}/{postSlug}/comment/{commentId}/reply":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"postSlug","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}-{id}":{"get":{"summary":"Get a collection","tags":["collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The collection data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"summary":"Update a collection","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991},"private":{"type":"boolean"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"title":{"type":"string","minLength":1,"maxLength":60},"description":{"type":"string","maxLength":150},"gating":{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"]},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"]}},"required":["mode","notifications"]}]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}},"description":"The updated collection"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a collection","tags":["collections"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}":{"get":{"summary":"Get a collection","tags":["collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The collection data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"summary":"Update a collection","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991},"private":{"type":"boolean"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"title":{"type":"string","minLength":1,"maxLength":60},"description":{"type":"string","maxLength":150},"gating":{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"]},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"]}},"required":["mode","notifications"]}]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}},"description":"The updated collection"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a collection","tags":["collections"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}-{id}/items":{"post":{"description":"Add an item to a collection","summary":"Add item","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"item":{"type":"object","properties":{"type":{"enum":["paper","collection","space","model","dataset","bucket"]},"id":{"type":"string"}},"required":["type","id"]},"note":{"type":"string","maxLength":500}},"required":["item"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The updated collection"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}/items":{"post":{"description":"Add an item to a collection","summary":"Add item","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"item":{"type":"object","properties":{"type":{"enum":["paper","collection","space","model","dataset","bucket"]},"id":{"type":"string"}},"required":["type","id"]},"note":{"type":"string","maxLength":500}},"required":["item"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The updated collection"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}-{id}/items/batch":{"post":{"description":"Batch update items in a collection","summary":"Batch update items","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"action":{"enum":["update"]},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"data":{"type":"object","properties":{"gallery":{"type":"array","items":{"type":"string","format":"uri"}},"note":{"type":"string","maxLength":500},"position":{"type":"integer","minimum":0,"maximum":9007199254740991}}}},"required":["action","_id","data"]}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}/items/batch":{"post":{"description":"Batch update items in a collection","summary":"Batch update items","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"action":{"enum":["update"]},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"data":{"type":"object","properties":{"gallery":{"type":"array","items":{"type":"string","format":"uri"}},"note":{"type":"string","maxLength":500},"position":{"type":"integer","minimum":0,"maximum":9007199254740991}}}},"required":["action","_id","data"]}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}-{id}/items/{itemId}":{"delete":{"description":"Delete an item from a collection","summary":"Delete item","tags":["collections"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}/items/{slug}":{"delete":{"description":"Delete an item from a collection","summary":"Delete item","tags":["collections"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections":{"post":{"summary":"Create a collection","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":60},"description":{"type":"string","maxLength":150},"namespace":{"type":"string"},"item":{"type":"object","properties":{"type":{"enum":["paper","collection","space","model","dataset","bucket"]},"id":{"type":"string"}},"required":["type","id"]},"private":{"description":"If not provided, the collection will be public. This field will respect the organization's visibility setting.","type":"boolean"},"resourceGroupId":{"description":"Assign the collection to a resource group of the owning organization. Only valid for organization-owned collections.","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["title","namespace"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The created collection"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"slug":{"type":"string"}},"required":["error"],"additionalProperties":false}}},"description":"The collection already exists"}}},"get":{"summary":"Get collections","tags":["collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","theme","private","upvotes","isUpvotedByUser","items"],"additionalProperties":false}},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"private":{"type":"boolean"},"upvotes":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"name":{"type":"string"}},"required":["title","private","upvotes","name"],"additionalProperties":false}}]}}},"description":"The collection data","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"item","in":"query","schema":{"anyOf":[{"type":"array","items":{"type":"string","pattern":"^spaces|models|datasets|papers\\/.*"}},{"type":"string","pattern":"^spaces|models|datasets|papers\\/.*"}]},"required":false},{"name":"owner","in":"query","schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"string"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}]},"required":false},{"name":"q","in":"query","schema":{"type":"string"},"required":false},{"name":"sort","in":"query","schema":{"default":"trending","enum":["upvotes","lastModified","trending"]},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"expand","in":"query","schema":{"default":true},"required":false},{"name":"limit","in":"query","schema":{"default":10,"type":"number","minimum":1,"maximum":10000},"required":false}]}},"/api/collections/{namespace}/{slug}-{id}/resource-group":{"get":{"summary":"Get collection resource group","tags":["collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}}},"description":"The resource group the collection currently belongs to"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"description":"Assign, move, or unassign an organization-owned collection to a resource group. Pass null to unassign. User-owned collections are not eligible.","summary":"Set collection resource group","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resourceGroupId":{"description":"The resource group to assign the collection to. If null, the collection is removed from any resource group.","anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},{"type":"null"}]}},"required":["resourceGroupId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"private":{"type":"boolean"},"addedBy":{"type":"string"}},"required":["id","slug","title","private","addedBy"],"additionalProperties":false}}},"description":"Minimal information about the collection after the assignment"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}/resource-group":{"get":{"summary":"Get collection resource group","tags":["collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}}},"description":"The resource group the collection currently belongs to"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"description":"Assign, move, or unassign an organization-owned collection to a resource group. Pass null to unassign. User-owned collections are not eligible.","summary":"Set collection resource group","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resourceGroupId":{"description":"The resource group to assign the collection to. If null, the collection is removed from any resource group.","anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},{"type":"null"}]}},"required":["resourceGroupId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"private":{"type":"boolean"},"addedBy":{"type":"string"}},"required":["id","slug","title","private","addedBy"],"additionalProperties":false}}},"description":"Minimal information about the collection after the assignment"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}":{"post":{"summary":"Create bucket","tags":["buckets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Bucket creation options","type":"object","properties":{"private":{"description":"Bucket visibility. Defaults to public","anyOf":[{"type":"boolean"},{"type":"null"}]},"resourceGroupId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"cdn":{"description":"CDN pre-warming regions","type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"]}},"region":{"description":"The region where the bucket is hosted.","enum":["us","eu"]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}},"required":["url","name","id"],"additionalProperties":false}}},"description":"Bucket created, url is given"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"url":{"type":"string"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}},"required":["error","url","id"],"additionalProperties":false}}},"description":"Bucket already exists, url is given"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete bucket","tags":["buckets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"summary":"Get bucket details","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions"],"additionalProperties":false}}},"description":"Bucket overview information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}/settings":{"put":{"summary":"Update bucket settings","tags":["buckets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"anyOf":[{"type":"boolean"},{}]},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"]}}},"required":["cdnRegions"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"anyOf":[{"type":"boolean"},{"type":"boolean"}]},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}}},"additionalProperties":false}}},"description":"The updated bucket settings."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}":{"get":{"summary":"List namespace buckets","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"description":"Bucket overview information","type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions"],"additionalProperties":false}}}},"description":"List of buckets"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"},"required":false}]}},"/buckets/{namespace}/{repo}/resolve/{path}":{"get":{"description":"Returns file metadata including size, hash, and links to XET authentication","summary":"Get file metadata","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"},"contentType":{"description":"The content type of the file","type":"string"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"XET file info returned when the Accept header is set to `application/vnd.xet-fileinfo+json`. Otherwise, a 302 redirect is returned."},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file on the xet bridge (default when no specific Accept header is set)"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}},"description":"File path required"},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}},"description":"Bucket or file not found"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"noContentDisposition","in":"query","schema":{},"required":false},{"name":"download","in":"query","schema":{},"required":false},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info","const":"application/vnd.xet-fileinfo+json"}}]}},"/api/buckets/{namespace}/{repo}/batch":{"post":{"description":"Accepts NDJSON (newline-delimited JSON) where each line is an addFile, copyFile, or deleteFile instruction.\nAll add/copy operations must come before all delete operations.\n\nJSON-lines payload:\n```json\n\t'{\"type\":\"addFile\",\"path\":\"...\",\"xetHash\":\"...\",\"mtime\":...,\"mtimeNanos\":...,\"contentType\":\"...\"}' +\n\t'{\"type\":\"copyFile\",\"path\":\"...\",\"xetHash\":\"...\",\"sourceRepoType\":\"...\",\"sourceRepoId\":\"...\",\"mtime\":...,\"mtimeNanos\":...,\"contentType\":\"...\"}' +\n\t'{\"type\":\"deleteFile\",\"path\":\"...\"}'\n```","summary":"Batch file operations","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all operations succeeded","type":"boolean"},"processed":{"description":"Total number of operations attempted","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of successful operations","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"List of failed operations","type":"array","items":{"type":"object","properties":{"path":{"description":"File path that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["path","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Batch operation status"},"422":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all operations succeeded","type":"boolean"},"processed":{"description":"Total number of operations attempted","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of successful operations","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"List of failed operations","type":"array","items":{"type":"object","properties":{"path":{"description":"File path that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["path","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Batch operation status"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}/tree/{path}":{"get":{"summary":"List files","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory"]},"path":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"xetHash":{"description":"Not defined for directories","type":"string"},"mtime":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"mtimeNanos":{"description":"Sub-millisecond remainder of mtime, in nanoseconds (0\u2013999_999)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"contentType":{"type":"string"}},"required":["type","path","uploadedAt"],"additionalProperties":false}}}},"description":"List of files and directories","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Pagination link header"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"limit","in":"query","schema":{"maximum":5000,"default":1000,"type":"integer","minimum":1},"required":false},{"name":"cursor","in":"query","schema":{"description":"Pagination cursor","type":"string"},"required":false},{"name":"recursive","in":"query","schema":{"description":"When false, returns collapsed directory entries instead of listing all files recursively. The number of entries returned can then be less than the limit, but there will always be a pagination link if there are more entries. Note: non-recursive listing hasn't a strong consistency guarantees.","default":true},"required":false},{"name":"sort","in":"query","schema":{"description":"Sort order. `path` (default) sorts lexicographically; `uploadedAt` sorts by most recent upload first. In recursive mode `uploadedAt` is only supported at the bucket root (no path prefix). In non-recursive mode, only supported at root or exact folder prefixes.","default":"path","enum":["path","uploadedAt"]},"required":false},{"name":"direction","in":"query","schema":{"description":"Sort direction. Defaults to `asc` for `path` and `desc` for `uploadedAt`.","enum":["asc","desc"]},"required":false}]}},"/api/buckets/{namespace}/{repo}/paths-info":{"post":{"summary":"List paths info","tags":["buckets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paths":{"anyOf":[{"maxItems":2000,"type":"array","items":{"type":"string"}},{"type":"string"}]}},"required":["paths"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory"]},"path":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"xetHash":{"description":"Not defined for directories","type":"string"},"mtime":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"mtimeNanos":{"description":"Sub-millisecond remainder of mtime, in nanoseconds (0\u2013999_999)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"contentType":{"type":"string"}},"required":["type","path","uploadedAt"],"additionalProperties":false}}}},"description":"List of found files (missing paths are omitted)"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/hardware":{"get":{"description":"Get available job hardware","summary":"Get job hardware","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"prettyName":{"type":"string"},"cpu":{"type":"string"},"ram":{"type":"string"},"ephemeralStorage":{"type":"string"},"accelerator":{"anyOf":[{"type":"object","properties":{"type":{"enum":["gpu","neuron"]},"model":{"type":"string"},"quantity":{"type":"string"},"vram":{"type":"string"},"manufacturer":{"enum":["Nvidia","AWS"]}},"required":["type","model","quantity","vram","manufacturer"],"additionalProperties":false},{"type":"null"}]},"unitCostMicroUSD":{"type":"number"},"unitCostUSD":{"type":"number"},"unitLabel":{"type":"string"}},"required":["name","prettyName","cpu","ram","ephemeralStorage","accelerator","unitCostMicroUSD","unitCostUSD","unitLabel"],"additionalProperties":false}}}},"description":"Available job hardware (public only)"}}}},"/api/jobs/{namespace}":{"get":{"description":"List of jobs for an entity","summary":"List jobs","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}}},"description":"The list of jobs","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"label","in":"query","schema":{"description":"Filter jobs by label. Format: 'key=value' (e.g., 'environment=production'). Repeat the parameter to filter by several labels.","anyOf":[{"description":"Filter jobs by label. Format: 'key=value' (e.g., 'environment=production').","type":"string","pattern":"^[a-zA-Z0-9._-]+=[a-zA-Z0-9._-]*$"},{"type":"array","items":{"description":"Filter jobs by label. Format: 'key=value' (e.g., 'environment=production').","type":"string","pattern":"^[a-zA-Z0-9._-]+=[a-zA-Z0-9._-]*$"}}]},"required":false},{"name":"stage","in":"query","schema":{"description":"Filter jobs by status stage. Repeat the parameter to filter by several stages.","anyOf":[{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},{"type":"array","items":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]}}]},"required":false},{"name":"cursor","in":"query","schema":{"description":"Pagination cursor obtained from the `rel=\"next\"` link of a previous response's `Link` header.","type":"string","maxLength":2048},"required":false}]},"post":{"summary":"Start a job","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"additionalProperties":{"type":"string"}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"arch":{"enum":["amd64","arm64"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"attempts":{"description":"Max number of attempts to make. For example, if you set this to 3, the job will be retried up to 2 times if it fails.","default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the job container.","minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}},"expose":{"description":"Ports to expose publicly through the jobs proxy. Each port is reachable at `https://--.`. Access requires a HF token with read access to the job's namespace, except for ports also listed in `portsPublic`.","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"]},"ssh":{"description":"When `enabled`, the job's container is reachable over SSH at `ssh @ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub.","type":"object","properties":{"enabled":{"default":false,"type":"boolean"}}}},"required":["flavor"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job after it has been started"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/count":{"get":{"description":"Count the number of jobs for an entity with optional status stage filter","summary":"Count jobs","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"count":{"type":"number"}},"required":["count"],"additionalProperties":false}}},"description":"The count of jobs matching the filter"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"stage","in":"query","schema":{"anyOf":[{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},{"type":"array","items":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]}}]},"required":false}]}},"/api/jobs/{namespace}/{jobId}":{"get":{"summary":"Get a job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/logs":{"get":{"description":"Stream the logs of a job, using SSE","summary":"Stream job logs","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tail","in":"query","schema":{"description":"Maximum number of lines to return from the logs.","type":"integer","minimum":0,"maximum":9007199254740991},"required":false}]}},"/api/jobs/{namespace}/{jobId}/metrics":{"get":{"description":"Stream the metrics of a job, using SSE","summary":"Stream job metrics","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/events":{"get":{"description":"Stream the events of a job, using SSE","summary":"Stream job events","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/cancel":{"post":{"summary":"Cancel a job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job after it has been canceled"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/duplicate":{"post":{"description":"Duplicate an existing job, re-using its spec","summary":"Duplicate a job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The new job after it has been duplicated"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/labels":{"put":{"description":"Replace user-provided labels on a job","summary":"Update job labels","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"labels":{"description":"The new labels to set on the job. Replaces all existing labels.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}}},"required":["labels"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job after labels have been updated"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/expose":{"put":{"description":"Replace the exposed ports of a running job, applied live (no re-run). Ports listed in `portsPublic` are reachable without any authentication.","summary":"Update job exposed ports","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job after its exposed ports have been updated"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}":{"post":{"summary":"Create a scheduled job","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"additionalProperties":{"type":"string"}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"arch":{"enum":["amd64","arm64"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"attempts":{"description":"Max number of attempts to make. For example, if you set this to 3, the job will be retried up to 2 times if it fails.","default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the job container.","minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}},"expose":{"description":"Ports to expose publicly through the jobs proxy. Each port is reachable at `https://--.`. Access requires a HF token with read access to the job's namespace, except for ports also listed in `portsPublic`.","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"]},"ssh":{"description":"When `enabled`, the job's container is reachable over SSH at `ssh @ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub.","type":"object","properties":{"enabled":{"default":false,"type":"boolean"}}}},"required":["flavor"]},"schedule":{"description":"CRON schedule expression (e.g., '0 9 * * 1' for 9 AM every Monday).","type":"string","pattern":"^(?:(@(annually|yearly|monthly|weekly|daily|hourly))|((((\\d+,)+\\d+|((\\*|\\d+)(\\/|-)\\d+)|\\d+|\\*) ?){5,7}))$"},"suspend":{"description":"Whether the scheduled job is suspended (paused)","default":false,"type":"boolean"},"concurrency":{"description":"Whether multiple instances of this job can run concurrently","default":false,"type":"boolean"}},"required":["jobSpec","schedule"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}},"description":"The scheduled job data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"description":"List scheduled jobs for an entity","summary":"List scheduled jobs","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}}},"description":"Array of scheduled job data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"label","in":"query","schema":{"description":"Filter scheduled jobs by label. Format: 'key=value' (e.g., 'environment=production').","type":"string","pattern":"^[a-zA-Z0-9._-]+=[a-zA-Z0-9._-]*$"},"required":false}]}},"/api/scheduled-jobs/{namespace}/{jobId}":{"get":{"summary":"Get a scheduled job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}},"description":"The scheduled job data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a scheduled job","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/suspend":{"post":{"summary":"Suspend a scheduled job","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/resume":{"post":{"summary":"Resume a scheduled job","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/run":{"post":{"description":"Trigger a scheduled job run. Trigger a scheduled job to run immediately. Throws an error if an instance is already running and job spec does not allow concurrent runs.","summary":"Run job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job that was triggered"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"const":"Another job is already running at the same time, set `concurrency` to allow multiple instances of scheduled jobs to run concurrently"}},"required":["error"],"additionalProperties":false}}},"description":"Another instance is already running, job was not triggered"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/schedule":{"post":{"summary":"Update job schedule","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schedule":{"description":"CRON schedule expression (e.g., '0 9 * * 1' for 9 AM every Monday).","type":"string","pattern":"^(?:(@(annually|yearly|monthly|weekly|daily|hourly))|((((\\d+,)+\\d+|((\\*|\\d+)(\\/|-)\\d+)|\\d+|\\*) ?){5,7}))$"}},"required":["schedule"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}},"description":"The updated scheduled job"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/labels":{"put":{"description":"Replace user-provided labels on a scheduled job","summary":"Update scheduled job labels","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"labels":{"description":"The new labels to set on the job. Replaces all existing labels.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}}},"required":["labels"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}},"description":"The scheduled job after labels have been updated"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}}}} \ No newline at end of file +{"openapi":"3.1.0","info":{"title":"Hub API Endpoints","version":"0.0.1","description":"We have open endpoints that you can use to retrieve information from the Hub as well as perform certain actions such as creating model, dataset or Space repos. We offer a wrapper Python client, [`huggingface_hub`](https://github.com/huggingface/huggingface_hub), and a JS client, [`huggingface.js`](https://github.com/huggingface/huggingface.js), that allow easy access to these endpoints. We also provide [webhooks](https://huggingface.co/docs/hub/webhooks) to receive real-time incremental info about repos. Enjoy!\n\nThe base URL for those endpoints below is `https://huggingface.co`. For example, to construct the `/api/models` call below, one can call the URL [https://huggingface.co/api/models](https://huggingface.co/api/models).\n\nIf you're an Agent, you might prefer the [markdown version OpenAPI spec](https://huggingface.co/.well-known/openapi.md).\n"},"servers":[{"url":"https://huggingface.co","description":"Hub"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"RepoId":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"examples":["deepseek-ai/DeepSeek-R1","black-forest-labs/FLUX.1-dev"],"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]}},"required":["name","type"],"additionalProperties":false,"id":"RepoId"},"Job":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"owner":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"null"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false}},"required":["id","createdAt","owner","environment","flavor","status","createdBy"],"additionalProperties":false,"id":"Job"}}},"security":[{"bearerAuth":[]}],"tags":[{"name":"auth","x-displayName":"Auth","description":"The following endpoints get information about your currently used user based on the passed token."},{"name":"models","x-displayName":"Models","description":"Get information from all models on the Hub."},{"name":"kernels","x-displayName":"Kernels","description":"Get information from all kernels on the Hub."},{"name":"datasets","x-displayName":"Datasets","description":"Get information from all datasets on the Hub."},{"name":"sql-console","x-displayName":"SQL Console","description":"Get information from SQL Console embeds from a dataset."},{"name":"discussions","x-displayName":"Discussions","description":"The following endpoints manage discussions."},{"name":"spaces","x-displayName":"Spaces","description":"Get information from all Spaces on the Hub."},{"name":"repo-search","x-displayName":"Repository Search","description":"The following endpoints help get information about models, datasets, and Spaces stored on the Hub."},{"name":"repos","x-displayName":"Repositories","description":"The following endpoints manage repository settings like creating and deleting a repository."},{"name":"users","x-displayName":"Users","description":"User accounts are the base authoring entity on the Hub"},{"name":"orgs","x-displayName":"Organizations","description":"The following endpoints let you interact with Hub Organizations and their members."},{"name":"service-accounts","x-displayName":"Service Accounts","description":"The following endpoints manage service accounts and their tokens."},{"name":"jobs","x-displayName":"Jobs","description":"The following endpoints manage jobs."},{"name":"resource-groups","x-displayName":"Resource groups","description":"The following endpoints manage resource groups. Resource groups are a Team or Enterprise feature."},{"name":"papers","x-displayName":"Paper pages","description":"The following endpoint gets information about papers."},{"name":"collections","x-displayName":"Collections","description":"Use Collections to group repositories from the Hub (Models, Datasets, Spaces and Papers) on a dedicated page.\n\nYou can learn more about it in the Collections [guide](https://huggingface.co/docs/hub/collections). Collections can also be managed using the Python client (see [guide](https://huggingface.co/docs/huggingface_hub/main/en/guides/collections))."},{"name":"buckets","x-displayName":"Buckets","description":"Git-free storage buckets for files, powered by Xet. Buckets provide simple file storage without git versioning."},{"name":"notifications","x-displayName":"Notifications","description":"The following endpoints fetch Hub notifications."},{"name":"inference-providers","x-displayName":"Inference Providers","description":"Run inference from one of our inference providers."},{"name":"inference-endpoints","x-displayName":"Inference Endpoints","description":"Manage inference endpoints."},{"name":"mcp","x-displayName":"MCP","description":"The following endpoints are for use with the MCP server."},{"name":"oauth","x-displayName":"OAuth","description":"The following endpoints are for use with OAuth."},{"name":"docs","x-displayName":"Documentation","description":"The following endpoints are for interacting with the Hub's documentation."},{"name":"webhooks","x-displayName":"Webhooks","description":"The following endpoints are for use with webhooks."},{"name":"scim","x-displayName":"SCIM","description":"Use the SCIM API to control and manage your hub Enterprise organization manage members' access.\n## Authentication\n\n- Must be organization owner\n- Use Access token with write permission on organization\n- Organization must be Enterprise Plus\n\n## Key Attribute Matching\n\n- Microsoft Entra ID (Azure AD)\n\t* SAML: `http://schemas.microsoft.com/identity/claims/objectidentifier`\n\t* SCIM: `externalId`\n- Other Identity Providers\n\t* SAML: `NameID` or `unique identifier`\n\t* SCIM: `externalId`\n\n## Supported SCIM User Attributes\n\n| Attribute | Description |\n|---|---|\n| `userName` | Username for the user |\n| `name.givenName` | First name |\n| `name.familyName` | Last name |\n| `emails` | Array of user emails; we don't support email types |\n| `externalId` | IDP provider's unique identifier |\n| `id` | Hugging Face SCIM endpoint identifier |\n| `active` | Boolean for provisioning status |\n\n"},{"name":"agentic-provisioning","x-displayName":"Agentic Provisioning","description":"The following endpoints are for use with Agentic Provisioning Protocol."},{"name":"agents","x-displayName":"Agents","description":"The following endpoints provide information about AI agents using the Hub."},{"name":"container","x-displayName":"Container Registry","description":"The following endpoints back the HuggingFace container registry, e.g. `docker login` token minting."}],"paths":{"/api/notifications":{"get":{"description":"List notifications for the user","summary":"List notifications","tags":["notifications"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"notifications":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"const":"paper"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"read":{"type":"boolean"},"discussionEventId":{"type":"string"},"paper":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"title":{"type":"string"}},"required":["_id","title"],"additionalProperties":false},"paperDiscussion":{"type":"object","properties":{"id":{"type":"string"},"participating":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatar":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatar","user"],"additionalProperties":false}},"paperId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}},"required":["id","participating","paperId"],"additionalProperties":false}},"required":["type","updatedAt","read","paper","paperDiscussion"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"repo"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"read":{"type":"boolean"},"discussionEventId":{"type":"string"},"repo":{"$ref":"#/components/schemas/RepoId"},"discussion":{"type":"object","properties":{"num":{"type":"number"},"title":{"type":"string"},"status":{"enum":["draft","open","closed","merged"]},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"isPullRequest":{"type":"boolean"},"participating":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatar":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatar","user"],"additionalProperties":false}}},"required":["num","title","status","id","isPullRequest","participating"],"additionalProperties":false}},"required":["type","updatedAt","read","repo","discussion"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"post"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"read":{"type":"boolean"},"discussionEventId":{"type":"string"},"post":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"authorName":{"type":"string"},"title":{"type":"string"},"participating":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatar":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatar","user"],"additionalProperties":false}}},"required":["id","slug","authorName","title","participating"],"additionalProperties":false}},"required":["type","updatedAt","read","post"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"community_blog"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"read":{"type":"boolean"},"discussionEventId":{"type":"string"},"blog":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"canonical":{"type":"boolean"},"authorName":{"type":"string"},"participating":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatar":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatar","user"],"additionalProperties":false}}},"required":["id","slug","title","canonical","participating"],"additionalProperties":false}},"required":["type","updatedAt","read","blog"],"additionalProperties":false}]}},"count":{"type":"object","properties":{"view":{"type":"number"},"unread":{"type":"number"},"all":{"type":"number"}},"required":["view","unread","all"],"additionalProperties":false},"start":{"type":"number"}},"required":["notifications","count","start"],"additionalProperties":false}}},"description":"The notifications for the user"}},"parameters":[{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"required":false},{"name":"readStatus","in":"query","schema":{"default":"all","enum":["all","unread"]},"required":false},{"name":"repoType","in":"query","schema":{"enum":["dataset","model","space","bucket","kernel"]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"postAuthor","in":"query","schema":{"type":"string"},"required":false},{"name":"paperId","in":"query","schema":{"type":"string"},"required":false},{"name":"articleId","in":"query","schema":{"type":"string"},"required":false},{"name":"mention","in":"query","schema":{"default":"all","enum":["all","participating","mentions"]},"required":false},{"name":"lastUpdate","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]},"delete":{"description":"Delete notifications, either by specifying discussionIds or by applying to all notifications with search parameters","summary":"Delete notifications","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"discussionIds":{"minItems":1,"type":"array","items":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}}}}}}},"parameters":[{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"required":false},{"name":"readStatus","in":"query","schema":{"default":"all","enum":["all","unread"]},"required":false},{"name":"repoType","in":"query","schema":{"enum":["dataset","model","space","bucket","kernel"]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"postAuthor","in":"query","schema":{"type":"string"},"required":false},{"name":"paperId","in":"query","schema":{"type":"string"},"required":false},{"name":"articleId","in":"query","schema":{"type":"string"},"required":false},{"name":"mention","in":"query","schema":{"default":"all","enum":["all","participating","mentions"]},"required":false},{"name":"lastUpdate","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"applyToAll","in":"query","schema":{"default":false},"required":false}]}},"/api/notifications/mark-as-read":{"post":{"description":"Mark discussions as read or unread. If `applyToAll` is true, all notifications for the user matching the search parameters will be marked as read or unread.","summary":"Change read status","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"discussionIds":{"default":[],"type":"array","items":{"type":"string"}},"read":{"default":true,"type":"boolean"}}}}}},"parameters":[{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"required":false},{"name":"readStatus","in":"query","schema":{"default":"all","enum":["all","unread"]},"required":false},{"name":"repoType","in":"query","schema":{"enum":["dataset","model","space","bucket","kernel"]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"postAuthor","in":"query","schema":{"type":"string"},"required":false},{"name":"paperId","in":"query","schema":{"type":"string"},"required":false},{"name":"articleId","in":"query","schema":{"type":"string"},"required":false},{"name":"mention","in":"query","schema":{"default":"all","enum":["all","participating","mentions"]},"required":false},{"name":"lastUpdate","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"applyToAll","in":"query","schema":{"default":false},"required":false}]}},"/api/settings/mcp":{"get":{"description":"Get the MCP tools for the current user","summary":"Get MCP tools","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"builtInTools":{"type":"array","items":{"type":"string"}},"spaceTools":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"emoji":{"type":"string"},"subdomain":{"type":"string"}},"required":["_id","name","emoji","subdomain"],"additionalProperties":false}}},"required":["builtInTools","spaceTools"],"additionalProperties":false}}},"description":"The MCP tools for the current user"}}}},"/api/settings/notifications":{"patch":{"description":"Update notification settings for the user","summary":"Update notification settings","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"notifications":{"type":"object","properties":{"announcements":{"type":"boolean"},"arxiv_paper_activity":{"type":"boolean"},"daily_papers_digest":{"type":"boolean"},"discussions_participating":{"type":"boolean"},"discussions_watched":{"type":"boolean"},"gated_user_access_request":{"type":"boolean"},"inference_endpoint_status":{"type":"boolean"},"launch_autonlp":{"type":"boolean"},"launch_spaces":{"type":"boolean"},"launch_prepaid_credits":{"type":"boolean"},"launch_training_cluster":{"type":"boolean"},"org_request":{"type":"boolean"},"org_suggestions":{"type":"boolean"},"org_verified_suggestions":{"type":"boolean"},"org_suggestions_to_create":{"type":"boolean"},"posts_participating":{"type":"boolean"},"user_follows":{"type":"boolean"},"secret_detected":{"type":"boolean"},"web_discussions_participating":{"type":"boolean"},"web_discussions_watched":{"type":"boolean"},"web_posts_participating":{"type":"boolean"},"product_updates_after":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"api_inference_sunset":{"type":"boolean"},"locked_out":{"type":"boolean"},"repo_release":{"type":"boolean"}}},"prepaidAmount":{"description":"To be provided when enabling launch_prepaid_credits","type":"string","maxLength":24}},"required":["notifications"]}}}}}},"/api/settings/watch":{"patch":{"description":"Update watch settings for the user. Get notified when discussions happen on your watched items.","summary":"Update watch settings","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"delete":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"enum":["org","user","repo"]}},"required":["id","type"]}},"add":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"enum":["org","user","repo"]}},"required":["id","type"]}}}}}}}}},"/api/settings/webhooks":{"get":{"summary":"List webhooks","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}}}},"description":"Webhooks"}}},"post":{"summary":"Create webhook","tags":["webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"watched":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"name":{"type":"string"}},"required":["type","name"]}},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"additionalProperties":{"type":"string"}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"arch":{"enum":["amd64","arm64"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"attempts":{"description":"Max number of attempts to make. For example, if you set this to 3, the job will be retried up to 2 times if it fails.","default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the job container.","minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}},"expose":{"description":"Ports to expose publicly through the jobs proxy. Each port is reachable at `https://--.`. Access requires a HF token with read access to the job's namespace, except for ports also listed in `portsPublic`.","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"]},"ssh":{"description":"When `enabled`, the job's container is reachable over SSH at `ssh @ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub.","type":"object","properties":{"enabled":{"default":false,"type":"boolean"}}},"resourceGroupId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["flavor"]},"jobSourceId":{"type":"string"},"domains":{"minItems":1,"type":"array","items":{"enum":["repo","discussion"]}},"secret":{"type":"string","pattern":"^[\\x20-\\x7F]*$"}},"required":["watched","domains"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"webhook":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}},"required":["webhook"],"additionalProperties":false}}},"description":"Created webhook"}}}},"/api/settings/webhooks/{webhookId}":{"get":{"summary":"Get webhook","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"webhook":{"description":"Webhook","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}},"required":["webhook"],"additionalProperties":false}}},"description":"Webhook"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"summary":"Update webhook","tags":["webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"watched":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"name":{"type":"string"}},"required":["type","name"]}},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"additionalProperties":{"type":"string"}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"arch":{"enum":["amd64","arm64"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"attempts":{"description":"Max number of attempts to make. For example, if you set this to 3, the job will be retried up to 2 times if it fails.","default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the job container.","minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}},"expose":{"description":"Ports to expose publicly through the jobs proxy. Each port is reachable at `https://--.`. Access requires a HF token with read access to the job's namespace, except for ports also listed in `portsPublic`.","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"]},"ssh":{"description":"When `enabled`, the job's container is reachable over SSH at `ssh @ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub.","type":"object","properties":{"enabled":{"default":false,"type":"boolean"}}},"resourceGroupId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["flavor"]},"jobSourceId":{"type":"string"},"domains":{"minItems":1,"type":"array","items":{"enum":["repo","discussion"]}},"secret":{"type":"string","pattern":"^[\\x20-\\x7F]*$"}},"required":["watched","domains"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"webhook":{"description":"Webhook","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}},"required":["webhook"],"additionalProperties":false}}},"description":"Updated webhook"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete webhook","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}},"description":"Deleted webhook"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/settings/webhooks/{webhookId}/{action}":{"post":{"summary":"Enable/disable webhook","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"webhook":{"description":"Webhook","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"job":{"type":"object","properties":{"dockerImage":{"type":"string"},"spaceId":{"type":"string"},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"secrets":{"type":"array","items":{"type":"string"}}},"required":["environment","flavor","timeoutSeconds"],"additionalProperties":false},"jobSourceId":{"type":"string"},"disabled":{"anyOf":[{"type":"boolean"},{"const":"suspended-after-failure"}]},"watched":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","user","org"]},"avatarUrl":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"secret":{"type":"string"},"domains":{"type":"array","items":{"enum":["repo","discussion"]}},"lastTriggerAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","disabled","watched","domains"],"additionalProperties":false}},"required":["webhook"],"additionalProperties":false}}},"description":"Updated webhook"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","enum":["enable","disable"]}}]}},"/api/settings/webhooks/{webhookId}/replay/{logId}":{"post":{"summary":"Replay webhook log","tags":["webhooks"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"description":"Replay HTTP status","type":"number"}},"required":["status"],"additionalProperties":false}}},"description":"Replay response"}},"parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}},{"name":"logId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/settings/papers/claim":{"post":{"summary":"Claim paper authorship","tags":["papers"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paperId":{"description":"ArXiv paper identifier being claimed.","type":"string","pattern":"^\\d{4}\\.\\d{4,5}$"},"claimAuthorId":{"description":"Author entry on the paper being claimed.","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"targetUserId":{"description":"HF user who should receive the claim.","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["paperId","claimAuthorId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean"},"claimedPaperId":{"type":"string"}},"required":["ok","claimedPaperId"],"additionalProperties":false}}},"description":"Paper authorship claim result, including the claimed paper id"}}}},"/api/settings/repositories":{"get":{"summary":"List user repositories","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"updatedAt":{"type":"string"},"visibility":{"enum":["public","private","protected"]},"storage":{"type":"number"},"storagePercent":{"type":"number"}},"required":["id","type","updatedAt","visibility","storage","storagePercent"],"additionalProperties":false}}}},"description":"Repositories with storage usage"}},"parameters":[{"name":"search","in":"query","schema":{"description":"Filter repositories by name (case-insensitive substring match)","type":"string"},"required":false},{"name":"type","in":"query","schema":{"description":"Filter by repository type","enum":["dataset","model","space","bucket","kernel"]},"required":false},{"name":"limit","in":"query","schema":{"description":"Max number of repositories to return","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"sort","in":"query","schema":{"description":"Sort field (default: storage)","default":"storage","enum":["storage","updatedAt"]},"required":false},{"name":"direction","in":"query","schema":{"description":"Sort direction (default: desc)","default":"desc","enum":["asc","desc"]},"required":false}]}},"/api/organizations/{name}/settings/tokens/revoke":{"post":{"description":"An org admin can revoke a token's access to the org. The token itself isn't deleted, it still works outside the org. Requires the raw token value. Enterprise only.","summary":"Revoke member token","tags":["orgs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","pattern":"^hf_.*"}},"required":["token"]}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/settings/repositories":{"get":{"summary":"List organization repositories","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"updatedAt":{"type":"string"},"visibility":{"enum":["public","private","protected"]},"storage":{"type":"number"},"storagePercent":{"type":"number"}},"required":["id","type","updatedAt","visibility","storage","storagePercent"],"additionalProperties":false}}}},"description":"Organization repositories with storage usage"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"search","in":"query","schema":{"description":"Filter repositories by name (case-insensitive substring match)","type":"string"},"required":false},{"name":"type","in":"query","schema":{"description":"Filter by repository type","enum":["dataset","model","space","bucket","kernel"]},"required":false},{"name":"limit","in":"query","schema":{"description":"Max number of repositories to return","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"sort","in":"query","schema":{"description":"Sort field (default: storage)","default":"storage","enum":["storage","updatedAt"]},"required":false},{"name":"direction","in":"query","schema":{"description":"Sort direction (default: desc)","default":"desc","enum":["asc","desc"]},"required":false}]}},"/api/organizations/{name}/audit-log/export":{"get":{"description":"Export the audit log events in JSON format for a Team or Enterprise organization. The export is limited to the last 100,000 events.","summary":"Export the audit log","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"type":{"enum":["billing.update_payment_method","billing.create_customer","billing.remove_payment_method","billing.aws_add","billing.aws_remove","billing.gcp_add","billing.gcp_remove","billing.marketplace_approve","billing.cancel_subscription","billing.renew_subscription","billing.start_subscription","billing.un_cancel_subscription","billing.update_subscription","billing.update_subscription_plan","collection.create","collection.delete","collection.update_resource_group","org.add_user","org.change_role","org.create","org.delete","org.restore","org.invite_user","org.invite.accept","org.invite.email","org.join.from_domain","org.join.automatic","org.leave","org.remove_user","org.rename","org.rotate_token","org.sso_login","org.sso_join","org.update_join_settings","org.update_settings","org.settings.regions","org.settings.profile","org.settings.resource_groups","org.settings.publisher_gating","org.settings.inference_providers","org.settings.inference_providers.keys.add","org.settings.inference_providers.keys.remove","org.settings.inference_providers.usage","org.settings.sso","org.settings.sso.enable","org.settings.sso.disable","org.settings.security.repo_visibility","org.settings.security.2fa.enable","org.settings.security.2fa.disable","org.settings.security.auto_join.enable","org.settings.security.auto_join.disable","org.settings.security.members_privacy.enable","org.settings.security.members_privacy.disable","org.settings.network","org.settings.network.ip_restriction.enable","org.settings.network.ip_restriction.disable","org.settings.network.auth_enforcement.enable","org.settings.network.auth_enforcement.disable","org.token_approval.enabled","org.token_approval.disabled","org.token_approval.authorization_request","org.token_approval.authorization_request.authorized","org.token_approval.authorization_request.revoked","org.token_approval.authorization_request.denied","org.custom_role.create","org.custom_role.update","org.custom_role.delete","repo.add_secrets","repo.remove_secrets","repo.add_secret","repo.update_secret","repo.remove_secret","repo.create","repo.delete","repo.disable","repo.removeDisable","repo.duplication","repo.delete_doi","repo.move","repo.update_resource_group","repo.update_settings","repo.add_variable","repo.update_variable","repo.remove_variable","repo.add_variables","repo.remove_variables","repo.delete_lfs_file","repo.add_trusted_publisher","repo.remove_trusted_publisher","spaces.add_storage","spaces.remove_storage","spaces.set_volumes","spaces.remove_volumes","spaces.update_hardware","spaces.update_sleep_time","resource_group.create","resource_group.add_users","resource_group.remove_users","resource_group.change_role","resource_group.settings","resource_group.delete","jobs.create","jobs.cancel","jobs.update_labels","jobs.update_expose","scheduled_job.create","scheduled_job.delete","scheduled_job.resume","scheduled_job.suspend","scheduled_job.run","scheduled_job.update_schedule","scheduled_job.update_labels","org.service_account.create","org.service_account.delete","org.service_account.token.create","org.service_account.token.delete","org.service_account.token.rotate","org.service_account.token.update","oauth.token"]},"data":{},"message":{"type":"string"},"ip":{"type":"string"},"location":{"type":"object","properties":{"formatted":{"type":"string"},"country":{"type":"string"},"city":{"type":"string"}},"required":["formatted"],"additionalProperties":false},"userAgent":{"type":"string"},"author":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","system"]},"deleted":{"type":"boolean"}},"required":["_id","user","avatarUrl","type"],"additionalProperties":false},"token":{"type":"object","properties":{"type":{"const":"access_token"},"id":{"type":"string"},"role":{"enum":["read","write","fineGrained"]},"last4":{"type":"string"},"deleted":{"type":"boolean"}},"required":["type","id","deleted"],"additionalProperties":false},"oauth":{"type":"object","properties":{"clientId":{"type":"string"},"name":{"type":"string"}},"required":["clientId"],"additionalProperties":false}},"required":["_id","createdAt","type","message","author"],"additionalProperties":false}}}},"description":"Array of audit log events","headers":{"Content-Disposition":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"The filename of the exported audit log"}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"q","in":"query","schema":{"examples":["author:huggingface","ip:127.0.0.0","type:repo.create"],"type":"string"},"required":false}]}},"/api/organizations/{name}/resource-groups/{resourceGroupId}":{"patch":{"description":"Update the name and/or description of a resource group.\n\nRequires the org to have a Team plan or higher.","summary":"Update resource group","tags":["resource-groups"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"blog"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The updated resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Delete a resource group from the organization.\n\nRequires the org to have a Team plan or higher.","summary":"Delete resource group","tags":["resource-groups"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}},"description":"Whether the resource group was deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"description":"Retrieve a single resource group by id.\n\nRequires the org to have a Team plan or higher.","summary":"Get resource group","tags":["resource-groups"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"blog"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/resource-groups/{resourceGroupId}/settings":{"post":{"description":"Configure the auto-join settings of a resource group.\n\nRequires the org to have a Team plan or higher.","summary":"Configure auto-join","tags":["resource-groups"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"anyOf":[{"const":true},{"const":"true"}]},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"]},{"type":"object","properties":{"enabled":{"anyOf":[{"const":false},{"const":"false"}]}},"required":["enabled"]}]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"blog"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The updated resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/resource-groups/{resourceGroupId}/users":{"post":{"description":"Add one or more organization members to a resource group.\n\nRequires the org to have a Team plan or higher.","summary":"Add users","tags":["resource-groups"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"users":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["name","role"]},{"type":"object","properties":{"user":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["user","role"]}]}}},"required":["users"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"blog"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The updated resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/resource-groups/{resourceGroupId}/users/{username}":{"delete":{"description":"Remove a user from a resource group, revoking the access granted through it.\n\nRequires the org to have a Team plan or higher.","summary":"Remove user","tags":["resource-groups"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"blog"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The updated resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Change the role of a user in a resource group.\n\nRequires the org to have a Team plan or higher.","summary":"Change user role","tags":["resource-groups"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["role"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"blog"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The updated resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"resourceGroupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/resource-groups":{"get":{"description":"Retrieve accessible resource groups. Get all resource groups the user has access to.\n\nRequires the org to have a Team plan or higher.","summary":"Get resource groups","tags":["resource-groups"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"blog"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}}},"description":"Resource groups the user has access to"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"description":"Create a new resource group in the organization.\n\nRequires the org to have a Team plan or higher.","summary":"Create resource group","tags":["resource-groups"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":500},"users":{"default":[],"type":"array","items":{"type":"object","properties":{"user":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["user","role"]}},"repos":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/RepoId"}},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"]},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"]}]}},"required":["name"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoJoin":{"anyOf":[{"type":"object","properties":{"enabled":{"const":true},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"scope":{"enum":["all","read_plus"]}},"required":["enabled","role"],"additionalProperties":false},{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"],"additionalProperties":false}]},"users":{"type":"array","items":{"type":"object","properties":{"type":{"const":"user"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"fullname":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"addedBy":{"type":"string"}},"required":["type","_id","fullname","name","avatarUrl","role"],"additionalProperties":false}},"resources":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"enum":["dataset","model","space","bucket","kernel"]},"name":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","name","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"collection"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"blog"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"slug":{"type":"string"},"title":{"type":"string"},"addedBy":{"type":"string"},"private":{"type":"boolean"}},"required":["type","id","slug","title","private"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"},"addedBy":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]}}},"required":["id","name","users","resources","repos"],"additionalProperties":false}}},"description":"The created resource group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/settings/network-security":{"get":{"description":"Get the network security settings for an organization.","summary":"Get network security settings","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enforceAuth":{"anyOf":[{"type":"boolean"},{"const":"pending"}]},"enforceIpRestriction":{"type":"boolean"},"highRateLimits":{"type":"boolean"},"ipRanges":{"type":"array","items":{"type":"string"}},"blockedContents":{"type":"array","items":{"type":"object","properties":{"resource":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"const":"*"}]},"scope":{"type":"string","minLength":1}},"required":["resource","scope"],"additionalProperties":false}},"allowedContents":{"type":"array","items":{"type":"object","properties":{"resource":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"const":"*"}]},"scope":{"type":"string","minLength":1}},"required":["resource","scope"],"additionalProperties":false}},"keepReposMetadataVisible":{"type":"boolean"}},"required":["enforceAuth","enforceIpRestriction","highRateLimits","ipRanges","blockedContents","allowedContents","keepReposMetadataVisible"],"additionalProperties":false}}},"description":"Network security settings"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Update the network security settings for an organization.","summary":"Update network security","tags":["orgs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enforceAuth":{"type":"boolean"},"enforceIpRestriction":{"type":"boolean"},"highRateLimits":{"type":"boolean"},"ipRanges":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"string","format":"cidrv4","pattern":"^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$"},{"type":"string","format":"cidrv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$"}]}},"blockedContents":{"type":"array","items":{"type":"object","properties":{"resource":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"const":"*"}]},"scope":{"type":"string","minLength":1}},"required":["resource","scope"]}},"allowedContents":{"type":"array","items":{"type":"object","properties":{"resource":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"const":"*"}]},"scope":{"type":"string","minLength":1}},"required":["resource","scope"]}},"keepReposMetadataVisible":{"type":"boolean"}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enforceAuth":{"anyOf":[{"type":"boolean"},{"const":"pending"}]},"enforceIpRestriction":{"type":"boolean"},"highRateLimits":{"type":"boolean"},"ipRanges":{"type":"array","items":{"type":"string"}},"blockedContents":{"type":"array","items":{"type":"object","properties":{"resource":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"const":"*"}]},"scope":{"type":"string","minLength":1}},"required":["resource","scope"],"additionalProperties":false}},"allowedContents":{"type":"array","items":{"type":"object","properties":{"resource":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"const":"*"}]},"scope":{"type":"string","minLength":1}},"required":["resource","scope"],"additionalProperties":false}},"keepReposMetadataVisible":{"type":"boolean"}},"required":["enforceAuth","enforceIpRestriction","highRateLimits","ipRanges","blockedContents","allowedContents","keepReposMetadataVisible"],"additionalProperties":false}}},"description":"Updated network security settings"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/service-accounts":{"get":{"description":"List all service accounts for the organization.","summary":"List service accounts","tags":["service-accounts"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"user":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"description":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["_id","user","name","email","createdAt"],"additionalProperties":false}}}},"description":"List of service accounts"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"description":"Create a new service account for the organization.","summary":"Create service account","tags":["service-accounts"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"description":"Display name for the service account","type":"string","minLength":1,"maxLength":50},"description":{"description":"Optional description of what this service account is used for","type":"string","maxLength":500}},"required":["name"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string"},"user":{"type":"string"},"fullname":{"type":"string"},"description":{"type":"string"},"createdAt":{"type":"string"}},"required":["_id","user","fullname","createdAt"],"additionalProperties":false}}},"description":"Created service account"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/service-accounts/{serviceAccountId}":{"get":{"description":"Retrieve a single service account and its access token metadata. Token secrets are never returned.","summary":"Get service account","tags":["service-accounts"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"description":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"accessTokens":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"displayName":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"lastUsedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"expiration":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"role":{"enum":["read","write","fineGrained"]},"permissions":{"type":"array","items":{"enum":["repo.content.read","repo.write","inference.serverless.write","inference.endpoints.infer.write","inference.endpoints.write","org.read","org.write","collection.read","collection.write","resourceGroup.write","job.write","org.serviceAccounts.read","org.serviceAccounts.write"]}},"repoIds":{"type":"array","items":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}},"repoPermissions":{"type":"array","items":{"enum":["repo.content.read","repo.write"]}},"endpointPatterns":{"type":"array","items":{"type":"string"}},"last4":{"type":"string"}},"required":["_id","displayName","createdAt","role","permissions","repoIds","repoPermissions","endpointPatterns"],"additionalProperties":false}}},"required":["_id","user","name","email","createdAt"],"additionalProperties":false}}},"description":"Service account"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceAccountId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Delete a service account and all its tokens. This action cannot be undone.","summary":"Delete service account","tags":["service-accounts"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Service account deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceAccountId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/service-accounts/{serviceAccountId}/tokens":{"post":{"description":"Create a new access token for a service account. Store the token securely - it cannot be retrieved later.","summary":"Create service-account token","tags":["service-accounts"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"displayName":{"description":"Display name for the token","default":"API Token","type":"string","minLength":1,"maxLength":100},"permissions":{"description":"Org-wide permissions for this token","default":[],"type":"array","items":{"enum":["repo.content.read","repo.write","inference.serverless.write","inference.endpoints.infer.write","inference.endpoints.write","org.read","org.write","collection.read","collection.write","resourceGroup.write","job.write","org.serviceAccounts.read","org.serviceAccounts.write"]}},"repoIds":{"description":"Repositories to grant `repoPermissions` on. Can be repositories owned by the organization or any public repository. These override the org-wide permissions.","type":"array","items":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"repoPermissions":{"description":"Permissions granted on the selected `repoIds`.","default":[],"type":"array","items":{"enum":["repo.content.read","repo.write"]}},"endpointPatterns":{"description":"Inference endpoint name patterns (wildcards allowed, e.g. `gpt2-*`) restricting the token's org-wide Inference Endpoint permissions to matching endpoints. Empty means all endpoints.","default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":256,"pattern":"^[^.?()\\]\\\\[{}]+$"}}}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"description":"The access token - store this securely, it cannot be retrieved later","type":"string"},"tokenInfo":{"type":"object","properties":{"_id":{"type":"string"},"displayName":{"type":"string"},"createdAt":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"repoIds":{"type":"array","items":{"type":"string"}},"repoPermissions":{"type":"array","items":{"type":"string"}},"endpointPatterns":{"type":"array","items":{"type":"string"}}},"required":["_id","displayName","createdAt","repoIds","repoPermissions","endpointPatterns"],"additionalProperties":false}},"required":["token","tokenInfo"],"additionalProperties":false}}},"description":"Created token"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceAccountId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/service-accounts/{serviceAccountId}/tokens/{tokenId}":{"delete":{"description":"Delete an access token from a service account. This action cannot be undone.","summary":"Delete service-account token","tags":["service-accounts"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Token deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceAccountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tokenId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Update the name and/or permissions of an existing service account token.","summary":"Update service-account token","tags":["service-accounts"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"displayName":{"description":"New display name for the token","type":"string","minLength":1,"maxLength":100},"permissions":{"description":"Org-wide permissions for this token","type":"array","items":{"enum":["repo.content.read","repo.write","inference.serverless.write","inference.endpoints.infer.write","inference.endpoints.write","org.read","org.write","collection.read","collection.write","resourceGroup.write","job.write","org.serviceAccounts.read","org.serviceAccounts.write"]}},"repoIds":{"description":"Repositories to grant `repoPermissions` on. Can be repositories owned by the organization or any public repository. These override the org-wide permissions.","type":"array","items":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"repoPermissions":{"description":"Permissions granted on the selected `repoIds`.","type":"array","items":{"enum":["repo.content.read","repo.write"]}},"endpointPatterns":{"description":"Inference endpoint name patterns (wildcards allowed, e.g. `gpt2-*`) restricting the token's org-wide Inference Endpoint permissions to matching endpoints. Empty means all endpoints.","maxItems":20,"type":"array","items":{"type":"string","maxLength":256,"pattern":"^[^.?()\\]\\\\[{}]+$"}}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string"},"displayName":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"repoIds":{"type":"array","items":{"type":"string"}},"repoPermissions":{"type":"array","items":{"type":"string"}},"endpointPatterns":{"type":"array","items":{"type":"string"}}},"required":["_id","displayName","permissions","repoIds","repoPermissions","endpointPatterns"],"additionalProperties":false}}},"description":"Updated token info"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceAccountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tokenId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/service-accounts/{serviceAccountId}/tokens/{tokenId}/rotate":{"post":{"description":"Invalidate an existing token and generate a new one with the same permissions. The old token will stop working immediately.","summary":"Rotate service-account token","tags":["service-accounts"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"description":"The new access token","type":"string"},"tokenInfo":{"type":"object","properties":{"_id":{"type":"string"},"displayName":{"type":"string"},"createdAt":{"type":"string"},"last4":{"type":"string"}},"required":["_id","displayName","createdAt"],"additionalProperties":false}},"required":["token","tokenInfo"],"additionalProperties":false}}},"description":"Rotated token"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceAccountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tokenId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/avatar":{"get":{"description":"Retrieve organization avatar. This endpoint returns a JSON with the avatar URL for the organization.\n\nIf called with the `Sec-Fetch-Dest: image` header, it instead redirects to the avatar URL","summary":"Get avatar","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"avatarUrl":{"type":"string","format":"uri"}},"required":["avatarUrl"],"additionalProperties":false}}},"description":"Avatar URL"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"redirect","in":"query","schema":{"description":"Redirect to the avatar url instead of returning it"},"required":false}]}},"/api/organizations/{name}/members":{"get":{"description":"Get a list of members for the organization with optional search and pagination.","summary":"Get organization members","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"type":{"const":"user"},"isFollowing":{"type":"boolean"},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"},"numUsers":{"type":"number"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["name","id","numUsers","role"],"additionalProperties":false}},"twoFaEnabled":{"type":"boolean"},"verifiedEmail":{"description":"The user's SSO email, if the org has a Team or Enterprise plan and the requester is an admin","anyOf":[{"type":"string"},{"type":"null"}]},"isExternalCollaborator":{"type":"boolean"}},"required":["avatarUrl","fullname","isPro","user","type","_id"],"additionalProperties":false}}}},"description":"Array of organization members","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"},"required":false},{"name":"email","in":"query","schema":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":500,"type":"integer","minimum":10,"maximum":10000},"required":false}]}},"/api/organizations/{name}/members/{username}/role":{"put":{"description":"Change the role of a member in the organization. Need a paid plan.","summary":"Change member role","tags":["orgs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["id","role"]}}},"required":["role"]}}}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/ServiceProviderConfig":{"get":{"description":"Returns the SCIM 2.0 Service Provider configuration, describing the server's capabilities and supported authentication schemes.","summary":"Get SCIM Configuration","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"documentationUri":{"type":"string"},"patch":{"type":"object","properties":{"supported":{"type":"boolean"}},"required":["supported"],"additionalProperties":false},"bulk":{"type":"object","properties":{"supported":{"type":"boolean"},"maxOperations":{"type":"number"},"maxPayloadSize":{"type":"number"}},"required":["supported","maxOperations","maxPayloadSize"],"additionalProperties":false},"filter":{"type":"object","properties":{"supported":{"type":"boolean"},"maxResults":{"type":"number"}},"required":["supported","maxResults"],"additionalProperties":false},"changePassword":{"type":"object","properties":{"supported":{"type":"boolean"}},"required":["supported"],"additionalProperties":false},"sort":{"type":"object","properties":{"supported":{"type":"boolean"}},"required":["supported"],"additionalProperties":false},"etag":{"type":"object","properties":{"supported":{"type":"boolean"}},"required":["supported"],"additionalProperties":false},"authenticationSchemes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"specUri":{"type":"string"},"documentationUri":{"type":"string"}},"required":["type","name","description","specUri","documentationUri"],"additionalProperties":false}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","documentationUri","patch","bulk","filter","changePassword","sort","etag","authenticationSchemes","meta"],"additionalProperties":false}}},"description":"SCIM Service Provider Configuration"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/ResourceTypes":{"get":{"description":"Returns the list of SCIM 2.0 resource types supported by this server (User and Group).","summary":"Get SCIM Resource Types","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"endpoint":{"type":"string"},"schema":{"type":"string"},"meta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","name","description","endpoint","schema","meta"],"additionalProperties":false}}}},"description":"SCIM Resource Types"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Schemas":{"get":{"description":"Returns the SCIM 2.0 schema definitions for User and Group resources.","summary":"Get SCIM Schemas","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"attributes":{"type":"array","items":{}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","name","description","attributes","meta"],"additionalProperties":false}}}},"description":"SCIM Schema Definitions"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Schemas/{schemaId}":{"get":{"description":"Returns a single SCIM 2.0 schema definition by its schema URI.","summary":"Get SCIM Schema by ID","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"attributes":{"type":"array","items":{}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","name","description","attributes","meta"],"additionalProperties":false}}},"description":"SCIM Schema Definition"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"schemaId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Users":{"get":{"description":"Retrieves a paginated list of all organization members who have been set up, including disabled users. If you provide the filter parameter, the resources for all matching members are returned.","summary":"List SCIM users","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:ListResponse"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"totalResults":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"itemsPerPage":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startIndex":{"examples":[1],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"required":["schemas","totalResults","itemsPerPage","startIndex","Resources"],"additionalProperties":false}}},"description":"SCIM User List"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startIndex","in":"query","schema":{"default":1,"type":"number","minimum":1},"required":false},{"name":"count","in":"query","schema":{"default":1000,"type":"number","minimum":1,"maximum":1000},"required":false},{"name":"filter","in":"query","schema":{"description":"You can filter results using the equals operator (eq) to find items that match specific values like `id`, `userName`, `emails`, and `externalId`. For example, to find a user named Bob, use this search: `?filter=userName%20eq%20Bob`","default":"","type":"string"},"required":false}]},"post":{"description":"Creates a new user in the organization. If the user already exists, only `active` field will be updated to provision the user.","summary":"Create a SCIM user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"type":"array","items":{"type":"string"}},"userName":{"description":"Username for the user, it should respect the hub rules: No consecutive dashes, No digit-only, Does not start or end with a dash, Only dashes, letters or numbers, Not 24 chars hex string","type":"string","minLength":2,"maxLength":42,"pattern":"^\\b(?!\\d+$)(?![0-9a-fA-F]{24}$)([a-zA-Z0-9]|-(?!-))+\\b$"},"emails":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["value"]}},"name":{"type":"object","properties":{"givenName":{"type":"string","minLength":1},"familyName":{"type":"string","minLength":1}},"required":["givenName","familyName"]},"active":{"default":true,"type":"boolean"},"externalId":{"description":"External ID for the user, it must be unique within the organization and is required for managed users","type":"string"}},"required":["schemas","userName","emails","name","externalId"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"SCIM User already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Users/{userId}":{"get":{"description":"Retrieves a SCIM user by their ID.","summary":"Get a SCIM user","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Update an attribute of a SCIM user. Modify individual attributes using Operations format. Just provide the changes you want to make using add, remove (only `externalId` is supported), or replace operations.\n If you set `active` to `false`, the user will be deprovisioned from the organization. \nComplicated SCIM `path` values are not supported like `emails[type eq 'work'].value`.","summary":"Update SCIM user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:PatchOp"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:api:messages:2.0:PatchOp"}},"Operations":{"type":"array","items":{"type":"object","properties":{"op":{"type":"string"},"path":{"enum":["active","externalId","userName","emails[type eq 'work'].value","name.givenName","name.familyName"]},"value":{}},"required":["op","value"]}}},"required":["schemas","Operations"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"put":{"description":"Updates a provisioned user, you'll need to provide all their information fresh - just like setting them up for the first time. Any details you don't include will be automatically removed, so make sure to include everything they need to keep their account running smoothly. Setting `active` to `false` will deprovision the user from the organization.","summary":"Update a SCIM user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"type":"array","items":{"type":"string"}},"userName":{"description":"Username for the user, it should respect the hub rules: No consecutive dashes, No digit-only, Does not start or end with a dash, Only dashes, letters or numbers, Not 24 chars hex string","type":"string","minLength":2,"maxLength":42,"pattern":"^\\b(?!\\d+$)(?![0-9a-fA-F]{24}$)([a-zA-Z0-9]|-(?!-))+\\b$"},"emails":{"maxItems":1,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["value"]}},"name":{"type":"object","properties":{"givenName":{"type":"string","minLength":1},"familyName":{"type":"string","minLength":1}},"required":["givenName","familyName"]},"active":{"default":true,"type":"boolean"},"externalId":{"type":"string"}},"required":["schemas","userName","emails","name","externalId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a SCIM user","tags":["scim"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Groups":{"get":{"description":"Get a list of SCIM groups. Retrieves a paginated list of all organization groups. If you provide the filter parameter, the resources for all matching groups are returned.","summary":"List SCIM groups","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:ListResponse"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"totalResults":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"itemsPerPage":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startIndex":{"examples":[1],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}},"required":["schemas","totalResults","itemsPerPage","startIndex","Resources"],"additionalProperties":false}}},"description":"SCIM Group List"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startIndex","in":"query","schema":{"default":1,"type":"number","minimum":1},"required":false},{"name":"count","in":"query","schema":{"default":1000,"type":"number","minimum":1,"maximum":1000},"required":false},{"name":"filter","in":"query","schema":{"default":"","type":"string"},"required":false},{"name":"excludedAttributes","in":"query","schema":{"const":"members"},"required":false}]},"post":{"description":"Creates a new group in the organization. The group name must be unique within the organization.","summary":"Create a SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"displayName":{"type":"string"},"externalId":{"type":"string"},"members":{"description":"Array of SCIM user ids","type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["value"]}}},"required":["displayName","members"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Group already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim/v2/Groups/{groupId}":{"get":{"description":"Retrieves a group by its ID. If you provide the `excludedAttributes` parameter, the `members` attribute is not returned.","summary":"Get a SCIM group","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"excludedAttributes","in":"query","schema":{"const":"members"},"required":false}]},"put":{"description":"Updates a group by its ID. The group name must be unique within the organization.","summary":"Update a SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:schemas:core:2.0:Group"}},"displayName":{"type":"string"},"externalId":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["value"]}}},"required":["schemas","displayName","members"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Update attributes of a SCIM group. Updates individual attributes using Operations format. Just provide the changes you want to make using add, remove (only `members` is supported), or replace operations.","summary":"Update SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:PatchOp"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:api:messages:2.0:PatchOp"}},"Operations":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}}},"required":["op","path"]},{"type":"object","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{}},"required":["op","value"]}]}}},"required":["schemas","Operations"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a SCIM group","tags":["scim"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"SCIM Group deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim-provisioning/v2/Users":{"get":{"description":"Retrieves a paginated list of organization members and pending invitations managed by SCIM for non-managed organizations.","summary":"List SCIM-managed users","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:ListResponse"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"totalResults":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"itemsPerPage":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startIndex":{"examples":[1],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"required":["schemas","totalResults","itemsPerPage","startIndex","Resources"],"additionalProperties":false}}},"description":"SCIM User List"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startIndex","in":"query","schema":{"default":1,"type":"number","minimum":1},"required":false},{"name":"count","in":"query","schema":{"default":1000,"type":"number","minimum":1,"maximum":1000},"required":false},{"name":"filter","in":"query","schema":{"description":"You can filter results using the equals operator (eq) to find items that match specific values like `id`, `userName`, `emails`, and `externalId`. For example, to find a user named Bob, use this search: `?filter=userName%20eq%20Bob`","default":"","type":"string"},"required":false}]},"post":{"description":"Creates an invitation for a user to join the organization. The user must have an existing Hugging Face account.","summary":"Create SCIM invitation","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"type":"array","items":{"type":"string"}},"userName":{"description":"Username of the existing Hugging Face user","type":"string","minLength":2,"maxLength":42,"pattern":"^\\b(?!\\d+$)(?![0-9a-fA-F]{24}$)([a-zA-Z0-9]|-(?!-))+\\b$"},"emails":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["value"]}},"active":{"default":true,"type":"boolean"},"externalId":{"description":"SSO unique identifier (SAML nameid or OIDC sub claim) - required for SSO login","type":"string"}},"required":["schemas","userName","emails","externalId"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim-provisioning/v2/Users/{userId}":{"get":{"description":"Retrieves a SCIM user by their ID for non-managed organizations.","summary":"Get a SCIM provisioning user","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Modify individual attributes for non-managed organizations. Only the `active` field can be modified. User profile fields are not editable via SCIM.","summary":"Update SCIM user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:PatchOp"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:api:messages:2.0:PatchOp"}},"Operations":{"type":"array","items":{"type":"object","properties":{"op":{"description":"`remove` operation is not supported for non-managed organizations","enum":["add","remove","replace"]},"path":{"enum":["active","externalId","userName","emails[type eq 'work'].value","name.givenName","name.familyName"]},"value":{}},"required":["op","value"]}}},"required":["schemas","Operations"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"put":{"description":"Updates a provisioned user's invitation for non-managed organizations. User profile fields are not editable via SCIM for non-managed organizations.","summary":"Update a SCIM user","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"type":"array","items":{"type":"string"}},"active":{"default":true,"type":"boolean"},"externalId":{"type":"string"}},"required":["schemas","externalId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:User"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"id":{"examples":["123"],"type":"string"},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"userName":{"examples":["username"],"type":"string"},"displayName":{"examples":["username (equals to userName)"],"type":"string"},"name":{"type":"object","properties":{"givenName":{"examples":["John"],"type":"string"},"familyName":{"examples":["Doe"],"type":"string"},"formatted":{"examples":["John Doe"],"type":"string"}},"required":["givenName","familyName","formatted"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"examples":["john.doe@example.com"],"type":"string"},"primary":{"examples":[true],"type":"boolean"},"type":{"examples":["work"],"description":"We only support work emails, other types are converted to work","enum":["work"]}},"required":["value","primary"],"additionalProperties":false}},"active":{"examples":[true],"type":"boolean"},"meta":{"type":"object","properties":{"resourceType":{"examples":["User"],"enum":["User"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Users/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","externalId","userName","displayName","name","emails","active","meta"],"additionalProperties":false}}},"description":"SCIM User"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Removes a user from the organization and deletes any pending invitations for non-managed organizations.","summary":"Delete SCIM user","tags":["scim"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User removed from organization"},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"User not found or not provisioned"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim-provisioning/v2/Groups":{"get":{"description":"Get a list of SCIM groups. Retrieves a paginated list of all organization groups. If you provide the filter parameter, the resources for all matching groups are returned.","summary":"List SCIM groups","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:ListResponse"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"totalResults":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"itemsPerPage":{"examples":[100],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startIndex":{"examples":[1],"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}},"required":["schemas","totalResults","itemsPerPage","startIndex","Resources"],"additionalProperties":false}}},"description":"SCIM Group List"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startIndex","in":"query","schema":{"default":1,"type":"number","minimum":1},"required":false},{"name":"count","in":"query","schema":{"default":1000,"type":"number","minimum":1,"maximum":1000},"required":false},{"name":"filter","in":"query","schema":{"default":"","type":"string"},"required":false},{"name":"excludedAttributes","in":"query","schema":{"const":"members"},"required":false}]},"post":{"description":"Creates a new group in the organization. The group name must be unique within the organization.","summary":"Create a SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"displayName":{"type":"string"},"externalId":{"type":"string"},"members":{"description":"Array of SCIM user ids","type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["value"]}}},"required":["displayName","members"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Group already exists"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/organizations/{name}/scim-provisioning/v2/Groups/{groupId}":{"get":{"description":"Retrieves a group by its ID. If you provide the `excludedAttributes` parameter, the `members` attribute is not returned.","summary":"Get a SCIM group","tags":["scim"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"excludedAttributes","in":"query","schema":{"const":"members"},"required":false}]},"put":{"description":"Updates a group by its ID. The group name must be unique within the organization.","summary":"Update a SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:schemas:core:2.0:Group"}},"displayName":{"type":"string"},"externalId":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["value"]}}},"required":["schemas","displayName","members"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"description":"Update attributes of a SCIM group. Updates individual attributes using Operations format. Just provide the changes you want to make using add, remove (only `members` is supported), or replace operations.","summary":"Update SCIM group","tags":["scim"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:api:messages:2.0:PatchOp"]],"minItems":1,"type":"array","items":{"const":"urn:ietf:params:scim:api:messages:2.0:PatchOp"}},"Operations":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"]}}},"required":["op","path"]},{"type":"object","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{}},"required":["op","value"]}]}}},"required":["schemas","Operations"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemas":{"examples":[["urn:ietf:params:scim:schemas:core:2.0:Group"]],"minItems":1,"maxItems":1,"type":"array","items":{"enum":["urn:ietf:params:scim:schemas:core:2.0:Group"]}},"id":{"examples":["123"],"type":"string"},"displayName":{"examples":["Group 1"],"type":"string"},"members":{"examples":[[{"value":"john"}]],"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"externalId":{"anyOf":[{"examples":["unique-identifier"],"type":"string"},{"type":"null"}]},"meta":{"type":"object","properties":{"resourceType":{"examples":["Group"],"enum":["Group"]},"location":{"examples":["https://huggingface.co/api/organizations/:name/scim/v2/Groups/:id"],"type":"string"}},"required":["resourceType","location"],"additionalProperties":false}},"required":["schemas","id","displayName","members","meta"],"additionalProperties":false}}},"description":"SCIM Group"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a SCIM group","tags":["scim"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"SCIM Group deleted"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/health":{"get":{"summary":"Get health","tags":["agentic-provisioning"]}},"/api/agentic/provisioning/services":{"get":{"summary":"Get services","tags":["agentic-provisioning"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"categories":{"minItems":1,"type":"array","items":{"enum":["compute","database","storage","cache","messaging","email","notification","auth","cdn","observability","analytics","payments","search","ci","feature_flags","ai"]}},"kind":{"enum":["deployable","plan"]},"pricing":{"anyOf":[{"type":"object","properties":{"type":{"const":"free"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"paid"},"paid":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"const":"freeform"},"freeform":{"type":"string","minLength":1},"stripe_price":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","freeform"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"stripe_price"},"stripe_price":{"type":"string","minLength":1},"freeform":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","stripe_price"],"additionalProperties":false}]},{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"const":"freeform"},"freeform":{"type":"string","minLength":1},"stripe_price":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","freeform"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"stripe_price"},"stripe_price":{"type":"string","minLength":1},"freeform":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","stripe_price"],"additionalProperties":false}]}}]}},"required":["type","paid"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"component"},"component":{"type":"object","properties":{"options":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"const":"free"},"default":{"type":"boolean"},"parent_service_ids":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"paid"},"paid":{"anyOf":[{"type":"object","properties":{"type":{"const":"freeform"},"freeform":{"type":"string","minLength":1},"stripe_price":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","freeform"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"stripe_price"},"stripe_price":{"type":"string","minLength":1},"freeform":{"type":"string","minLength":1},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["type","stripe_price"],"additionalProperties":false}]},"default":{"type":"boolean"},"parent_service_ids":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["type","paid"],"additionalProperties":false}]}}},"required":["options"],"additionalProperties":false}},"required":["type","component"],"additionalProperties":false}]},"group":{"type":"string","minLength":1},"scope":{"enum":["project","account"]},"kyc":{"type":"object","properties":{"required_fields":{"minItems":1,"type":"array","items":{"enum":["name","email","phone","country"]}}},"required":["required_fields"],"additionalProperties":false},"configuration_schema":{"type":"object","properties":{"type":{"const":"object"},"properties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","properties"],"additionalProperties":false},"allowed_updates":{"type":"array","items":{"type":"object","properties":{"service":{"type":"string","minLength":1},"direction":{"enum":["any","up","down"]}},"required":["service","direction"],"additionalProperties":false}},"constraints":{"type":"object","properties":{"count":{"type":"object","properties":{"at_most":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["at_most"],"additionalProperties":false},"mutual_exclusion":{"type":"object","properties":{"allowed_updates":{"const":true}},"required":["allowed_updates"],"additionalProperties":false}},"additionalProperties":false}},"required":["id","description","categories","pricing"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}},"description":"List of available Agentic Provisioning services"}}}},"/api/agentic/provisioning/account_requests":{"post":{"summary":"Create account request","tags":["agentic-provisioning"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":1},"object":{"const":"account_request"},"name":{"type":"string","minLength":1},"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"scopes":{"type":"array","items":{"type":"string","minLength":1}},"phone":{"type":"string","minLength":1},"country":{"type":"string","minLength":1},"kyc":{"type":"object","properties":{"verified_fields":{"type":"array","items":{"enum":["name","email","phone","country"]}}},"required":["verified_fields"]},"client_capabilities":{"type":"array","items":{"enum":["browser","email","sms"]}},"configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"confirmation_secret":{"type":"string","minLength":1},"expires_at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"orchestrator":{"type":"object","properties":{"type":{"const":"stripe"},"stripe":{"type":"object","properties":{"organization":{"type":"string","minLength":1},"account":{"type":"string","minLength":1}},"required":["account"]}},"required":["type","stripe"]}},"required":["id","object","email","scopes","client_capabilities","confirmation_secret","expires_at","orchestrator"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"type":{"const":"credentials"},"credentials":{"type":"object","properties":{"type":{"const":"bearer"},"bearer":{"type":"object","properties":{"access_token":{"type":"string"},"refresh_token":{"type":"string"},"expires_in":{"type":"number"},"account":{"type":"object","properties":{"id":{"type":"string"},"payment_credentials":{"const":"orchestrator"}},"required":["id","payment_credentials"],"additionalProperties":false}},"required":["access_token","refresh_token","expires_in","account"],"additionalProperties":false}},"required":["type","bearer"],"additionalProperties":false}},"required":["type","credentials"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"requires_auth"},"requires_auth":{"type":"object","properties":{"type":{"const":"redirect"},"redirect":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}},"required":["type","redirect"],"additionalProperties":false}},"required":["type","requires_auth"],"additionalProperties":false}]}}},"description":"Account request result"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["type","error"],"additionalProperties":false}}},"description":"Account request error"}}}},"/api/agentic/provisioning/resources":{"post":{"summary":"Provision a resource","tags":["agentic-provisioning"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"service_id":{"const":"platform"}},"required":["service_id"]},{"type":"object","properties":{"service_id":{"const":"bucket"},"configuration":{"type":"object","properties":{"name":{"description":"The name of the repository (defaults to a random name if not provided)","default":"emLdLxWl","type":"string","minLength":1},"visibility":{"default":"private","description":"The visibility of the repository (defaults to private)","enum":["public","private"]}}}},"required":["service_id","configuration"]},{"type":"object","properties":{"service_id":{"const":"free"},"configuration":{"type":"object","properties":{"rechargeAmountUsd":{"description":"Optional pay-as-you-go auto top-up ceiling, in USD. If set, usage above the plan's included quota is billed via the shared payment token (minimum $15). If omitted, the plan's included quota is a hard cap.","type":"number","minimum":15}}},"payment_credentials":{"type":"object","properties":{"type":{"const":"stripe_payment_token"},"stripe_payment_token":{"type":"string","minLength":1}},"required":["type","stripe_payment_token"]}},"required":["service_id"]},{"type":"object","properties":{"service_id":{"const":"pro"},"configuration":{"type":"object","properties":{"rechargeAmountUsd":{"description":"Optional pay-as-you-go auto top-up ceiling, in USD. If set, usage above the plan's included quota is billed via the shared payment token (minimum $15). If omitted, the plan's included quota is a hard cap.","type":"number","minimum":15}}},"payment_credentials":{"type":"object","properties":{"type":{"const":"stripe_payment_token"},"stripe_payment_token":{"type":"string","minLength":1}},"required":["type","stripe_payment_token"]}},"required":["service_id"]}]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"complete"},"id":{"type":"string"},"complete":{"type":"object","properties":{"access_configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["access_configuration"],"additionalProperties":false}},"required":["status","id","complete"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"pending"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"description":"Resource provisioning error","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Provisioned resource"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Resource provisioning error"}}}},"/api/agentic/provisioning/resources/{id}":{"get":{"summary":"Get a resource by ID","tags":["agentic-provisioning"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"complete"},"id":{"type":"string"},"complete":{"type":"object","properties":{"access_configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["status","id","complete"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"pending"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"removed"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Resource status"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Resource error"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/resources/{id}/update_service":{"post":{"summary":"Update resource service","tags":["agentic-provisioning"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"service_id":{"type":"string","minLength":1},"configuration":{"type":"object","properties":{"rechargeAmountUsd":{"description":"Set a number (USD, minimum $15) to enable or update pay-as-you-go auto top-up; pass null to disable; omit to leave it unchanged.","anyOf":[{"type":"number","minimum":15},{"type":"null"}]}}},"payment_credentials":{"type":"object","properties":{"type":{"const":"stripe_payment_token"},"stripe_payment_token":{"type":"string","minLength":1}},"required":["type"]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"complete"},"id":{"type":"string"},"complete":{"type":"object","properties":{"access_configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["status","id","complete"],"additionalProperties":false},{"type":"object","properties":{"status":{"const":"pending"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"description":"Service update error","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Service update result"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Service update error"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/resources/{id}/remove":{"post":{"summary":"Remove resource","tags":["agentic-provisioning"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"removed"},"id":{"type":"string"}},"required":["status","id"],"additionalProperties":false},{"description":"Resource removal not supported","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Resource removal result"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Resource removal error"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/resources/{id}/rotate_credentials":{"post":{"summary":"Rotate resource credentials","tags":["agentic-provisioning"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"status":{"const":"complete"},"id":{"type":"string"},"complete":{"type":"object","properties":{"access_configuration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["status","id","complete"],"additionalProperties":false},{"description":"Credential rotation not supported","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}]}}},"description":"Rotated credentials"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Credential rotation error"},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Resource not found"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"const":"error"},"id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["status","id","error"],"additionalProperties":false}}},"description":"Token was modified concurrently"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/agentic/provisioning/deep_links":{"post":{"summary":"Create deep link","tags":["agentic-provisioning"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"purpose":{"const":"dashboard"}},"required":["purpose"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"purpose":{"type":"string"},"url":{"type":"string"},"expires_at":{"type":"string"}},"required":["purpose","url","expires_at"],"additionalProperties":false}}},"description":"Deep link URL"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"description":"Deep link error"}}}},"/oauth/register":{"post":{"summary":"Register a new OAuth app","tags":["oauth"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"redirect_uris":{"type":"array","items":{"type":"string","format":"uri"}},"client_name":{"type":"string"},"client_uri":{"type":"string","format":"uri"},"logo_uri":{"type":"string","format":"uri"},"scope":{"type":"string"},"contacts":{"type":"array","items":{"type":"string"}},"token_endpoint_auth_method":{"enum":["client_secret_basic","none","client_secret_post"]},"software_id":{"type":"string"},"software_version":{"type":"string"}}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"},"client_id_issued_at":{"type":"number"},"client_secret_expires_at":{"type":"number"},"redirect_uris":{"type":"array","items":{"type":"string","format":"uri"}},"client_name":{"type":"string"},"client_uri":{"type":"string","format":"uri"},"logo_uri":{"type":"string","format":"uri"},"scope":{"type":"string"},"grant_types":{"readOnly":true,"type":"array","items":{"enum":["urn:ietf:params:oauth:grant-type:token-exchange","urn:ietf:params:oauth:grant-type:device_code","authorization_code","refresh_token"]}},"contacts":{"type":"array","items":{"type":"string"}},"token_endpoint_auth_method":{"enum":["client_secret_basic","none","client_secret_post"]},"software_id":{"type":"string"},"software_version":{"type":"string"}},"required":["client_id","client_id_issued_at","client_secret_expires_at","redirect_uris","scope","grant_types"],"additionalProperties":false}}},"description":"Details of the OAuth app that was created"}}}},"/oauth/device":{"post":{"summary":"Initiate device authorization","tags":["oauth"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Initiate device authorization as per https://datatracker.ietf.org/doc/html/rfc8628#section-3.1","type":"object","properties":{"client_id":{"type":"string"},"scope":{"type":"string"}},"required":["client_id"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"device_code":{"type":"string"},"user_code":{"type":"string"},"verification_uri":{"type":"string"},"expires_in":{"type":"number"}},"required":["device_code","user_code","verification_uri","expires_in"],"additionalProperties":false}}},"description":"Details of the device code that was created as per https://datatracker.ietf.org/doc/html/rfc8628#section-3.2"}}}},"/oauth/userinfo":{"get":{"description":"Get information about the user. Only available through oauth access tokens. Information varies depending on the scope of the oauth app and what permissions the user granted to the oauth app.","summary":"Get user info","tags":["oauth"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sub":{"description":"ID of the user","type":"string"},"name":{"description":"Full name of the user","type":"string"},"preferred_username":{"description":"Username of the user","type":"string"},"profile":{"description":"Profile URL of the user","type":"string","format":"uri"},"picture":{"description":"Avatar URL of the user","type":"string","format":"uri"},"website":{"description":"Website of the user","type":"string","format":"uri"},"email":{"description":"Email of the user","type":"string"},"email_verified":{"description":"Whether the email is verified","type":"boolean"},"isPro":{"description":"Whether the user is a Pro user","type":"boolean"},"canPay":{"description":"Whether the user has access to billing. You should check `canPay` first.","type":"boolean"},"billingMode":{"description":"Whether the user is on prepaid or postpaid billing","enum":["prepaid","postpaid"]},"orgs":{"type":"array","items":{"type":"object","properties":{"sub":{"description":"ID of the organization","type":"string"},"name":{"description":"Name of the organization","type":"string"},"picture":{"description":"Avatar URL of the organization","type":"string","format":"uri"},"preferred_username":{"description":"Username of the organization","type":"string"},"plan":{"enum":["team","enterprise","plus","academia"]},"canPay":{"type":"boolean"},"billingMode":{"enum":["prepaid","postpaid"]},"roleInOrg":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"securityRestrictions":{"description":"Current security restrictions for accessing data in this organization with current authentication method","type":"array","items":{"enum":["mfa","token-policy","token-revoked","sso","ip"]}},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"sub":{"type":"string"},"name":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["sub","name","role"],"additionalProperties":false}}},"required":["sub","name","picture","preferred_username"],"additionalProperties":false}}},"required":["sub","isPro","orgs"],"additionalProperties":false}}},"description":"User info"}}},"post":{"description":"Get information about the user. Only available through oauth access tokens. Information varies depending on the scope of the oauth app and what permissions the user granted to the oauth app.","summary":"Get user info","tags":["oauth"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sub":{"description":"ID of the user","type":"string"},"name":{"description":"Full name of the user","type":"string"},"preferred_username":{"description":"Username of the user","type":"string"},"profile":{"description":"Profile URL of the user","type":"string","format":"uri"},"picture":{"description":"Avatar URL of the user","type":"string","format":"uri"},"website":{"description":"Website of the user","type":"string","format":"uri"},"email":{"description":"Email of the user","type":"string"},"email_verified":{"description":"Whether the email is verified","type":"boolean"},"isPro":{"description":"Whether the user is a Pro user","type":"boolean"},"canPay":{"description":"Whether the user has access to billing. You should check `canPay` first.","type":"boolean"},"billingMode":{"description":"Whether the user is on prepaid or postpaid billing","enum":["prepaid","postpaid"]},"orgs":{"type":"array","items":{"type":"object","properties":{"sub":{"description":"ID of the organization","type":"string"},"name":{"description":"Name of the organization","type":"string"},"picture":{"description":"Avatar URL of the organization","type":"string","format":"uri"},"preferred_username":{"description":"Username of the organization","type":"string"},"plan":{"enum":["team","enterprise","plus","academia"]},"canPay":{"type":"boolean"},"billingMode":{"enum":["prepaid","postpaid"]},"roleInOrg":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"securityRestrictions":{"description":"Current security restrictions for accessing data in this organization with current authentication method","type":"array","items":{"enum":["mfa","token-policy","token-revoked","sso","ip"]}},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"sub":{"type":"string"},"name":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["sub","name","role"],"additionalProperties":false}}},"required":["sub","name","picture","preferred_username"],"additionalProperties":false}}},"required":["sub","isPro","orgs"],"additionalProperties":false}}},"description":"User info"}}}},"/api/registry/token":{"get":{"description":"Mints a short-lived EdDSA JWT for the HuggingFace container registry, verifiable via the JWK at `/api/keys/jwt`.","summary":"Registry token","tags":["container"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"description":"EdDSA JWT signed by the moon JWT key, carrying `access[]`.","type":"string"},"access_token":{"description":"Identical to `token` \u2014 Docker Distribution v2 accepts either field.","type":"string"},"expires_in":{"description":"JWT lifetime in seconds.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"issued_at":{"description":"ISO-8601 timestamp at which the JWT was minted.","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["token","access_token","expires_in","issued_at"],"additionalProperties":false}}},"description":"Docker Distribution v2 token response \u2014 see https://distribution.github.io/distribution/spec/auth/jwt/"}},"parameters":[{"name":"service","in":"query","schema":{"description":"Registry service identifier \u2014 placed in the JWT `aud` claim.","type":"string","minLength":1},"required":true},{"name":"scope","in":"query","schema":{"description":"Docker Distribution scope(s), e.g. `repository:org/img:push,pull`. May be repeated.","anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"required":false}]}},"/api/blog/{slug}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/blog/{slug}/comment/{commentId}/reply":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/blog/{namespace}/{slug}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/blog/{namespace}/{slug}/comment/{commentId}/reply":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/docs":{"get":{"description":"Get list of available documentation","summary":"List docs","tags":["docs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"category":{"type":"string"}},"required":["id","url"],"additionalProperties":false}}}},"description":"List of available documentation"}}}},"/api/docs/search":{"get":{"description":"Search any Hugging Face documentation","summary":"Search docs","tags":["docs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_vectors":{"type":"object","properties":{"embeddings":{"type":"array","items":{"type":"number"}}},"required":["embeddings"],"additionalProperties":false},"heading1":{"type":"string"},"text":{"type":"string"},"product":{"type":"string"},"source_page_url":{"type":"string"},"source_page_title":{"type":"string"},"heading2":{"type":"string"},"heading3":{"type":"string"},"heading4":{"type":"string"},"heading5":{"type":"string"}},"required":["id","_vectors","heading1","text","product","source_page_url","source_page_title"],"additionalProperties":false}}}},"description":"Search results"}},"parameters":[{"name":"q","in":"query","schema":{"type":"string","maxLength":250},"required":true},{"name":"product","in":"query","schema":{"enum":["hub","transformers","diffusers","datasets","gradio","trackio","smolagents","huggingface_hub","cli","huggingface.js","transformers.js","inference-providers","inference-endpoints","peft","accelerate","optimum","optimum-habana","optimum-neuron","optimum-intel","optimum-executorch","optimum-tpu","tokenizers","llm-course","context-course","robotics-course","mcp-course","smol-course","agents-course","deep-rl-course","computer-vision-course","evaluate","tasks","dataset-viewer","trl","openenv","simulate","sagemaker","timm","safetensors","tgi","setfit","audio-course","lerobot","reachy_mini","autotrain","tei","bitsandbytes","cookbook","sentence_transformers","ml-games-course","diffusion-course","ml-for-3d-course","chat-ui","leaderboards","lighteval","argilla","distilabel","microsoft-azure","kernels","google-cloud","xet"]},"required":false},{"name":"limit","in":"query","schema":{"default":10,"type":"integer","minimum":1,"maximum":25},"required":false}]}},"/api/docs/search/full-text":{"get":{"description":"Full-text search across Hugging Face documentation","summary":"Full-text search docs","tags":["docs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hits":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"hierarchy_lvl0":{"type":"string"},"hierarchy_lvl1":{"type":"string"},"hierarchy_lvl2":{"type":"string"},"hierarchy_lvl3":{"type":"string"},"hierarchy_lvl4":{"type":"string"},"hierarchy_lvl5":{"type":"string"},"hierarchy_lvl6":{"type":"string"},"content":{"type":"string"},"anchor":{"type":"string"},"_formatted":{"type":"object","properties":{"url":{"type":"string"},"hierarchy_lvl0":{"type":"string"},"hierarchy_lvl1":{"type":"string"},"hierarchy_lvl2":{"type":"string"},"hierarchy_lvl3":{"type":"string"},"hierarchy_lvl4":{"type":"string"},"hierarchy_lvl5":{"type":"string"},"hierarchy_lvl6":{"type":"string"},"content":{"type":"string"},"anchor":{"type":"string"}},"additionalProperties":false}},"required":["url"],"additionalProperties":false}}},"required":["hits"],"additionalProperties":false}}},"description":"Full-text search results"}},"parameters":[{"name":"q","in":"query","schema":{"type":"string","maxLength":250},"required":true},{"name":"limit","in":"query","schema":{"default":9,"type":"integer","minimum":1,"maximum":100},"required":false},{"name":"domain","in":"query","schema":{"type":"string","maxLength":100},"required":false}]}},"/api/whoami-v2":{"get":{"description":"Get information about the user and auth method used","summary":"Get user info","tags":["auth"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"auth":{"type":"object","properties":{"type":{"type":"string"},"accessToken":{"type":"object","properties":{"displayName":{"type":"string"},"role":{"enum":["read","write","god","fineGrained"]},"fineGrained":{"type":"object","properties":{"scoped":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel","collection","org","user","resource-group","oauth-app"]}},"required":["_id","type"],"additionalProperties":false},"permissions":{"type":"array","items":{"type":"string"}}},"required":["entity","permissions"],"additionalProperties":false}},"global":{"type":"array","items":{"enum":["discussion.write","post.write"]}},"canReadGatedRepos":{"description":"Allow access to all public gated repos to which the user has access","type":"boolean"}},"required":["scoped"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["displayName","role","createdAt"],"additionalProperties":false},"expiresAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resource":{"type":"object","properties":{"sub":{"type":"string"}},"required":["sub"],"additionalProperties":false}},"required":["type"],"additionalProperties":false},"type":{"const":"user"},"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"canPay":{"type":"boolean"},"billingMode":{"enum":["prepaid","postpaid"]},"avatarUrl":{"type":"string"},"periodEnd":{"anyOf":[{"type":"number"},{"type":"null"}]},"emailVerified":{"type":"boolean"},"isPro":{"type":"boolean"},"orgs":{"type":"array","items":{"type":"object","properties":{"type":{"const":"org"},"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"canPay":{"type":"boolean"},"billingMode":{"enum":["prepaid","postpaid"]},"avatarUrl":{"type":"string"},"periodEnd":{"anyOf":[{"type":"number"},{"type":"null"}]},"plan":{"enum":["team","enterprise","plus","academia"]},"roleInOrg":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"securityRestrictions":{"description":"Current security restrictions for accessing data in this organization with current authentication method","type":"array","items":{"enum":["mfa","token-policy","token-revoked","sso","ip"]}},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"role":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]}},"required":["id","name","role"],"additionalProperties":false}}},"required":["type","id","name","fullname","avatarUrl"],"additionalProperties":false}}},"required":["auth","type","id","name","fullname","avatarUrl","isPro","orgs"],"additionalProperties":false}]}}},"description":"Auth information"}}}},"/api/organizations/{name}/billing/usage":{"get":{"description":"Get org usage for a given period","summary":"Get org usage","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"usage":{"type":"object","propertyNames":{"anyOf":[{"enum":["Endpoints","Spaces"]},{"not":{}}]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"entityId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"product":{"enum":["hf/repository-storage","jobs/cpu-basic/minutes","jobs/cpu-upgrade/minutes","jobs/cpu-performance/minutes","jobs/cpu-xl/minutes","jobs/sprx8/minutes","jobs/t4-small/minutes","jobs/t4-medium/minutes","jobs/a10g-small/minutes","jobs/a10g-large/minutes","jobs/a10g-largex2/minutes","jobs/a10g-largex4/minutes","jobs/a100-large/minutes","jobs/a100x4/minutes","jobs/a100x8/minutes","jobs/h100/minutes","jobs/h100x8/minutes","jobs/h200/minutes","jobs/h200x2/minutes","jobs/h200x4/minutes","jobs/h200x8/minutes","jobs/rtx-pro-6000/minutes","jobs/rtx-pro-6000x2/minutes","jobs/rtx-pro-6000x4/minutes","jobs/rtx-pro-6000x8/minutes","jobs/l4x1/minutes","jobs/l4x4/minutes","jobs/l40sx1/minutes","jobs/l40sx4/minutes","jobs/l40sx8/minutes","jobs/v5e-2x4/minutes","jobs/v5e-2x2/minutes","jobs/v5e-1x1/minutes","jobs/inf2x6/minutes","spaces/zero-a10g/minutes","spaces/cpu-basic/minutes","spaces/cpu-upgrade/minutes","spaces/cpu-performance/minutes","spaces/cpu-xl/minutes","spaces/sprx8/minutes","spaces/t4-small/minutes","spaces/t4-medium/minutes","spaces/a10g-small/minutes","spaces/a10g-large/minutes","spaces/a10g-largex2/minutes","spaces/a10g-largex4/minutes","spaces/a100-large/minutes","spaces/a100x4/minutes","spaces/a100x8/minutes","spaces/h100/minutes","spaces/h100x8/minutes","spaces/h200/minutes","spaces/h200x2/minutes","spaces/h200x4/minutes","spaces/h200x8/minutes","spaces/rtx-pro-6000/minutes","spaces/rtx-pro-6000x2/minutes","spaces/rtx-pro-6000x4/minutes","spaces/rtx-pro-6000x8/minutes","spaces/l4x1/minutes","spaces/l4x4/minutes","spaces/l40sx1/minutes","spaces/l40sx4/minutes","spaces/l40sx8/minutes","spaces/inf2x6/minutes","spaces/v5e-2x4/minutes","spaces/v5e-2x2/minutes","spaces/v5e-1x1/minutes","spaces/storage-small/minutes","spaces/storage-medium/minutes","spaces/storage-large/minutes","endpoints/azure/intel-xeon/x1","endpoints/azure/intel-xeon/x2","endpoints/azure/intel-xeon/x4","endpoints/azure/intel-xeon/x8","endpoints/aws/intel-icl/x1","endpoints/aws/intel-icl/x2","endpoints/aws/intel-icl/x4","endpoints/aws/intel-icl/x8","endpoints/aws/intel-spr/x1","endpoints/aws/intel-spr/x2","endpoints/aws/intel-spr/x4","endpoints/aws/intel-spr/x8","endpoints/aws/intel-spr/x16","endpoints/aws/intel-spr-overcommitted/x16","endpoints/aws/nvidia-t4/x1","endpoints/aws/nvidia-t4/x4","endpoints/aws/nvidia-l4/x1","endpoints/aws/nvidia-l4/x4","endpoints/aws/nvidia-l40s/x1","endpoints/aws/nvidia-l40s/x4","endpoints/aws/nvidia-l40s/x8","endpoints/aws/nvidia-a10g/x1","endpoints/aws/nvidia-a10g/x4","endpoints/aws/nvidia-a100/x1","endpoints/aws/nvidia-a100/x2","endpoints/aws/nvidia-a100/x4","endpoints/aws/nvidia-a100/x8","endpoints/aws/nvidia-h100/x1","endpoints/aws/nvidia-h100/x2","endpoints/aws/nvidia-h100/x4","endpoints/aws/nvidia-h100/x8","endpoints/aws/nvidia-h200/x1","endpoints/aws/nvidia-h200/x2","endpoints/aws/nvidia-h200/x4","endpoints/aws/nvidia-h200/x8","endpoints/aws/nvidia-b200/x1","endpoints/aws/nvidia-b200/x2","endpoints/aws/nvidia-b200/x4","endpoints/aws/nvidia-b200/x8","endpoints/aws/nvidia-rtx-pro-6000/x1","endpoints/aws/nvidia-rtx-pro-6000/x2","endpoints/aws/nvidia-rtx-pro-6000/x4","endpoints/aws/nvidia-rtx-pro-6000/x8","endpoints/aws/inf2/x1","endpoints/aws/inf2/x1-large","endpoints/aws/inf2/x12","endpoints/gcp/intel-spr/x1","endpoints/gcp/intel-spr/x2","endpoints/gcp/intel-spr/x4","endpoints/gcp/intel-spr/x8","endpoints/gcp/nvidia-t4/x1","endpoints/gcp/nvidia-l4/x1","endpoints/gcp/nvidia-l4/x4","endpoints/gcp/nvidia-a100/x1","endpoints/gcp/nvidia-a100/x2","endpoints/gcp/nvidia-a100/x4","endpoints/gcp/nvidia-a100/x8","endpoints/gcp/nvidia-h100/x1","endpoints/gcp/nvidia-h100/x2","endpoints/gcp/nvidia-h100/x4","endpoints/gcp/nvidia-h100/x8","endpoints/gcp/v5e/1x1","endpoints/gcp/v5e/2x2","endpoints/gcp/v5e/2x4"]},"quantity":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"stoppedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},{"type":"null"}]},"freeGrant":{"type":"boolean"},"productPrettyName":{"type":"string"},"unitLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalCostMicroUSD":{"type":"number"},"unitCostMicroUSD":{"type":"number"},"active":{"type":"boolean"}},"required":["entityId","label","product","quantity","productPrettyName","unitLabel","totalCostMicroUSD","unitCostMicroUSD","active"],"additionalProperties":false}}},"period":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"entityId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"entityType":{"enum":["user","org"]},"entityName":{"type":"string"},"periodStart":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"invoice":{"anyOf":[{"type":"object","properties":{"type":{"const":"stripe"},"id":{"type":"string"},"amountDueCents":{"type":"number"},"totalCents":{"type":"number"},"status":{"enum":["draft","open","paid","uncollectible","void","unpaid"]},"dueDate":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"collectionMethod":{"enum":["charge_automatically","send_invoice"]}},"required":["type","id","amountDueCents","totalCents","status","dueDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"no-invoice"},"id":{"const":"no-invoice"}},"required":["type","id"],"additionalProperties":false}]},"charges":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"dueDate":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"usageAtChargeTimeMicroUSD":{"type":"number"},"amountCents":{"type":"number"},"billedThrough":{"enum":["stripe-payment-intent"]},"paymentIntentId":{"type":"string"},"paymentIntentStatus":{"enum":["canceled","processing","requires_action","requires_capture","requires_confirmation","requires_payment_method","succeeded"]}},"required":["_id","createdAt","dueDate","usageAtChargeTimeMicroUSD","amountCents","billedThrough","paymentIntentId","paymentIntentStatus"],"additionalProperties":false}}},"required":["_id","entityId","entityType","entityName","periodStart","periodEnd"],"additionalProperties":false}},"required":["usage","period"],"additionalProperties":false}}},"description":"Usage and period information"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"periodId","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"required":false}]}},"/api/organizations/{name}/billing/usage-v2":{"get":{"description":"Get org usage for a given period","summary":"Get org usage","tags":["orgs"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"required":true},{"name":"endDate","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"required":true}]}},"/api/organizations/{name}/billing/usage-by-resource-group":{"get":{"description":"Get org usage breakdown per resource group, returned as a time-series of monthly periods. Window is [startDate, endDate], defaults to the current month. Both dates must fall within the last 12 months. Storage values are the peak observed within each monthly period.","summary":"Get resource group usage","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"currency":{"type":"string"},"periods":{"type":"array","items":{"type":"object","properties":{"period":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroups":{"type":"array","items":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"storage":{"type":"object","properties":{"privateGB":{"type":"number"},"publicGB":{"type":"number"}},"required":["privateGB","publicGB"],"additionalProperties":false},"inference":{"type":"object","properties":{"requestCount":{"type":"number"},"costCents":{"type":"number"}},"required":["requestCount","costCents"],"additionalProperties":false},"compute":{"type":"object","properties":{"spaces":{"type":"object","properties":{"uptimeSec":{"type":"number"},"costCents":{"type":"number"}},"required":["uptimeSec","costCents"],"additionalProperties":false},"endpoints":{"type":"object","properties":{"uptimeSec":{"type":"number"},"costCents":{"type":"number"}},"required":["uptimeSec","costCents"],"additionalProperties":false},"jobs":{"type":"object","properties":{"uptimeSec":{"type":"number"},"costCents":{"type":"number"}},"required":["uptimeSec","costCents"],"additionalProperties":false}},"required":["spaces","endpoints","jobs"],"additionalProperties":false}},"required":["id","name","storage","inference","compute"],"additionalProperties":false}}},"required":["period","resourceGroups"],"additionalProperties":false}}},"required":["currency","periods"],"additionalProperties":false}}},"description":"Org usage breakdown per resource group, indexed by monthly period"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","schema":{"default":"2026-07-01T00:00:00.000Z","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"endDate","in":"query","schema":{"default":"2026-07-27T14:24:02.645Z","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]}},"/api/organizations/{name}/billing/usage-by-inference-session":{"get":{"description":"Get org inference-provider usage broken down per session id, as a time-series of monthly periods.","summary":"Get session inference usage","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"currency":{"type":"string"},"periods":{"type":"array","items":{"type":"object","properties":{"period":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"sessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"requestCount":{"type":"number"},"costCents":{"type":"number"}},"required":["id","requestCount","costCents"],"additionalProperties":false}}},"required":["period","sessions"],"additionalProperties":false}}},"required":["currency","periods"],"additionalProperties":false}}},"description":"Inference-provider usage breakdown per session, indexed by monthly period"}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","schema":{"default":"2026-07-01T00:00:00.000Z","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"endDate","in":"query","schema":{"default":"2026-07-27T14:24:02.646Z","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]}},"/api/organizations/{name}/billing/usage/live":{"get":{"description":"Get live usage for org","summary":"Stream usage","tags":["orgs"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/settings/billing/usage":{"get":{"description":"Get user usage for a given period","summary":"Get user usage","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"usage":{"type":"object","propertyNames":{"anyOf":[{"enum":["Endpoints","Spaces"]},{"not":{}}]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"entityId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"product":{"enum":["hf/repository-storage","jobs/cpu-basic/minutes","jobs/cpu-upgrade/minutes","jobs/cpu-performance/minutes","jobs/cpu-xl/minutes","jobs/sprx8/minutes","jobs/t4-small/minutes","jobs/t4-medium/minutes","jobs/a10g-small/minutes","jobs/a10g-large/minutes","jobs/a10g-largex2/minutes","jobs/a10g-largex4/minutes","jobs/a100-large/minutes","jobs/a100x4/minutes","jobs/a100x8/minutes","jobs/h100/minutes","jobs/h100x8/minutes","jobs/h200/minutes","jobs/h200x2/minutes","jobs/h200x4/minutes","jobs/h200x8/minutes","jobs/rtx-pro-6000/minutes","jobs/rtx-pro-6000x2/minutes","jobs/rtx-pro-6000x4/minutes","jobs/rtx-pro-6000x8/minutes","jobs/l4x1/minutes","jobs/l4x4/minutes","jobs/l40sx1/minutes","jobs/l40sx4/minutes","jobs/l40sx8/minutes","jobs/v5e-2x4/minutes","jobs/v5e-2x2/minutes","jobs/v5e-1x1/minutes","jobs/inf2x6/minutes","spaces/zero-a10g/minutes","spaces/cpu-basic/minutes","spaces/cpu-upgrade/minutes","spaces/cpu-performance/minutes","spaces/cpu-xl/minutes","spaces/sprx8/minutes","spaces/t4-small/minutes","spaces/t4-medium/minutes","spaces/a10g-small/minutes","spaces/a10g-large/minutes","spaces/a10g-largex2/minutes","spaces/a10g-largex4/minutes","spaces/a100-large/minutes","spaces/a100x4/minutes","spaces/a100x8/minutes","spaces/h100/minutes","spaces/h100x8/minutes","spaces/h200/minutes","spaces/h200x2/minutes","spaces/h200x4/minutes","spaces/h200x8/minutes","spaces/rtx-pro-6000/minutes","spaces/rtx-pro-6000x2/minutes","spaces/rtx-pro-6000x4/minutes","spaces/rtx-pro-6000x8/minutes","spaces/l4x1/minutes","spaces/l4x4/minutes","spaces/l40sx1/minutes","spaces/l40sx4/minutes","spaces/l40sx8/minutes","spaces/inf2x6/minutes","spaces/v5e-2x4/minutes","spaces/v5e-2x2/minutes","spaces/v5e-1x1/minutes","spaces/storage-small/minutes","spaces/storage-medium/minutes","spaces/storage-large/minutes","endpoints/azure/intel-xeon/x1","endpoints/azure/intel-xeon/x2","endpoints/azure/intel-xeon/x4","endpoints/azure/intel-xeon/x8","endpoints/aws/intel-icl/x1","endpoints/aws/intel-icl/x2","endpoints/aws/intel-icl/x4","endpoints/aws/intel-icl/x8","endpoints/aws/intel-spr/x1","endpoints/aws/intel-spr/x2","endpoints/aws/intel-spr/x4","endpoints/aws/intel-spr/x8","endpoints/aws/intel-spr/x16","endpoints/aws/intel-spr-overcommitted/x16","endpoints/aws/nvidia-t4/x1","endpoints/aws/nvidia-t4/x4","endpoints/aws/nvidia-l4/x1","endpoints/aws/nvidia-l4/x4","endpoints/aws/nvidia-l40s/x1","endpoints/aws/nvidia-l40s/x4","endpoints/aws/nvidia-l40s/x8","endpoints/aws/nvidia-a10g/x1","endpoints/aws/nvidia-a10g/x4","endpoints/aws/nvidia-a100/x1","endpoints/aws/nvidia-a100/x2","endpoints/aws/nvidia-a100/x4","endpoints/aws/nvidia-a100/x8","endpoints/aws/nvidia-h100/x1","endpoints/aws/nvidia-h100/x2","endpoints/aws/nvidia-h100/x4","endpoints/aws/nvidia-h100/x8","endpoints/aws/nvidia-h200/x1","endpoints/aws/nvidia-h200/x2","endpoints/aws/nvidia-h200/x4","endpoints/aws/nvidia-h200/x8","endpoints/aws/nvidia-b200/x1","endpoints/aws/nvidia-b200/x2","endpoints/aws/nvidia-b200/x4","endpoints/aws/nvidia-b200/x8","endpoints/aws/nvidia-rtx-pro-6000/x1","endpoints/aws/nvidia-rtx-pro-6000/x2","endpoints/aws/nvidia-rtx-pro-6000/x4","endpoints/aws/nvidia-rtx-pro-6000/x8","endpoints/aws/inf2/x1","endpoints/aws/inf2/x1-large","endpoints/aws/inf2/x12","endpoints/gcp/intel-spr/x1","endpoints/gcp/intel-spr/x2","endpoints/gcp/intel-spr/x4","endpoints/gcp/intel-spr/x8","endpoints/gcp/nvidia-t4/x1","endpoints/gcp/nvidia-l4/x1","endpoints/gcp/nvidia-l4/x4","endpoints/gcp/nvidia-a100/x1","endpoints/gcp/nvidia-a100/x2","endpoints/gcp/nvidia-a100/x4","endpoints/gcp/nvidia-a100/x8","endpoints/gcp/nvidia-h100/x1","endpoints/gcp/nvidia-h100/x2","endpoints/gcp/nvidia-h100/x4","endpoints/gcp/nvidia-h100/x8","endpoints/gcp/v5e/1x1","endpoints/gcp/v5e/2x2","endpoints/gcp/v5e/2x4"]},"quantity":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"stoppedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},{"type":"null"}]},"freeGrant":{"type":"boolean"},"productPrettyName":{"type":"string"},"unitLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalCostMicroUSD":{"type":"number"},"unitCostMicroUSD":{"type":"number"},"active":{"type":"boolean"}},"required":["entityId","label","product","quantity","productPrettyName","unitLabel","totalCostMicroUSD","unitCostMicroUSD","active"],"additionalProperties":false}}},"period":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"entityId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"entityType":{"enum":["user","org"]},"entityName":{"type":"string"},"periodStart":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"invoice":{"anyOf":[{"type":"object","properties":{"type":{"const":"stripe"},"id":{"type":"string"},"amountDueCents":{"type":"number"},"totalCents":{"type":"number"},"status":{"enum":["draft","open","paid","uncollectible","void","unpaid"]},"dueDate":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"collectionMethod":{"enum":["charge_automatically","send_invoice"]}},"required":["type","id","amountDueCents","totalCents","status","dueDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"no-invoice"},"id":{"const":"no-invoice"}},"required":["type","id"],"additionalProperties":false}]},"charges":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"dueDate":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"usageAtChargeTimeMicroUSD":{"type":"number"},"amountCents":{"type":"number"},"billedThrough":{"enum":["stripe-payment-intent"]},"paymentIntentId":{"type":"string"},"paymentIntentStatus":{"enum":["canceled","processing","requires_action","requires_capture","requires_confirmation","requires_payment_method","succeeded"]}},"required":["_id","createdAt","dueDate","usageAtChargeTimeMicroUSD","amountCents","billedThrough","paymentIntentId","paymentIntentStatus"],"additionalProperties":false}}},"required":["_id","entityId","entityType","entityName","periodStart","periodEnd"],"additionalProperties":false}},"required":["usage","period"],"additionalProperties":false}}},"description":"Usage and period information"}},"parameters":[{"name":"periodId","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"required":false}]}},"/api/settings/billing/usage-v2":{"get":{"description":"Get user usage for a given period","summary":"Get user usage","tags":["users"],"parameters":[{"name":"startDate","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"required":true},{"name":"endDate","in":"query","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"required":true}]}},"/api/settings/billing/usage-by-inference-session":{"get":{"description":"Get user inference-provider usage broken down per session id","summary":"Get session inference usage","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"currency":{"type":"string"},"periods":{"type":"array","items":{"type":"object","properties":{"period":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"sessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"requestCount":{"type":"number"},"costCents":{"type":"number"}},"required":["id","requestCount","costCents"],"additionalProperties":false}}},"required":["period","sessions"],"additionalProperties":false}}},"required":["currency","periods"],"additionalProperties":false}}},"description":"Inference-provider usage breakdown per session, indexed by monthly period"}},"parameters":[{"name":"startDate","in":"query","schema":{"default":"2026-07-01T00:00:00.000Z","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"endDate","in":"query","schema":{"default":"2026-07-27T14:24:02.646Z","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]}},"/api/settings/billing/usage/jobs":{"get":{"description":"Get user Jobs usage for current subscription period","summary":"Get jobs usage","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"usage":{"type":"object","properties":{"usedMicroUsd":{"type":"number"},"totalMinutes":{"type":"number"},"periodStart":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"jobDetails":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string"},"hardwareFlavor":{"type":"string"},"totalMinutes":{"type":"number"},"totalCostMicroUsd":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"completedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["jobId","hardwareFlavor","totalMinutes","totalCostMicroUsd","startedAt"],"additionalProperties":false}}},"required":["usedMicroUsd","totalMinutes","periodStart","periodEnd","jobDetails"],"additionalProperties":false},"hasAccess":{"type":"boolean"}},"required":["usage","hasAccess"],"additionalProperties":false}}},"description":"Jobs usage information"}}}},"/api/settings/billing/usage/live":{"get":{"description":"Get live usage for user","summary":"Stream usage","tags":["users"]}},"/api/users/{username}/billing/usage/live":{"get":{"description":"Get live usage for user","summary":"Stream usage","tags":["users"],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/users/{username}/overview":{"get":{"summary":"User overview","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numBuckets":{"type":"number"},"numKernels":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"numFollowingOrgs":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"primaryOrgAvatarUrl":{"type":"string"},"type":{"const":"user"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["_id","avatarUrl","fullname","isPro","user","type","createdAt"],"additionalProperties":false}}},"description":"User overview data including their organizations, stats, and creation date"}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/users/{username}/socials":{"get":{"description":"Get a user's social media handles","summary":"Get social handles","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string"},"user":{"type":"string"},"socialHandles":{"type":"object","properties":{"twitter":{"type":"string"},"github":{"type":"string"},"linkedin":{"type":"string"},"bluesky":{"type":"string"}},"additionalProperties":false}},"required":["_id","user","socialHandles"],"additionalProperties":false}}},"description":"The user's social media handles. Only includes handles that the user has provided."}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/users/{username}/avatar":{"get":{"description":"This endpoint returns a JSON with the avatar URL for the user.\n\nIf called with the `Sec-Fetch-Dest: image` header, it instead redirects to the avatar URL","summary":"Retrieve user avatar","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"avatarUrl":{"type":"string","format":"uri"}},"required":["avatarUrl"],"additionalProperties":false}}},"description":"Avatar URL"}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"redirect","in":"query","schema":{"description":"Redirect to the avatar url instead of returning it"},"required":false}]}},"/api/users/{username}/likes":{"get":{"description":"List public repos liked by a user","summary":"List user likes","tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"repo":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]}},"required":["name","type"],"additionalProperties":false}},"required":["createdAt","repo"],"additionalProperties":false}}}},"description":"Likes on public repositories","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link to the next page"}}}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"description":"Max number of likes to return","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"cursor","in":"query","schema":{"description":"Cursor for pagination. Always check to see if more results, a page can be empty or not filled.","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"required":false}]}},"/api/organizations/{name}/socials":{"get":{"description":"Get an organization's social media handles","summary":"Get social handles","tags":["orgs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string"},"org":{"type":"string"},"socialHandles":{"type":"object","properties":{"twitter":{"type":"string"},"github":{"type":"string"},"linkedin":{"type":"string"}},"additionalProperties":false}},"required":["_id","org","socialHandles"],"additionalProperties":false}}},"description":"The organization's social media handles. Only includes handles that the organization has provided."}},"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/avatars/{namespace}":{"get":{"description":"Display the avatar for any user or organization. This endpoint redirects to the avatar URL for either a user or an organization","summary":"Get avatar","tags":["users","orgs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/inference-endpoints/{namespace}/auth-check/{perms}":{"post":{"description":"Check if the user has access to the inference endpoint","summary":"Check access","tags":["inference-endpoints"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hasHfLevelAccess":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false},"resourceGroupId":{"type":"string"}},"required":["namespace","user"],"additionalProperties":false}}},"description":"The user has access to the inference endpoint/resource"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hasHfLevelAccess":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false},"patternRestrictions":{"type":"array","items":{"type":"string"}},"resourceGroupId":{"type":"string"}},"required":["namespace","user","patternRestrictions"],"additionalProperties":false}}},"description":"The user has access to the resource, but the endpoint name is restricted by pattern restrictions. Can only be returned if `endpoint` is not provided in the path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"perms","in":"path","required":true,"schema":{"type":"string","enum":["read","write","infer"]}},{"name":"own","in":"query","schema":{},"required":false},{"name":"is_creator","in":"query","schema":{},"required":false},{"name":"creator_id","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"incur_cost","in":"query","schema":{},"required":false},{"name":"resource_group_id","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"repo_id","in":"query","schema":{"type":"string"},"required":false}]}},"/api/inference-endpoints/{namespace}/{endpoint}/auth-check/{perms}":{"post":{"description":"Check if the user has access to the inference endpoint","summary":"Check access","tags":["inference-endpoints"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hasHfLevelAccess":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false},"resourceGroupId":{"type":"string"}},"required":["namespace","user"],"additionalProperties":false}}},"description":"The user has access to the inference endpoint/resource"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hasHfLevelAccess":{"type":"boolean"}},"required":["id","name"],"additionalProperties":false},"patternRestrictions":{"type":"array","items":{"type":"string"}},"resourceGroupId":{"type":"string"}},"required":["namespace","user","patternRestrictions"],"additionalProperties":false}}},"description":"The user has access to the resource, but the endpoint name is restricted by pattern restrictions. Can only be returned if `endpoint` is not provided in the path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"endpoint","in":"path","required":true,"schema":{"type":"string"}},{"name":"perms","in":"path","required":true,"schema":{"type":"string","enum":["read","write","infer"]}},{"name":"own","in":"query","schema":{},"required":false},{"name":"is_creator","in":"query","schema":{},"required":false},{"name":"creator_id","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"incur_cost","in":"query","schema":{},"required":false},{"name":"resource_group_id","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"repo_id","in":"query","schema":{"type":"string"},"required":false}]}},"/api/jobs/{namespace}/auth-check/{perms}":{"post":{"description":"Check if the user has access to jobs in the namespace","summary":"Check access","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"required":["namespace","user"],"additionalProperties":false}}},"description":"The user has access to jobs in the namespace"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"perms","in":"path","required":true,"schema":{"type":"string","enum":["read","write"]}}]}},"/api/jobs/{namespace}/{jobId}/auth-check/{perms}":{"post":{"description":"Check if the user has access to jobs in the namespace","summary":"Check access","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"namespace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"required":["namespace","user"],"additionalProperties":false}}},"description":"The user has access to jobs in the namespace"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"perms","in":"path","required":true,"schema":{"type":"string","enum":["read","write"]}}]}},"/api/models/{namespace}/{repo}/treesize/{rev}/{path}":{"get":{"description":"Get the total size of a repository at a given revision, optionally under a specific subpath. Returns the total size in bytes of all files under the specified path (recursively). If a file is stored via Xet/LFS, the LFS file size is used.","summary":"Get folder size","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"description":"The normalized path of the subtree, starting with a slash","type":"string"},"size":{"description":"Total size in bytes of all files under the subtree","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["path","size"],"additionalProperties":false}}},"description":"Total size of a repository at a given revision, under the given path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/spaces/{namespace}/{repo}/treesize/{rev}/{path}":{"get":{"description":"Get the total size of a repository at a given revision, optionally under a specific subpath. Returns the total size in bytes of all files under the specified path (recursively). If a file is stored via Xet/LFS, the LFS file size is used.","summary":"Get folder size","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"description":"The normalized path of the subtree, starting with a slash","type":"string"},"size":{"description":"Total size in bytes of all files under the subtree","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["path","size"],"additionalProperties":false}}},"description":"Total size of a repository at a given revision, under the given path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/datasets/{namespace}/{repo}/treesize/{rev}/{path}":{"get":{"description":"Get the total size of a repository at a given revision, optionally under a specific subpath. Returns the total size in bytes of all files under the specified path (recursively). If a file is stored via Xet/LFS, the LFS file size is used.","summary":"Get folder size","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"description":"The normalized path of the subtree, starting with a slash","type":"string"},"size":{"description":"Total size in bytes of all files under the subtree","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["path","size"],"additionalProperties":false}}},"description":"Total size of a repository at a given revision, under the given path"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/models/{namespace}/{repo}/lfs-files":{"get":{"description":"List Xet/LFS files for a repo","summary":"List Large files","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"pusher":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false},"ref":{"type":"string"},"fileOid":{"type":"string"},"oid":{"type":"string"},"size":{"type":"number"},"pushedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"filename":{"description":"Potential filename of the LFS file","type":"string"},"xetHash":{"type":"string"}},"required":["fileOid","oid","size","pushedAt"],"additionalProperties":false}}}},"description":"List of Xet/LFS files for the repo","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":1,"maximum":1000},"required":false},{"name":"xet","in":"query","schema":{},"required":false}]}},"/api/datasets/{namespace}/{repo}/lfs-files":{"get":{"description":"List Xet/LFS files for a repo","summary":"List Large files","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"pusher":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false},"ref":{"type":"string"},"fileOid":{"type":"string"},"oid":{"type":"string"},"size":{"type":"number"},"pushedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"filename":{"description":"Potential filename of the LFS file","type":"string"},"xetHash":{"type":"string"}},"required":["fileOid","oid","size","pushedAt"],"additionalProperties":false}}}},"description":"List of Xet/LFS files for the repo","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":1,"maximum":1000},"required":false},{"name":"xet","in":"query","schema":{},"required":false}]}},"/api/spaces/{namespace}/{repo}/lfs-files":{"get":{"description":"List Xet/LFS files for a repo","summary":"List Large files","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"pusher":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false},"ref":{"type":"string"},"fileOid":{"type":"string"},"oid":{"type":"string"},"size":{"type":"number"},"pushedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"filename":{"description":"Potential filename of the LFS file","type":"string"},"xetHash":{"type":"string"}},"required":["fileOid","oid","size","pushedAt"],"additionalProperties":false}}}},"description":"List of Xet/LFS files for the repo","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":1,"maximum":1000},"required":false},{"name":"xet","in":"query","schema":{},"required":false}]}},"/api/models/{namespace}/{repo}/lfs-files/batch":{"post":{"description":"Delete Xet/LFS files in batch","summary":"Delete Large files","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deletions":{"type":"object","properties":{"sha":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string"}},"rewriteHistory":{"default":true,"type":"boolean"}},"required":["sha"]}},"required":["deletions"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/lfs-files/batch":{"post":{"description":"Delete Xet/LFS files in batch","summary":"Delete Large files","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deletions":{"type":"object","properties":{"sha":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string"}},"rewriteHistory":{"default":true,"type":"boolean"}},"required":["sha"]}},"required":["deletions"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/lfs-files/batch":{"post":{"description":"Delete Xet/LFS files in batch","summary":"Delete Large files","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deletions":{"type":"object","properties":{"sha":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string"}},"rewriteHistory":{"default":true,"type":"boolean"}},"required":["sha"]}},"required":["deletions"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/lfs-files/{sha}":{"delete":{"description":"Delete a Xet/LFS file","summary":"Delete Large file","tags":["models"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha","in":"path","required":true,"schema":{"type":"string"}},{"name":"rewriteHistory","in":"query","schema":{"default":true},"required":false}]}},"/api/datasets/{namespace}/{repo}/lfs-files/{sha}":{"delete":{"description":"Delete a Xet/LFS file","summary":"Delete Large file","tags":["datasets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha","in":"path","required":true,"schema":{"type":"string"}},{"name":"rewriteHistory","in":"query","schema":{"default":true},"required":false}]}},"/api/spaces/{namespace}/{repo}/lfs-files/{sha}":{"delete":{"description":"Delete a Xet/LFS file","summary":"Delete Large file","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha","in":"path","required":true,"schema":{"type":"string"}},{"name":"rewriteHistory","in":"query","schema":{"default":true},"required":false}]}},"/api/models/{namespace}/{repo}/lfs-files/duplicate":{"post":{"description":"Duplicate xet-stored 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.","summary":"Duplicate xet files","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"target":{"type":"object","properties":{"type":{"enum":["dataset","model","space","kernel"]},"name":{"type":"string","minLength":1}},"required":["type","name"]},"files":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"xetHash":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"filename":{"type":"string","maxLength":1000}},"required":["xetHash","sha256"]}}},"required":["target","files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/kernels/{namespace}/{repo}/lfs-files/duplicate":{"post":{"description":"Duplicate xet-stored 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.","summary":"Duplicate xet files","tags":["kernels"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"target":{"type":"object","properties":{"type":{"enum":["dataset","model","space","kernel"]},"name":{"type":"string","minLength":1}},"required":["type","name"]},"files":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"xetHash":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"filename":{"type":"string","maxLength":1000}},"required":["xetHash","sha256"]}}},"required":["target","files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/lfs-files/duplicate":{"post":{"description":"Duplicate xet-stored 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.","summary":"Duplicate xet files","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"target":{"type":"object","properties":{"type":{"enum":["dataset","model","space","kernel"]},"name":{"type":"string","minLength":1}},"required":["type","name"]},"files":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"xetHash":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"filename":{"type":"string","maxLength":1000}},"required":["xetHash","sha256"]}}},"required":["target","files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/lfs-files/duplicate":{"post":{"description":"Duplicate xet-stored 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.","summary":"Duplicate xet files","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"target":{"type":"object","properties":{"type":{"enum":["dataset","model","space","kernel"]},"name":{"type":"string","minLength":1}},"required":["type","name"]},"files":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"xetHash":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"filename":{"type":"string","maxLength":1000}},"required":["xetHash","sha256"]}}},"required":["target","files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}/lfs-files/duplicate":{"post":{"description":"Duplicate xet-stored 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.","summary":"Duplicate xet files","tags":["buckets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"target":{"type":"object","properties":{"type":{"enum":["dataset","model","space","kernel"]},"name":{"type":"string","minLength":1}},"required":["type","name"]},"files":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"xetHash":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},"filename":{"type":"string","maxLength":1000}},"required":["xetHash","sha256"]}}},"required":["target","files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"},"207":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all requested files were duplicated (or already present)","type":"boolean"},"processed":{"description":"Total number of unique files processed","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of files duplicated or already present in the target","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"Per-file failures","type":"array","items":{"type":"object","properties":{"xetHash":{"description":"Xet content hash of the file that failed","type":"string"},"sha256":{"description":"sha256 of the file that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["xetHash","sha256","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Duplicate xet files response"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/commits/{rev}":{"get":{"summary":"List commits","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"authors":{"type":"array","items":{"type":"object","properties":{"user":{"type":"string"},"avatar":{"type":"string"}},"required":["user"],"additionalProperties":false}},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"formatted":{"description":"Available if expand includes formatted","type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title"],"additionalProperties":false}},"required":["id","title","message","authors","date"],"additionalProperties":false}}}},"description":"Commits list","headers":{"X-Total-Count":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link to the next page"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":false},{"name":"expand","in":"query","schema":{"type":"array","items":{"enum":["formatted"]}},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":1000},"required":false}]}},"/api/spaces/{namespace}/{repo}/commits/{rev}":{"get":{"summary":"List commits","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"authors":{"type":"array","items":{"type":"object","properties":{"user":{"type":"string"},"avatar":{"type":"string"}},"required":["user"],"additionalProperties":false}},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"formatted":{"description":"Available if expand includes formatted","type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title"],"additionalProperties":false}},"required":["id","title","message","authors","date"],"additionalProperties":false}}}},"description":"Commits list","headers":{"X-Total-Count":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link to the next page"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":false},{"name":"expand","in":"query","schema":{"type":"array","items":{"enum":["formatted"]}},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":1000},"required":false}]}},"/api/datasets/{namespace}/{repo}/commits/{rev}":{"get":{"summary":"List commits","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"authors":{"type":"array","items":{"type":"object","properties":{"user":{"type":"string"},"avatar":{"type":"string"}},"required":["user"],"additionalProperties":false}},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"formatted":{"description":"Available if expand includes formatted","type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title"],"additionalProperties":false}},"required":["id","title","message","authors","date"],"additionalProperties":false}}}},"description":"Commits list","headers":{"X-Total-Count":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link to the next page"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":false},{"name":"expand","in":"query","schema":{"type":"array","items":{"enum":["formatted"]}},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":1000},"required":false}]}},"/api/models/{namespace}/{repo}/refs":{"get":{"summary":"List references","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"converts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}}},"required":["tags","branches","converts"],"additionalProperties":false}}},"description":"List of references in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"include_prs","in":"query","schema":{"default":false},"required":false}]}},"/api/datasets/{namespace}/{repo}/refs":{"get":{"summary":"List references","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"converts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}}},"required":["tags","branches","converts"],"additionalProperties":false}}},"description":"List of references in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"include_prs","in":"query","schema":{"default":false},"required":false}]}},"/api/spaces/{namespace}/{repo}/refs":{"get":{"summary":"List references","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"converts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ref":{"type":"string"},"targetCommit":{"type":"string"}},"required":["name","ref","targetCommit"],"additionalProperties":false}}},"required":["tags","branches","converts"],"additionalProperties":false}}},"description":"List of references in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"include_prs","in":"query","schema":{"default":false},"required":false}]}},"/api/models/{namespace}/{repo}/compare/{compare}":{"get":{"summary":"Get a compare rev","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The diff between the two revisions"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"compare","in":"path","required":true,"schema":{"type":"string"}},{"name":"raw","in":"query","schema":{"default":false},"required":false}]}},"/api/datasets/{namespace}/{repo}/compare/{compare}":{"get":{"summary":"Get a compare rev","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The diff between the two revisions"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"compare","in":"path","required":true,"schema":{"type":"string"}},{"name":"raw","in":"query","schema":{"default":false},"required":false}]}},"/api/spaces/{namespace}/{repo}/compare/{compare}":{"get":{"summary":"Get a compare rev","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The diff between the two revisions"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"compare","in":"path","required":true,"schema":{"type":"string"}},{"name":"raw","in":"query","schema":{"default":false},"required":false}]}},"/api/models/{namespace}/{repo}/paths-info/{rev}":{"post":{"summary":"List paths info","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paths":{"anyOf":[{"maxItems":2000,"type":"array","items":{"type":"string"}},{"type":"string"}]},"expand":{"description":"Expand the response with the last commit and security file status","anyOf":[{"default":false},{"default":false,"type":"boolean"}]}},"required":["paths","expand"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"type":"number"},"lfs":{"type":"object","properties":{"pointerSize":{"type":"number"}},"required":["pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"path":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid","size","path"],"additionalProperties":false}}}},"description":"List of paths in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/paths-info/{rev}":{"post":{"summary":"List paths info","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paths":{"anyOf":[{"maxItems":2000,"type":"array","items":{"type":"string"}},{"type":"string"}]},"expand":{"description":"Expand the response with the last commit and security file status","anyOf":[{"default":false},{"default":false,"type":"boolean"}]}},"required":["paths","expand"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"type":"number"},"lfs":{"type":"object","properties":{"pointerSize":{"type":"number"}},"required":["pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"path":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid","size","path"],"additionalProperties":false}}}},"description":"List of paths in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/paths-info/{rev}":{"post":{"summary":"List paths info","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paths":{"anyOf":[{"maxItems":2000,"type":"array","items":{"type":"string"}},{"type":"string"}]},"expand":{"description":"Expand the response with the last commit and security file status","anyOf":[{"default":false},{"default":false,"type":"boolean"}]}},"required":["paths","expand"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"type":"number"},"lfs":{"type":"object","properties":{"pointerSize":{"type":"number"}},"required":["pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"path":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid","size","path"],"additionalProperties":false}}}},"description":"List of paths in the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/preupload/{rev}":{"post":{"description":"Check if a file should be uploaded through the Large File mechanism or directly.","summary":"Check upload method","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"},"sample":{"type":"string"}},"required":["path","size","sample"]}},"gitAttributes":{"description":"Provide this parameter if you plan to modify `.gitattributes` yourself at the same time as uploading LFS files. Note that this is not needed if you solely rely on automatic LFS detection from HF: the commit endpoint will automatically edit the `.gitattributes` file to track the files passed to its `lfsFiles` param.","type":"string"},"gitIgnore":{"description":"Content of the .gitignore file for the revision. Optional, otherwise takes the existing content of `.gitignore` for the revision.","type":"string"}},"required":["files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"uploadMode":{"enum":["lfs","regular"]},"shouldIgnore":{"type":"boolean"},"oid":{"description":"The oid of the blob if it already exists in the repository. If the blob is a LFS file, it'll be the lfs oid.","type":"string"}},"required":["path","uploadMode","shouldIgnore"],"additionalProperties":false}},"commitOid":{"type":"string"}},"required":["files","commitOid"],"additionalProperties":false}}},"description":"Files to be uploaded."},"422":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"The request is invalid"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/preupload/{rev}":{"post":{"description":"Check if a file should be uploaded through the Large File mechanism or directly.","summary":"Check upload method","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"},"sample":{"type":"string"}},"required":["path","size","sample"]}},"gitAttributes":{"description":"Provide this parameter if you plan to modify `.gitattributes` yourself at the same time as uploading LFS files. Note that this is not needed if you solely rely on automatic LFS detection from HF: the commit endpoint will automatically edit the `.gitattributes` file to track the files passed to its `lfsFiles` param.","type":"string"},"gitIgnore":{"description":"Content of the .gitignore file for the revision. Optional, otherwise takes the existing content of `.gitignore` for the revision.","type":"string"}},"required":["files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"uploadMode":{"enum":["lfs","regular"]},"shouldIgnore":{"type":"boolean"},"oid":{"description":"The oid of the blob if it already exists in the repository. If the blob is a LFS file, it'll be the lfs oid.","type":"string"}},"required":["path","uploadMode","shouldIgnore"],"additionalProperties":false}},"commitOid":{"type":"string"}},"required":["files","commitOid"],"additionalProperties":false}}},"description":"Files to be uploaded."},"422":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"The request is invalid"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/preupload/{rev}":{"post":{"description":"Check if a file should be uploaded through the Large File mechanism or directly.","summary":"Check upload method","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"},"sample":{"type":"string"}},"required":["path","size","sample"]}},"gitAttributes":{"description":"Provide this parameter if you plan to modify `.gitattributes` yourself at the same time as uploading LFS files. Note that this is not needed if you solely rely on automatic LFS detection from HF: the commit endpoint will automatically edit the `.gitattributes` file to track the files passed to its `lfsFiles` param.","type":"string"},"gitIgnore":{"description":"Content of the .gitignore file for the revision. Optional, otherwise takes the existing content of `.gitignore` for the revision.","type":"string"}},"required":["files"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"uploadMode":{"enum":["lfs","regular"]},"shouldIgnore":{"type":"boolean"},"oid":{"description":"The oid of the blob if it already exists in the repository. If the blob is a LFS file, it'll be the lfs oid.","type":"string"}},"required":["path","uploadMode","shouldIgnore"],"additionalProperties":false}},"commitOid":{"type":"string"}},"required":["files","commitOid"],"additionalProperties":false}}},"description":"Files to be uploaded."},"422":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"The request is invalid"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/xet-write-token/{rev}":{"get":{"description":"Get a write short-lived access token for XET upload","summary":"Xet write token","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetWriteAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/xet-write-token/{rev}":{"get":{"description":"Get a write short-lived access token for XET upload","summary":"Xet write token","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetWriteAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/xet-write-token/{rev}":{"get":{"description":"Get a write short-lived access token for XET upload","summary":"Xet write token","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetWriteAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}/xet-write-token":{"get":{"description":"Get a write short-lived access token for XET upload","summary":"Xet write token","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetWriteAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/xet-read-token/{rev}":{"get":{"description":"Get a read short-lived access token for XET","summary":"Xet read token","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetReadAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/xet-read-token/{rev}":{"get":{"description":"Get a read short-lived access token for XET","summary":"Xet read token","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetReadAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/xet-read-token/{rev}":{"get":{"description":"Get a read short-lived access token for XET","summary":"Xet read token","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetReadAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}/xet-read-token":{"get":{"description":"Get a read short-lived access token for XET","summary":"Xet read token","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"casUrl":{"type":"string"},"exp":{"type":"number"},"accessToken":{"type":"string"}},"required":["casUrl","exp","accessToken"],"additionalProperties":false}}},"description":"The response from the getXetReadAccessToken endpoint.","headers":{"X-Xet-Cas-Url":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Token-Expiration":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},"X-Xet-Access-Token":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/commit/{rev}":{"post":{"description":"For legacy reason, we support both `application/json` and `application/x-ndjson` but we recommend using `application/x-ndjson` to create a commit.\n\nJSON-lines payload:\n```json\n{\n \"key\": \"header\",\n \"value\": {\n \"summary\": \"string (REQUIRED)\",\n \"description\": \"string (OPTIONAL - defaults to empty string)\",\n \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n }\n}\n{\n \"key\": \"file\",\n \"value\": {\n \"path\": \"string (REQUIRED)\",\n \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n}\n{\n \"key\": \"deletedEntry\",\n \"value\": {\n \"path\": \"string (REQUIRED)\"\n }\n}\n{\n \"key\": \"lfsFile\",\n \"value\": {\n \"path\": \"string (REQUIRED - max 1000 chars)\",\n \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n}\n```\n\nJSON payload:\n```json\n{\n \"summary\": \"string (REQUIRED)\",\n \"description\": \"string (OPTIONAL - defaults to empty string)\",\n \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n \"files\": [\n {\n \"path\": \"string (REQUIRED)\",\n \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n ],\n \"deletedEntries\": [\n {\n \"path\": \"string (REQUIRED)\"\n }\n ],\n \"lfsFiles\": [\n {\n \"path\": \"string (REQUIRED - max 1000 chars)\",\n \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n ]\n}\n```\n","summary":"Commit","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"Whether the commit was successful","type":"boolean"},"pullRequestUrl":{"description":"The URL of the pull request","type":"string"},"commitOid":{"description":"The OID of the commit","type":"string"},"commitUrl":{"description":"The URL of the commit","type":"string"},"hookOutput":{"description":"The output of the git hook","type":"string"}},"required":["success","commitOid","commitUrl","hookOutput"],"additionalProperties":false}}},"description":"The response of the commit"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"create_pr","in":"query","schema":{"description":"Whether to create a pull request from the commit"},"required":false},{"name":"hot_reload","in":"query","schema":{"description":"For Spaces, whether to try to hot reload the commit (only for single python files updates)"},"required":false},{"name":"Content-Type","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"`application/x-ndjson` if you to commit by json lines","default":"application/x-ndjson","enum":["application/json","application/x-ndjson"]}}]}},"/api/datasets/{namespace}/{repo}/commit/{rev}":{"post":{"description":"For legacy reason, we support both `application/json` and `application/x-ndjson` but we recommend using `application/x-ndjson` to create a commit.\n\nJSON-lines payload:\n```json\n{\n \"key\": \"header\",\n \"value\": {\n \"summary\": \"string (REQUIRED)\",\n \"description\": \"string (OPTIONAL - defaults to empty string)\",\n \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n }\n}\n{\n \"key\": \"file\",\n \"value\": {\n \"path\": \"string (REQUIRED)\",\n \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n}\n{\n \"key\": \"deletedEntry\",\n \"value\": {\n \"path\": \"string (REQUIRED)\"\n }\n}\n{\n \"key\": \"lfsFile\",\n \"value\": {\n \"path\": \"string (REQUIRED - max 1000 chars)\",\n \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n}\n```\n\nJSON payload:\n```json\n{\n \"summary\": \"string (REQUIRED)\",\n \"description\": \"string (OPTIONAL - defaults to empty string)\",\n \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n \"files\": [\n {\n \"path\": \"string (REQUIRED)\",\n \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n ],\n \"deletedEntries\": [\n {\n \"path\": \"string (REQUIRED)\"\n }\n ],\n \"lfsFiles\": [\n {\n \"path\": \"string (REQUIRED - max 1000 chars)\",\n \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n ]\n}\n```\n","summary":"Commit","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"Whether the commit was successful","type":"boolean"},"pullRequestUrl":{"description":"The URL of the pull request","type":"string"},"commitOid":{"description":"The OID of the commit","type":"string"},"commitUrl":{"description":"The URL of the commit","type":"string"},"hookOutput":{"description":"The output of the git hook","type":"string"}},"required":["success","commitOid","commitUrl","hookOutput"],"additionalProperties":false}}},"description":"The response of the commit"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"create_pr","in":"query","schema":{"description":"Whether to create a pull request from the commit"},"required":false},{"name":"hot_reload","in":"query","schema":{"description":"For Spaces, whether to try to hot reload the commit (only for single python files updates)"},"required":false},{"name":"Content-Type","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"`application/x-ndjson` if you to commit by json lines","default":"application/x-ndjson","enum":["application/json","application/x-ndjson"]}}]}},"/api/spaces/{namespace}/{repo}/commit/{rev}":{"post":{"description":"For legacy reason, we support both `application/json` and `application/x-ndjson` but we recommend using `application/x-ndjson` to create a commit.\n\nJSON-lines payload:\n```json\n{\n \"key\": \"header\",\n \"value\": {\n \"summary\": \"string (REQUIRED)\",\n \"description\": \"string (OPTIONAL - defaults to empty string)\",\n \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n }\n}\n{\n \"key\": \"file\",\n \"value\": {\n \"path\": \"string (REQUIRED)\",\n \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n}\n{\n \"key\": \"deletedEntry\",\n \"value\": {\n \"path\": \"string (REQUIRED)\"\n }\n}\n{\n \"key\": \"lfsFile\",\n \"value\": {\n \"path\": \"string (REQUIRED - max 1000 chars)\",\n \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n}\n```\n\nJSON payload:\n```json\n{\n \"summary\": \"string (REQUIRED)\",\n \"description\": \"string (OPTIONAL - defaults to empty string)\",\n \"parentCommit\": \"string (OPTIONAL - 40-character hex SHA)\"\n \"files\": [\n {\n \"path\": \"string (REQUIRED)\",\n \"content\": \"string (OPTIONAL - required if oldPath not set)\",\n \"encoding\": \"utf-8 | base64 (OPTIONAL - defaults to utf-8)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n ],\n \"deletedEntries\": [\n {\n \"path\": \"string (REQUIRED)\"\n }\n ],\n \"lfsFiles\": [\n {\n \"path\": \"string (REQUIRED - max 1000 chars)\",\n \"oid\": \"string (OPTIONAL - required if oldPath not set, 64 hex chars)\",\n \"algo\": \"sha256 (OPTIONAL - only sha256 supported)\",\n \"size\": \"number (OPTIONAL - required if oldPath is set)\",\n \"oldPath\": \"string (OPTIONAL - for move/rename operations)\"\n }\n ]\n}\n```\n","summary":"Commit","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"Whether the commit was successful","type":"boolean"},"pullRequestUrl":{"description":"The URL of the pull request","type":"string"},"commitOid":{"description":"The OID of the commit","type":"string"},"commitUrl":{"description":"The URL of the commit","type":"string"},"hookOutput":{"description":"The output of the git hook","type":"string"}},"required":["success","commitOid","commitUrl","hookOutput"],"additionalProperties":false}}},"description":"The response of the commit"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"create_pr","in":"query","schema":{"description":"Whether to create a pull request from the commit"},"required":false},{"name":"hot_reload","in":"query","schema":{"description":"For Spaces, whether to try to hot reload the commit (only for single python files updates)"},"required":false},{"name":"Content-Type","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"`application/x-ndjson` if you to commit by json lines","default":"application/x-ndjson","enum":["application/json","application/x-ndjson"]}}]}},"/api/models/{namespace}/{repo}/tag/{rev}":{"post":{"summary":"Create tag","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tag":{"type":"string"},"message":{"type":"string"}},"required":["tag"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a tag","tags":["models"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/tag/{rev}":{"post":{"summary":"Create tag","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tag":{"type":"string"},"message":{"type":"string"}},"required":["tag"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a tag","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/tag/{rev}":{"post":{"summary":"Create tag","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tag":{"type":"string"},"message":{"type":"string"}},"required":["tag"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a tag","tags":["datasets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/branch/{rev}":{"post":{"summary":"Create branch","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"startingPoint":{"description":"The commit to start from","type":"string"},"emptyBranch":{"description":"Create an empty branch","default":false,"type":"boolean"},"overwrite":{"description":"Overwrite the branch if it already exists","default":false,"type":"boolean"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a branch","tags":["models"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/branch/{rev}":{"post":{"summary":"Create branch","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"startingPoint":{"description":"The commit to start from","type":"string"},"emptyBranch":{"description":"Create an empty branch","default":false,"type":"boolean"},"overwrite":{"description":"Overwrite the branch if it already exists","default":false,"type":"boolean"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a branch","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/branch/{rev}":{"post":{"summary":"Create branch","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"startingPoint":{"description":"The commit to start from","type":"string"},"emptyBranch":{"description":"Create an empty branch","default":false,"type":"boolean"},"overwrite":{"description":"Overwrite the branch if it already exists","default":false,"type":"boolean"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a branch","tags":["datasets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/resource-group":{"post":{"description":"Add the repository to a resource group","summary":"Add resource group","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resourceGroupId":{"description":"The resource group to add the repository to, if null, the repository will be removed from the resource group","anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},{"type":"null"}]}},"required":["resourceGroupId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"private":{"type":"boolean"},"addedBy":{"type":"string"}},"required":["name","type","private","addedBy"],"additionalProperties":false}}},"description":"Minimal information about the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"summary":"Get resource group","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}}},"description":"The resource group of the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/resource-group":{"post":{"description":"Add the repository to a resource group","summary":"Add resource group","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resourceGroupId":{"description":"The resource group to add the repository to, if null, the repository will be removed from the resource group","anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},{"type":"null"}]}},"required":["resourceGroupId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"private":{"type":"boolean"},"addedBy":{"type":"string"}},"required":["name","type","private","addedBy"],"additionalProperties":false}}},"description":"Minimal information about the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"summary":"Get resource group","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}}},"description":"The resource group of the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/resource-group":{"post":{"description":"Add the repository to a resource group","summary":"Add resource group","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resourceGroupId":{"description":"The resource group to add the repository to, if null, the repository will be removed from the resource group","anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},{"type":"null"}]}},"required":["resourceGroupId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"private":{"type":"boolean"},"addedBy":{"type":"string"}},"required":["name","type","private","addedBy"],"additionalProperties":false}}},"description":"Minimal information about the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"summary":"Get resource group","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}}},"description":"The resource group of the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}/resource-group":{"post":{"description":"Add the repository to a resource group","summary":"Add resource group","tags":["buckets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resourceGroupId":{"description":"The resource group to add the repository to, if null, the repository will be removed from the resource group","anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},{"type":"null"}]}},"required":["resourceGroupId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"type":{"enum":["dataset","model","space","bucket","kernel"]},"private":{"type":"boolean"},"addedBy":{"type":"string"}},"required":["name","type","private","addedBy"],"additionalProperties":false}}},"description":"Minimal information about the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"summary":"Get resource group","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}}},"description":"The resource group of the repository"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/super-squash/{rev}":{"post":{"description":"Squash all commits in the current ref into a single commit with the given message. Action is irreversible.","summary":"Squash ref","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"commitId":{"description":"The new commit ID after the squash","type":"string"}},"required":["commitId"],"additionalProperties":false}}},"description":"Response containing the new commit ID after the squash"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/super-squash/{rev}":{"post":{"description":"Squash all commits in the current ref into a single commit with the given message. Action is irreversible.","summary":"Squash ref","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"commitId":{"description":"The new commit ID after the squash","type":"string"}},"required":["commitId"],"additionalProperties":false}}},"description":"Response containing the new commit ID after the squash"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/super-squash/{rev}":{"post":{"description":"Squash all commits in the current ref into a single commit with the given message. Action is irreversible.","summary":"Squash ref","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"commitId":{"description":"The new commit ID after the squash","type":"string"}},"required":["commitId"],"additionalProperties":false}}},"description":"Response containing the new commit ID after the squash"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/settings":{"put":{"description":"Update the settings of a repo","summary":"Update repo settings","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"orgMembersGated":{"description":"If true, members of the owning org (except admins) must also go through the gated access-request flow.","type":"boolean"},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"orgMembersGated":{"description":"If true, members of the owning org (except admins) must also go through the gated access-request flow.","type":"boolean"},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}},"additionalProperties":false}}},"description":"The updated repo settings."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/settings":{"put":{"description":"Update the settings of a repo","summary":"Update repo settings","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"orgMembersGated":{"description":"If true, members of the owning org (except admins) must also go through the gated access-request flow.","type":"boolean"},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"orgMembersGated":{"description":"If true, members of the owning org (except admins) must also go through the gated access-request flow.","type":"boolean"},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}},"additionalProperties":false}}},"description":"The updated repo settings."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/settings":{"put":{"description":"Update the settings of a repo","summary":"Update repo settings","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"orgMembersGated":{"description":"If true, members of the owning org (except admins) must also go through the gated access-request flow.","type":"boolean"},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"type":"boolean"},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces.","enum":["private","public","protected"]},"discussionsDisabled":{"type":"boolean"},"discussionsSorting":{"enum":["recently-created","trending","reactions"]},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"orgMembersGated":{"description":"If true, members of the owning org (except admins) must also go through the gated access-request flow.","type":"boolean"},"gatedNotificationsEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"gatedNotificationsMode":{"enum":["bulk","real-time"]}},"additionalProperties":false}}},"description":"The updated repo settings."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/tree/{rev}/{path}":{"get":{"description":"List the content of a repository tree, with pagination support.","summary":"List folder content","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"description":"If the file is a LFS pointer, it'll return the size of the remote file","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lfs":{"type":"object","properties":{"oid":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pointerSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["oid","size","pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid"],"additionalProperties":false}}}},"description":"List of entries in the repository tree","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, if applicable"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"expand","in":"query","schema":{"description":"If true, returns returns associated commit data for each entry and security scanner metadata.","default":false},"required":false},{"name":"recursive","in":"query","schema":{"description":"If true, returns the tree recursively.","default":false},"required":false},{"name":"limit","in":"query","schema":{"description":"1.000 by default, 100 by default for expand=true","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}]}},"/api/spaces/{namespace}/{repo}/tree/{rev}/{path}":{"get":{"description":"List the content of a repository tree, with pagination support.","summary":"List folder content","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"description":"If the file is a LFS pointer, it'll return the size of the remote file","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lfs":{"type":"object","properties":{"oid":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pointerSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["oid","size","pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid"],"additionalProperties":false}}}},"description":"List of entries in the repository tree","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, if applicable"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"expand","in":"query","schema":{"description":"If true, returns returns associated commit data for each entry and security scanner metadata.","default":false},"required":false},{"name":"recursive","in":"query","schema":{"description":"If true, returns the tree recursively.","default":false},"required":false},{"name":"limit","in":"query","schema":{"description":"1.000 by default, 100 by default for expand=true","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}]}},"/api/datasets/{namespace}/{repo}/tree/{rev}/{path}":{"get":{"description":"List the content of a repository tree, with pagination support.","summary":"List folder content","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory","unknown"]},"oid":{"type":"string"},"size":{"description":"If the file is a LFS pointer, it'll return the size of the remote file","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lfs":{"type":"object","properties":{"oid":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pointerSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["oid","size","pointerSize"],"additionalProperties":false},"xetHash":{"type":"string"},"lastCommit":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"date":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","title","date"],"additionalProperties":false},"securityFileStatus":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"jFrogScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"protectAiScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"avScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"pickleImportScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false},"virusTotalScan":{"type":"object","properties":{"status":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]},"message":{"type":"string"},"reportLink":{"type":"string"},"reportLabel":{"type":"string"},"pickleImports":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"name":{"type":"string"},"safety":{"enum":["innocuous","suspicious","dangerous"]}},"required":["module","name","safety"],"additionalProperties":false}},"version":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["status","avScan","pickleImportScan"],"additionalProperties":false}},"required":["type","oid"],"additionalProperties":false}}}},"description":"List of entries in the repository tree","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, if applicable"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"expand","in":"query","schema":{"description":"If true, returns returns associated commit data for each entry and security scanner metadata.","default":false},"required":false},{"name":"recursive","in":"query","schema":{"description":"If true, returns the tree recursively.","default":false},"required":false},{"name":"limit","in":"query","schema":{"description":"1.000 by default, 100 by default for expand=true","type":"integer","minimum":1,"maximum":9007199254740991},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}]}},"/api/models/{namespace}/{repo}/notebook/{rev}/{path}":{"get":{"description":"Get a jupyter notebook URL for the requested file","summary":"Get notebook URL","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false},{"type":"object","properties":{"notInCache":{"const":true}},"required":["notInCache"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}]}}},"description":"Response containing the url of the notebook"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/datasets/{namespace}/{repo}/notebook/{rev}/{path}":{"get":{"description":"Get a jupyter notebook URL for the requested file","summary":"Get notebook URL","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false},{"type":"object","properties":{"notInCache":{"const":true}},"required":["notInCache"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}]}}},"description":"Response containing the url of the notebook"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/spaces/{namespace}/{repo}/notebook/{rev}/{path}":{"get":{"description":"Get a jupyter notebook URL for the requested file","summary":"Get notebook URL","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false},{"type":"object","properties":{"notInCache":{"const":true}},"required":["notInCache"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}]}}},"description":"Response containing the url of the notebook"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}}]}},"/api/models/{namespace}/{repo}/scan":{"get":{"description":"Get the security status of a repo","summary":"Get security status","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scansDone":{"type":"boolean"},"filesWithIssues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"level":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]}},"required":["path","level"],"additionalProperties":false}}},"required":["scansDone","filesWithIssues"],"additionalProperties":false}}},"description":"The security status of the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/scan":{"get":{"description":"Get the security status of a repo","summary":"Get security status","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scansDone":{"type":"boolean"},"filesWithIssues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"level":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]}},"required":["path","level"],"additionalProperties":false}}},"required":["scansDone","filesWithIssues"],"additionalProperties":false}}},"description":"The security status of the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/scan":{"get":{"description":"Get the security status of a repo","summary":"Get security status","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scansDone":{"type":"boolean"},"filesWithIssues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"level":{"enum":["unscanned","safe","queued","error","caution","suspicious","unsafe"]}},"required":["path","level"],"additionalProperties":false}}},"required":["scansDone","filesWithIssues"],"additionalProperties":false}}},"description":"The security status of the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions":{"get":{"description":"Get discussions for a repo","summary":"List discussions","tags":["discussions"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"discussions":{"type":"array","items":{"type":"object","properties":{"num":{"type":"number"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"repo":{"$ref":"#/components/schemas/RepoId"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"topReactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"count":{"type":"number"}},"required":["reaction","count"],"additionalProperties":false}},"status":{"enum":["draft","open","closed","merged"]},"isPullRequest":{"type":"boolean"},"numComments":{"type":"number"},"numReactionUsers":{"type":"number"},"pinned":{"type":"boolean"},"repoOwner":{"type":"object","properties":{"name":{"type":"string"},"type":{"enum":["org","user"]},"isParticipating":{"type":"boolean"},"isDiscussionAuthor":{"type":"boolean"}},"required":["name","type","isParticipating","isDiscussionAuthor"],"additionalProperties":false}},"required":["num","repo","title","createdAt","topReactions","status","isPullRequest","numComments","numReactionUsers","pinned"],"additionalProperties":false}},"count":{"type":"number"},"start":{"type":"number"},"numClosedDiscussions":{"description":"Number of closed discussions on the first page","type":"number"}},"required":["discussions","count","start"],"additionalProperties":false}}},"description":"List of discussions"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":false},{"name":"type","in":"query","schema":{"default":"all","enum":["all","discussion","pull_request"]},"required":false},{"name":"status","in":"query","schema":{"default":"all","enum":["all","open","closed"]},"required":false},{"name":"author","in":"query","schema":{"type":"string","minLength":2,"maxLength":42,"pattern":"^\\b(?!\\d+$)(?![0-9a-fA-F]{24}$)([a-zA-Z0-9]|-(?!-))+\\b$"},"required":false},{"name":"search","in":"query","schema":{"type":"string"},"required":false},{"name":"sort","in":"query","schema":{"default":"recently-created","enum":["recently-created","trending","reactions"]},"required":false}]},"post":{"summary":"Create a new discussion","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":200},"description":{"type":"string","maxLength":65536},"pullRequest":{"type":"boolean"}},"required":["title","description"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"},"num":{"type":"number"},"pullRequest":{"type":"boolean"},"references":{"type":"object","properties":{"base":{"type":"string"},"mergeCommitId":{"type":"string"}},"required":["base"],"additionalProperties":false}},"required":["url","num","pullRequest"],"additionalProperties":false}}},"description":"Discussion creation response"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}":{"get":{"summary":"Get discussion details","tags":["discussions"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"num":{"type":"number"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"org":{"type":"object","properties":{"avatarUrl":{"type":"string"},"email":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"requiresSSO":{"type":"boolean"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false},"repo":{"$ref":"#/components/schemas/RepoId"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"status":{"enum":["draft","open","closed","merged"]},"events":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"status-change"},"data":{"type":"object","properties":{"status":{"enum":["draft","open","closed","merged"]},"reason":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"commit"},"data":{"type":"object","properties":{"subject":{"type":"string"},"oid":{"type":"string"}},"required":["subject","oid"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"title-change"},"data":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"pinning-change"},"data":{"type":"object","properties":{"pinned":{"type":"boolean"}},"required":["pinned"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"locking-change"},"data":{"type":"object","properties":{"locked":{"type":"boolean"}},"required":["locked"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"report-status-change"},"data":{"type":"object","properties":{"report":{"type":"boolean"}},"required":["report"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"ref-deleted"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}]}},"pinned":{"type":"boolean"},"locked":{"type":"boolean"},"collection":{"enum":["discussions","paper_discussions","social_posts","community_blogs"]},"isPullRequest":{"const":false},"isReport":{"type":"boolean"}},"required":["_id","title","status","events","pinned","locked","collection","isPullRequest","isReport"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"num":{"type":"number"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"org":{"type":"object","properties":{"avatarUrl":{"type":"string"},"email":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"requiresSSO":{"type":"boolean"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false},"repo":{"$ref":"#/components/schemas/RepoId"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"status":{"enum":["draft","open","closed","merged"]},"events":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"status-change"},"data":{"type":"object","properties":{"status":{"enum":["draft","open","closed","merged"]},"reason":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"commit"},"data":{"type":"object","properties":{"subject":{"type":"string"},"oid":{"type":"string"}},"required":["subject","oid"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"title-change"},"data":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"pinning-change"},"data":{"type":"object","properties":{"pinned":{"type":"boolean"}},"required":["pinned"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"locking-change"},"data":{"type":"object","properties":{"locked":{"type":"boolean"}},"required":["locked"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"report-status-change"},"data":{"type":"object","properties":{"report":{"type":"boolean"}},"required":["report"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"ref-deleted"},"data":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}]}},"pinned":{"type":"boolean"},"locked":{"type":"boolean"},"collection":{"const":"discussions"},"isPullRequest":{"const":true},"filesWithConflicts":{"description":"The list of files with conflicts. `true` means there are conflicts but we cannot list them.","anyOf":[{"type":"array","items":{"type":"string"}},{"const":true}]},"changes":{"type":"object","properties":{"base":{"type":"string"},"mergeCommitId":{"type":"string"},"headCommitId":{"description":"The last commit ID of the PR branch, stored before ref deletion so diffs can still be computed.","type":"string"},"refDeleted":{"description":"Whether the PR ref has been deleted (to free up storage).","type":"boolean"}},"required":["base"],"additionalProperties":false}},"required":["_id","title","status","events","pinned","locked","collection","isPullRequest","filesWithConflicts","changes"],"additionalProperties":false}]},{"type":"object","properties":{"diffUrl":{"type":"string"}},"additionalProperties":false}]}}},"description":"Discussion details"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a discussion","tags":["discussions"],"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/status":{"post":{"description":"Change the status of a discussion","summary":"Change status","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"enum":["open","closed"]},"comment":{"type":"string"}},"required":["status"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newStatus":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"status-change"},"data":{"type":"object","properties":{"status":{"enum":["draft","open","closed","merged"]},"reason":{"type":"string"}},"required":["status"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newStatus"],"additionalProperties":false}}},"description":"New status event"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/title":{"post":{"description":"Change the title of a discussion","summary":"Change title","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":200}},"required":["title"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newTitle":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"title-change"},"data":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newTitle"],"additionalProperties":false}}},"description":"New title event"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/pin":{"post":{"summary":"Pin a discussion","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pinned":{"type":"boolean"}},"required":["pinned"]}}}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/merge":{"post":{"summary":"Merge a pull request","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string"}}}}}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/ref":{"delete":{"description":"Deletes the git ref for a closed/merged pull request to free up storage. LFS files unique to this PR will be garbage collected. The PR page and diff will still be viewable using stored commit data.","summary":"Delete PR ref","tags":["discussions"],"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/discussions/{num}/storage":{"get":{"description":"Estimates the LFS storage used by a PR that could be freed if the ref is deleted.","summary":"PR storage estimate","tags":["discussions"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"estimatedStorage":{"description":"Estimated storage in bytes that may be freed","type":"number"},"refDeleted":{"description":"Whether the ref has already been deleted","type":"boolean"}},"required":["estimatedStorage","refDeleted"],"additionalProperties":false}}},"description":"PR storage estimate response"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["models","spaces","datasets","kernels"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/kernels":{"get":{"description":"List kernels with optional filtering, sorting, and pagination","summary":"List kernels","tags":["kernels"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"description":"Kernel ID in format namespace/name","type":"string"},"author":{"description":"Namespace (user or organization) of the kernel","type":"string"},"private":{"description":"Whether the kernel is private","type":"boolean"},"cardData":{"description":"Kernel card metadata","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"disabled":{"description":"Whether the kernel is disabled","type":"boolean"},"downloads":{"description":"Number of downloads in the last 30 days","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"downloadsAllTime":{"description":"Total number of downloads","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"gated":{"description":"Gated access status","anyOf":[{"type":"boolean"},{"const":"auto"},{"const":"manual"}]},"lastModified":{"description":"Last modification timestamp","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"createdAt":{"description":"Creation timestamp","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"description":"Number of likes","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sha":{"description":"Current commit SHA","type":"string"},"files":{"description":"List of files in the kernel","type":"array","items":{"type":"string"}},"tags":{"description":"Kernel tags","type":"array","items":{"type":"string"}},"trendingScore":{"description":"Trending score","type":"number"},"buildMetadata":{"description":"Build metadata","type":"object","properties":{"compatibility":{"type":"object","properties":{"torch":{"type":"array","items":{"enum":["2.8","2.9","2.10"]}},"os":{"type":"array","items":{"enum":["macos","linux","windows"]}},"arch":{"type":"array","items":{"enum":["x86_64","arm64","aarch64"]}}},"required":["torch","os","arch"],"additionalProperties":false},"backends":{"type":"array","items":{"type":"object","properties":{"type":{"enum":["cuda","rocm","metal","xpu","cpu"]},"hardwareTypes":{"type":"array","items":{"enum":["5.0","5.2","6.0","6.1","6.2","7.0","7.2","7.5","8.0","8.6","8.7","8.9","9.0","10.0","10.3","11.0","12.0","12.1","13.0","5.0+PTX","5.2+PTX","6.0+PTX","6.1+PTX","6.2+PTX","7.0+PTX","7.2+PTX","7.5+PTX","8.0+PTX","8.6+PTX","8.7+PTX","8.9+PTX","9.0+PTX","10.0+PTX","10.3+PTX","11.0+PTX","12.0+PTX","12.1+PTX","13.0+PTX","9.0a","10.0a","10.3a","11.0a","12.0a","12.1a","13.0a","10.0f","12.0f","13.0f","gfx900","gfx906","gfx908","gfx90a","gfx942","gfx950","gfx1030","gfx1100","gfx1101","gfx1102","gfx1150","gfx1151","gfx1200","gfx1201"]}},"noArchs":{"const":true}},"required":["type","hardwareTypes"],"additionalProperties":false}},"builder":{"type":"object","properties":{"version":{"type":"string"},"sha":{"type":"string"},"dirty":{"type":"boolean"}},"required":["version"],"additionalProperties":false}},"required":["backends"],"additionalProperties":false},"supportedDriverFamilies":{"description":"Driver families supported by the kernel (derived from build metadata)","type":"array","items":{"enum":["cuda","rocm","metal","xpu","cpu"]}},"resourceGroup":{"description":"Resource group information","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}},"required":["id"],"additionalProperties":false}}}},"description":"List of kernels"}},"parameters":[{"name":"search","in":"query","schema":{"description":"Filter by search term","type":"string"},"required":false},{"name":"author","in":"query","schema":{"description":"Filter by author","anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"id","in":"query","schema":{"description":"Filter by ID","anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"arxivIds","in":"query","schema":{"description":"Filter by Arxiv ID","anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"filter","in":"query","schema":{"description":"Filter by tags","anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"sort","in":"query","schema":{"description":"Sort field (e.g. downloads, likes, lastModified, trendingScore)","default":"trendingScore","enum":["downloads","likes","lastModified","trendingScore","likes30d","_id","id"]},"required":false},{"name":"direction","in":"query","schema":{"description":"Sort direction: 1 for ascending, -1 for descending","default":"-1","enum":["1","-1"]},"required":false},{"name":"limit","in":"query","schema":{"description":"Maximum number of results to return","default":1000,"type":"integer","minimum":1,"maximum":1000},"required":false},{"name":"cursor","in":"query","schema":{"description":"Pagination cursor from Link header","type":"string"},"required":false},{"name":"full","in":"query","schema":{"description":"Return full kernel info including author, sha, lastModified, files, gated","type":"boolean"},"required":false},{"name":"gated","in":"query","schema":{"description":"Filter by gated","type":"boolean"},"required":false},{"name":"expand","in":"query","schema":{"description":"Display specific fields in the response","anyOf":[{"enum":["author","cardData","disabled","downloads","downloadsAllTime","gated","lastModified","createdAt","likes","private","sha","files","tags","trendingScore","buildMetadata","supportedDriverFamilies","resourceGroup","arxivIds"]},{"type":"array","items":{"enum":["author","cardData","disabled","downloads","downloadsAllTime","gated","lastModified","createdAt","likes","private","sha","files","tags","trendingScore","buildMetadata","supportedDriverFamilies","resourceGroup","arxivIds"]}}]},"required":false}]}},"/api/kernels/{namespace}/{repo}":{"get":{"summary":"Get kernel","tags":["kernels"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"private":{"type":"boolean"},"repoType":{"const":"kernel"},"sha":{"type":"string"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"files":{"type":"array","items":{"type":"string"}},"supportedDriverFamilies":{"type":"array","items":{"enum":["cuda","rocm","metal","xpu","cpu"]}},"trustedPublisher":{"type":"boolean"}},"required":["author","downloads","id","isLikedByUser","lastModified","likes","private","repoType","sha","gated"],"additionalProperties":false}}},"description":"Kernel overview information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/kernels/{namespace}/{repo}/revision/{rev}":{"get":{"summary":"Get kernel","tags":["kernels"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"private":{"type":"boolean"},"repoType":{"const":"kernel"},"sha":{"type":"string"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"files":{"type":"array","items":{"type":"string"}},"supportedDriverFamilies":{"type":"array","items":{"enum":["cuda","rocm","metal","xpu","cpu"]}},"trustedPublisher":{"type":"boolean"}},"required":["author","downloads","id","isLikedByUser","lastModified","likes","private","repoType","sha","gated"],"additionalProperties":false}}},"description":"Kernel overview information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/leaderboard":{"get":{"description":"Returns the evaluation results ranked by score for a dataset/task","summary":"Get dataset leaderboard","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"rank":{"type":"number"},"modelId":{"type":"string"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"value":{"type":"number"},"verified":{"type":"boolean"},"source":{"type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"isExternal":{"type":"boolean"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["url","isExternal"],"additionalProperties":false},"pullRequest":{"type":"number"},"filename":{"type":"string"},"notes":{"type":"string"},"lower_is_better":{"type":"boolean"},"num_parameters":{"type":"number"}},"required":["rank","modelId","author","value","filename"],"additionalProperties":false}}}},"description":"Evaluation results"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_id","in":"query","schema":{"type":"string"},"required":false},{"name":"max_params","in":"query","schema":{"type":"string"},"required":false},{"name":"base_model","in":"query","schema":{"default":true},"required":false}]}},"/api/models/{namespace}/{repo}/jwt":{"get":{"description":"Generate a JWT token for accessing a repository. Supports optional write access for spaces in dev mode, custom expiration, and encryption.","summary":"Generate JWT","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accessToken":{"description":"The JWT token with Bearer prefix","type":"string"},"exp":{"description":"Token expiration timestamp in seconds (JWT standard)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"description":"The JWT token","type":"string"},"encryptedToken":{"description":"Encrypted JWT token and key ID (only if encrypted=true was requested)","type":"object","properties":{"encrypted":{"description":"The encrypted JWT token","type":"string"},"keyId":{"description":"Key ID used to encrypt the token","type":"string"}},"required":["encrypted","keyId"],"additionalProperties":false}},"required":["accessToken","token"],"additionalProperties":false}}},"description":"The JWT token and related information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"write","in":"query","schema":{},"required":false},{"name":"expiration","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"encrypted","in":"query","schema":{},"required":false},{"name":"inference_api","in":"query","schema":{},"required":false},{"name":"include_pro_status","in":"query","schema":{},"required":false},{"name":"billing_details","in":"query","schema":{},"required":false}]}},"/api/spaces/{namespace}/{repo}/jwt":{"get":{"description":"Generate a JWT token for accessing a repository. Supports optional write access for spaces in dev mode, custom expiration, and encryption.","summary":"Generate JWT","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accessToken":{"description":"The JWT token with Bearer prefix","type":"string"},"exp":{"description":"Token expiration timestamp in seconds (JWT standard)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"description":"The JWT token","type":"string"},"encryptedToken":{"description":"Encrypted JWT token and key ID (only if encrypted=true was requested)","type":"object","properties":{"encrypted":{"description":"The encrypted JWT token","type":"string"},"keyId":{"description":"Key ID used to encrypt the token","type":"string"}},"required":["encrypted","keyId"],"additionalProperties":false}},"required":["accessToken","token"],"additionalProperties":false}}},"description":"The JWT token and related information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"write","in":"query","schema":{},"required":false},{"name":"expiration","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"encrypted","in":"query","schema":{},"required":false},{"name":"inference_api","in":"query","schema":{},"required":false},{"name":"include_pro_status","in":"query","schema":{},"required":false},{"name":"billing_details","in":"query","schema":{},"required":false}]}},"/api/datasets/{namespace}/{repo}/jwt":{"get":{"description":"Generate a JWT token for accessing a repository. Supports optional write access for spaces in dev mode, custom expiration, and encryption.","summary":"Generate JWT","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accessToken":{"description":"The JWT token with Bearer prefix","type":"string"},"exp":{"description":"Token expiration timestamp in seconds (JWT standard)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"description":"The JWT token","type":"string"},"encryptedToken":{"description":"Encrypted JWT token and key ID (only if encrypted=true was requested)","type":"object","properties":{"encrypted":{"description":"The encrypted JWT token","type":"string"},"keyId":{"description":"Key ID used to encrypt the token","type":"string"}},"required":["encrypted","keyId"],"additionalProperties":false}},"required":["accessToken","token"],"additionalProperties":false}}},"description":"The JWT token and related information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"write","in":"query","schema":{},"required":false},{"name":"expiration","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"encrypted","in":"query","schema":{},"required":false},{"name":"inference_api","in":"query","schema":{},"required":false},{"name":"include_pro_status","in":"query","schema":{},"required":false},{"name":"billing_details","in":"query","schema":{},"required":false}]}},"/api/agent-harnesses":{"get":{"description":"Get the registry of AI agents / harnesses known to the Hub, along with the standard environment variables used to detect them. Clients use this registry to identify which agent they are running in when reporting Hub activity.","summary":"Get agent harnesses","tags":["agents"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"standardEnvVars":{"description":"Standard environment variables that any agent can set to identify itself. Their value is matched against the harness ids.","type":"array","items":{"type":"string"}},"harnesses":{"description":"Registered harnesses, keyed by id and ordered by detection priority: the first match wins","type":"object","propertyNames":{"description":"Unique identifier of the harness, used when reporting Hub activity","type":"string"},"additionalProperties":{"type":"object","properties":{"prettyLabel":{"description":"Human-readable name of the harness","type":"string"},"repoUrl":{"description":"URL to the harness's code repository","type":"string"},"docsUrl":{"description":"URL to the harness's documentation or website","type":"string"},"description":{"description":"Short description of the harness","type":"string"},"envVars":{"description":"Environment variable(s) identifying this harness, mapped to the value pattern they must match: \"*\" (set to any non-empty value), an exact value, or a \"*\" fuzzy match. Detection matches if ANY entry matches.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["prettyLabel"],"additionalProperties":false}}},"required":["standardEnvVars","harnesses"],"additionalProperties":false}}},"description":"The registry of AI agents / harnesses known to the Hub"}}}},"/api/models-tags-by-type":{"get":{"description":"Get all possible tags used for models, grouped by tag type. Optionally restrict to only one tag type","summary":"Get model tags","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"anyOf":[{"enum":["pipeline_tag","library","dataset","bucket","language","license","arxiv","doi","region","deploy","other"]},{"not":{}}]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"type":{"enum":["pipeline_tag","library","dataset","bucket","language","license","arxiv","doi","region","deploy","other"]},"subType":{"type":"string"},"clickable":{"default":true,"type":"boolean"}},"required":["id","label","type"],"additionalProperties":false}}}}},"description":"The tags, grouped by tag type"}},"parameters":[{"name":"type","in":"query","schema":{"enum":["pipeline_tag","library","dataset","bucket","language","license","arxiv","doi","region","deploy","other"]},"required":false}]}},"/api/datasets-tags-by-type":{"get":{"description":"Get all possible tags used for datasets, grouped by tag type. Optionally restrict to only one tag type","summary":"Get dataset tags","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"anyOf":[{"enum":["benchmark","task_categories","size_categories","modality","format","library","language","license","arxiv","doi","region","other","task_ids","annotations_creators","language_creators","multilinguality","source_datasets"]},{"not":{}}]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"type":{"enum":["benchmark","task_categories","size_categories","modality","format","library","language","license","arxiv","doi","region","other","task_ids","annotations_creators","language_creators","multilinguality","source_datasets"]},"subType":{"type":"string"},"clickable":{"default":true,"type":"boolean"}},"required":["id","label","type"],"additionalProperties":false}}}}},"description":"The tags, grouped by tag type"}},"parameters":[{"name":"type","in":"query","schema":{"enum":["benchmark","task_categories","size_categories","modality","format","library","language","license","arxiv","doi","region","other","task_ids","annotations_creators","language_creators","multilinguality","source_datasets"]},"required":false}]}},"/api/trending":{"get":{"description":"Get the trending repositories","summary":"Get trending","tags":["models","spaces","datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"recentlyTrending":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"repoType":{"const":"dataset"},"repoData":{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified"],"additionalProperties":false}},"required":["repoType","repoData"],"additionalProperties":false},{"type":"object","properties":{"repoType":{"const":"model"},"repoData":{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated"],"additionalProperties":false}},"required":["repoType","repoData"],"additionalProperties":false},{"type":"object","properties":{"repoType":{"const":"space"},"repoData":{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility"],"additionalProperties":false}},"required":["repoType","repoData"],"additionalProperties":false}]}}},"required":["recentlyTrending"],"additionalProperties":false}}},"description":"Trending repos"}},"parameters":[{"name":"type","in":"query","schema":{"default":"all","enum":["all","dataset","model","space"]},"required":false},{"name":"limit","in":"query","schema":{"default":10,"type":"integer","minimum":1,"maximum":20},"required":false}]}},"/api/quicksearch":{"get":{"description":"Quick search for models, datasets, spaces, orgs, users, papers, collections, and buckets","summary":"Quick search","tags":["repo-search"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"datasets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"},"trendingWeight":{"type":"number"}},"required":["id","trendingWeight"],"additionalProperties":false}},"datasetsCount":{"type":"number"},"models":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"},"trendingWeight":{"type":"number"}},"required":["id","trendingWeight"],"additionalProperties":false}},"modelsCount":{"type":"number"},"orgs":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"}},"required":["_id","avatarUrl","fullname","name"],"additionalProperties":false}},"q":{"type":"string"},"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"},"emoji":{"type":"string"},"trendingWeight":{"type":"number"}},"required":["id","emoji","trendingWeight"],"additionalProperties":false}},"spacesCount":{"type":"number"},"users":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatarUrl","fullname","user"],"additionalProperties":false}},"papers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"papersCount":{"type":"number"},"collections":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}},"required":["_id","title"],"additionalProperties":false}},"collectionsCount":{"type":"number"},"buckets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"bucketsCount":{"type":"number"},"kernels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"kernelsCount":{"type":"number"}},"required":["datasets","datasetsCount","models","modelsCount","orgs","q","spaces","spacesCount","users","papers","papersCount","collections","collectionsCount","buckets","bucketsCount","kernels","kernelsCount"],"additionalProperties":false}}},"description":"The quick search results"}},"parameters":[{"name":"q","in":"query","schema":{"default":"","type":"string"},"required":false},{"name":"limit","in":"query","schema":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"integer","minimum":1,"maximum":20}]},"required":false},{"name":"lang","in":"query","schema":{"anyOf":[{"enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},{"type":"string"}]},"required":false},{"name":"library","in":"query","schema":{"anyOf":[{"enum":["acestep","adapter-transformers","allennlp","anemoi","araclip","aviation-ner","asteroid","audiocraft","audioseal","bagel-mot","bboxmaskpose","ben2","bertopic","big_vision","bionemo","birder","birefnet","bm25s","boltzgen","cancertathomev2","cartesia_pytorch","cartesia_mlx","ccpfn","champ","chatterbox","chaossim","chat_tts","chexmix","chronos-forecasting","clara","clipscope","cloud-agents","collectorvision","colipri","cosyvoice","cotracker","colpali","comet","cosmos","cxr-foundation","deepforest","depth-anything-v2","depth-pro","derm-foundation","describe-anything","dia-tts","dia2","diff-interpretation-tuning","diffree","diffusers","diffusionkit","docking-at-home","doctr","edsnlp","elm","encoderfile","espnet","eupe","fairseq","fastai","fastprint","fasttext","fixer","flair","flextab","fme","gemma.cpp","geometry-crafter","gliner","gliner2","glm-tts","glyph-byt5","granite-library","grok","habibi-tts","hallo","hermes","holomotion","hezar","htrflow","hunyuan-dit","hunyuan3d-2","hunyuanworld-voyager","hy-worldplay","hy-world-2","image-matching-models","imstoucan","index-tts","infinitetalk","infinite-you","intellifold","ising-decoding","keras","tf-keras","keras-hub","kernels","kimi-audio","kittentts","kronos","k2","lyra-2.0","lagernvs","lightning-ir","litert","litert-lm","lerobot","lightglue","liveportrait","longcat-video-avatar-1.5","llama-cpp-python","mini-omni2","mindspore","magi-1","magenta-realtime","magenta-realtime-2","mamba-ssm","manas-1","mars5-tts","matanyone","mesh-anything","merlin","medvae","mitie","ml-agents","ml-sharp","mlx","mlx-image","mlc-llm","model2vec","mobilint","moshi","mtvcraft","multimolecule","nemo","ninfer","nv-medtech","open-oasis","open_clip","openasr","openpeerllm","open-sora","outetts","paddlenlp","PaddleOCR","peft","perception-encoder","phantom-wan","pocket-tts","pruna-ai","pxia","pyannote-audio","py-feat","pythae","quantumpeer","qwen3_tts","recurrentgemma","relik","refiners","renderformer","reverb","rkllm","robo-orchard-lab","rwkv","saelens","scail-2","sam2","sam-3d-body","sam-3d-objects","same","sample-factory","sap-rpt-1-oss","sapiens","sapiens2","seedvr","self-forcing","sentence-transformers","setfit","sklearn","spacy","span-marker","speechbrain","ssr-speech","stable-audio-3","stable-audio-tools","monkeyocr","diffusion-single-file","seed-story","skala","soloaudio","songbloom","stable-baselines3","stanza","supertonic","swarmformer","synthefy-migas","f5-tts","genmo","tencent-song-generation","tensorflowtts","tensorrt","tabpfn","terratorch","tic-clip","timesfm","timee-ts","timm","tirex","tirex-2","torchgeo","transformers","transformers.js","trellis","trellis2","tunejury","ultralytics","univa","uni-3dar","unity-sentis","sana","videoprism","vfi-mamba","vismatch","lvface","voicecraft","voxcpm","vui","vibevoice","videox_fun","wan2.2","wham","whisperkit","yolov10","yolov26","zonos","3dtopia-xl"]},{"type":"string"}]},"required":false},{"name":"type","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["model","dataset","space","org","user","paper","collection","bucket","kernel"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"orgsFilter","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["own","unwatched"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"reposFilter","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["skip_disabled","skip_gated","own","own_orgs","granted_access"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"pipelines","in":"query","schema":{"description":"Comma-separated or array of pipeline types","anyOf":[{"type":"array","items":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other"]}},{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}]},"required":false},{"name":"exclude","in":"query","schema":{"description":"Array of excluded resources: spaces/repo, models/repo, datasets/repo, papers/paperId, collections/collectionId, users/username, orgs/orgName, buckets/bucketName, kernels/repo","default":[],"type":"array","items":{"type":"string","pattern":"^(spaces|models|datasets|papers|collections|users|orgs|buckets|kernels)\\/.*"}},"required":false},{"name":"namespace","in":"query","schema":{"description":"Namespace to filter by","type":"string"},"required":false},{"name":"includeInvitees","in":"query","schema":{"default":false,"anyOf":[{"type":"boolean"},{}]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"repoType","in":"query","schema":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"type":"string"}]},"required":false},{"name":"discussionId","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"discussionCollectionName","in":"query","schema":{"type":"string"},"required":false},{"name":"spacesTags","in":"query","schema":{"type":"array","items":{"type":"string"}},"required":false}]},"post":{"description":"Quick search for models, datasets, spaces, orgs, users, papers, collections, and buckets","summary":"Quick search","tags":["repo-search"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"q":{"default":"","type":"string"},"limit":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"integer","minimum":1,"maximum":20}]},"lang":{"anyOf":[{"enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},{"type":"string"}]},"library":{"anyOf":[{"enum":["acestep","adapter-transformers","allennlp","anemoi","araclip","aviation-ner","asteroid","audiocraft","audioseal","bagel-mot","bboxmaskpose","ben2","bertopic","big_vision","bionemo","birder","birefnet","bm25s","boltzgen","cancertathomev2","cartesia_pytorch","cartesia_mlx","ccpfn","champ","chatterbox","chaossim","chat_tts","chexmix","chronos-forecasting","clara","clipscope","cloud-agents","collectorvision","colipri","cosyvoice","cotracker","colpali","comet","cosmos","cxr-foundation","deepforest","depth-anything-v2","depth-pro","derm-foundation","describe-anything","dia-tts","dia2","diff-interpretation-tuning","diffree","diffusers","diffusionkit","docking-at-home","doctr","edsnlp","elm","encoderfile","espnet","eupe","fairseq","fastai","fastprint","fasttext","fixer","flair","flextab","fme","gemma.cpp","geometry-crafter","gliner","gliner2","glm-tts","glyph-byt5","granite-library","grok","habibi-tts","hallo","hermes","holomotion","hezar","htrflow","hunyuan-dit","hunyuan3d-2","hunyuanworld-voyager","hy-worldplay","hy-world-2","image-matching-models","imstoucan","index-tts","infinitetalk","infinite-you","intellifold","ising-decoding","keras","tf-keras","keras-hub","kernels","kimi-audio","kittentts","kronos","k2","lyra-2.0","lagernvs","lightning-ir","litert","litert-lm","lerobot","lightglue","liveportrait","longcat-video-avatar-1.5","llama-cpp-python","mini-omni2","mindspore","magi-1","magenta-realtime","magenta-realtime-2","mamba-ssm","manas-1","mars5-tts","matanyone","mesh-anything","merlin","medvae","mitie","ml-agents","ml-sharp","mlx","mlx-image","mlc-llm","model2vec","mobilint","moshi","mtvcraft","multimolecule","nemo","ninfer","nv-medtech","open-oasis","open_clip","openasr","openpeerllm","open-sora","outetts","paddlenlp","PaddleOCR","peft","perception-encoder","phantom-wan","pocket-tts","pruna-ai","pxia","pyannote-audio","py-feat","pythae","quantumpeer","qwen3_tts","recurrentgemma","relik","refiners","renderformer","reverb","rkllm","robo-orchard-lab","rwkv","saelens","scail-2","sam2","sam-3d-body","sam-3d-objects","same","sample-factory","sap-rpt-1-oss","sapiens","sapiens2","seedvr","self-forcing","sentence-transformers","setfit","sklearn","spacy","span-marker","speechbrain","ssr-speech","stable-audio-3","stable-audio-tools","monkeyocr","diffusion-single-file","seed-story","skala","soloaudio","songbloom","stable-baselines3","stanza","supertonic","swarmformer","synthefy-migas","f5-tts","genmo","tencent-song-generation","tensorflowtts","tensorrt","tabpfn","terratorch","tic-clip","timesfm","timee-ts","timm","tirex","tirex-2","torchgeo","transformers","transformers.js","trellis","trellis2","tunejury","ultralytics","univa","uni-3dar","unity-sentis","sana","videoprism","vfi-mamba","vismatch","lvface","voicecraft","voxcpm","vui","vibevoice","videox_fun","wan2.2","wham","whisperkit","yolov10","yolov26","zonos","3dtopia-xl"]},{"type":"string"}]},"type":{"anyOf":[{"type":"array","items":{"enum":["model","dataset","space","org","user","paper","collection","bucket","kernel"]}},{"type":"array","items":{"type":"string"}}]},"orgsFilter":{"anyOf":[{"type":"array","items":{"enum":["own","unwatched"]}},{"type":"array","items":{"type":"string"}}]},"reposFilter":{"anyOf":[{"type":"array","items":{"enum":["skip_disabled","skip_gated","own","own_orgs","granted_access"]}},{"type":"array","items":{"type":"string"}}]},"pipelines":{"description":"Comma-separated or array of pipeline types","anyOf":[{"type":"array","items":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other"]}},{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}]},"exclude":{"description":"Array of excluded resources: spaces/repo, models/repo, datasets/repo, papers/paperId, collections/collectionId, users/username, orgs/orgName, buckets/bucketName, kernels/repo","default":[],"type":"array","items":{"type":"string","pattern":"^(spaces|models|datasets|papers|collections|users|orgs|buckets|kernels)\\/.*"}},"namespace":{"description":"Namespace to filter by","type":"string"},"includeInvitees":{"default":false,"anyOf":[{"type":"boolean"},{}]},"repoName":{"type":"string"},"repoType":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"type":"string"}]},"discussionId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"discussionCollectionName":{"type":"string"},"spacesTags":{"type":"array","items":{"type":"string"}}},"required":["exclude","bucketNamespace"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"datasets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"},"trendingWeight":{"type":"number"}},"required":["id","trendingWeight"],"additionalProperties":false}},"datasetsCount":{"type":"number"},"models":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"},"trendingWeight":{"type":"number"}},"required":["id","trendingWeight"],"additionalProperties":false}},"modelsCount":{"type":"number"},"orgs":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"}},"required":["_id","avatarUrl","fullname","name"],"additionalProperties":false}},"q":{"type":"string"},"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"},"emoji":{"type":"string"},"trendingWeight":{"type":"number"}},"required":["id","emoji","trendingWeight"],"additionalProperties":false}},"spacesCount":{"type":"number"},"users":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"user":{"type":"string"}},"required":["_id","avatarUrl","fullname","user"],"additionalProperties":false}},"papers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"papersCount":{"type":"number"},"collections":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}},"required":["_id","title"],"additionalProperties":false}},"collectionsCount":{"type":"number"},"buckets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"bucketsCount":{"type":"number"},"kernels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"private":{"type":"boolean"}},"required":["id"],"additionalProperties":false}},"kernelsCount":{"type":"number"}},"required":["datasets","datasetsCount","models","modelsCount","orgs","q","spaces","spacesCount","users","papers","papersCount","collections","collectionsCount","buckets","bucketsCount","kernels","kernelsCount"],"additionalProperties":false}}},"description":"The quick search results"}},"parameters":[{"name":"q","in":"query","schema":{"default":"","type":"string"},"required":false},{"name":"limit","in":"query","schema":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"integer","minimum":1,"maximum":20}]},"required":false},{"name":"lang","in":"query","schema":{"anyOf":[{"enum":["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]},{"type":"string"}]},"required":false},{"name":"library","in":"query","schema":{"anyOf":[{"enum":["acestep","adapter-transformers","allennlp","anemoi","araclip","aviation-ner","asteroid","audiocraft","audioseal","bagel-mot","bboxmaskpose","ben2","bertopic","big_vision","bionemo","birder","birefnet","bm25s","boltzgen","cancertathomev2","cartesia_pytorch","cartesia_mlx","ccpfn","champ","chatterbox","chaossim","chat_tts","chexmix","chronos-forecasting","clara","clipscope","cloud-agents","collectorvision","colipri","cosyvoice","cotracker","colpali","comet","cosmos","cxr-foundation","deepforest","depth-anything-v2","depth-pro","derm-foundation","describe-anything","dia-tts","dia2","diff-interpretation-tuning","diffree","diffusers","diffusionkit","docking-at-home","doctr","edsnlp","elm","encoderfile","espnet","eupe","fairseq","fastai","fastprint","fasttext","fixer","flair","flextab","fme","gemma.cpp","geometry-crafter","gliner","gliner2","glm-tts","glyph-byt5","granite-library","grok","habibi-tts","hallo","hermes","holomotion","hezar","htrflow","hunyuan-dit","hunyuan3d-2","hunyuanworld-voyager","hy-worldplay","hy-world-2","image-matching-models","imstoucan","index-tts","infinitetalk","infinite-you","intellifold","ising-decoding","keras","tf-keras","keras-hub","kernels","kimi-audio","kittentts","kronos","k2","lyra-2.0","lagernvs","lightning-ir","litert","litert-lm","lerobot","lightglue","liveportrait","longcat-video-avatar-1.5","llama-cpp-python","mini-omni2","mindspore","magi-1","magenta-realtime","magenta-realtime-2","mamba-ssm","manas-1","mars5-tts","matanyone","mesh-anything","merlin","medvae","mitie","ml-agents","ml-sharp","mlx","mlx-image","mlc-llm","model2vec","mobilint","moshi","mtvcraft","multimolecule","nemo","ninfer","nv-medtech","open-oasis","open_clip","openasr","openpeerllm","open-sora","outetts","paddlenlp","PaddleOCR","peft","perception-encoder","phantom-wan","pocket-tts","pruna-ai","pxia","pyannote-audio","py-feat","pythae","quantumpeer","qwen3_tts","recurrentgemma","relik","refiners","renderformer","reverb","rkllm","robo-orchard-lab","rwkv","saelens","scail-2","sam2","sam-3d-body","sam-3d-objects","same","sample-factory","sap-rpt-1-oss","sapiens","sapiens2","seedvr","self-forcing","sentence-transformers","setfit","sklearn","spacy","span-marker","speechbrain","ssr-speech","stable-audio-3","stable-audio-tools","monkeyocr","diffusion-single-file","seed-story","skala","soloaudio","songbloom","stable-baselines3","stanza","supertonic","swarmformer","synthefy-migas","f5-tts","genmo","tencent-song-generation","tensorflowtts","tensorrt","tabpfn","terratorch","tic-clip","timesfm","timee-ts","timm","tirex","tirex-2","torchgeo","transformers","transformers.js","trellis","trellis2","tunejury","ultralytics","univa","uni-3dar","unity-sentis","sana","videoprism","vfi-mamba","vismatch","lvface","voicecraft","voxcpm","vui","vibevoice","videox_fun","wan2.2","wham","whisperkit","yolov10","yolov26","zonos","3dtopia-xl"]},{"type":"string"}]},"required":false},{"name":"type","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["model","dataset","space","org","user","paper","collection","bucket","kernel"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"orgsFilter","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["own","unwatched"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"reposFilter","in":"query","schema":{"anyOf":[{"type":"array","items":{"enum":["skip_disabled","skip_gated","own","own_orgs","granted_access"]}},{"type":"array","items":{"type":"string"}}]},"required":false},{"name":"pipelines","in":"query","schema":{"description":"Comma-separated or array of pipeline types","anyOf":[{"type":"array","items":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other"]}},{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}]},"required":false},{"name":"exclude","in":"query","schema":{"description":"Array of excluded resources: spaces/repo, models/repo, datasets/repo, papers/paperId, collections/collectionId, users/username, orgs/orgName, buckets/bucketName, kernels/repo","default":[],"type":"array","items":{"type":"string","pattern":"^(spaces|models|datasets|papers|collections|users|orgs|buckets|kernels)\\/.*"}},"required":false},{"name":"namespace","in":"query","schema":{"description":"Namespace to filter by","type":"string"},"required":false},{"name":"includeInvitees","in":"query","schema":{"default":false,"anyOf":[{"type":"boolean"},{}]},"required":false},{"name":"repoName","in":"query","schema":{"type":"string"},"required":false},{"name":"repoType","in":"query","schema":{"anyOf":[{"enum":["dataset","model","space","bucket","kernel"]},{"type":"string"}]},"required":false},{"name":"discussionId","in":"query","schema":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"required":false},{"name":"discussionCollectionName","in":"query","schema":{"type":"string"},"required":false},{"name":"spacesTags","in":"query","schema":{"type":"array","items":{"type":"string"}},"required":false}]}},"/api/spaces/hardware":{"get":{"description":"Get available space hardware","summary":"List space hardware","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"prettyName":{"type":"string"},"cpu":{"type":"string"},"ram":{"type":"string"},"accelerator":{"anyOf":[{"type":"object","properties":{"type":{"enum":["gpu","neuron"]},"model":{"type":"string"},"quantity":{"type":"string"},"vram":{"type":"string"},"manufacturer":{"enum":["Nvidia","AWS"]}},"required":["type","model","quantity","vram","manufacturer"],"additionalProperties":false},{"type":"null"}]},"unitCostMicroUSD":{"type":"number"},"unitCostUSD":{"type":"number"},"unitLabel":{"type":"string"}},"required":["name","prettyName","cpu","ram","accelerator","unitCostMicroUSD","unitCostUSD","unitLabel"],"additionalProperties":false}}}},"description":"Available space hardware (public only)"}}}},"/api/spaces/templates":{"get":{"description":"Returns the catalog of official Space templates. The `repoId` of a template can be passed as `template` when creating a Space through the create-repo endpoint.","summary":"List Space templates","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"templates":{"type":"array","items":{"type":"object","properties":{"sdk":{"enum":["docker","static","gradio"]},"name":{"description":"Human-friendly name of the template (e.g. `JupyterLab`).","type":"string"},"repoId":{"description":"Repo id of the template Space, to pass as `template` on create.","type":"string"},"preferredPrivate":{"description":"Whether the created Space is expected to be private.","type":"boolean"}},"required":["sdk","name","repoId","preferredPrivate"],"additionalProperties":false}}},"required":["templates"],"additionalProperties":false}}},"description":"The list of available Space templates."}}}},"/api/spaces/zero-gpu/quota":{"get":{"description":"Get the authenticated user's current ZeroGPU quota usage and limits","summary":"Get ZeroGPU quota","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"base":{"description":"Total quota in GPU-seconds","type":"number"},"current":{"description":"Remaining quota in GPU-seconds","type":"number"},"resetsAt":{"description":"ISO 8601 timestamp when the quota resets, or null if the quota has not been used yet","anyOf":[{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},{"type":"null"}]},"overquotaUsed":{"description":"Overquota (paid) GPU-seconds consumed","type":"number"},"runs":{"description":"Execution (runs) accounting, or omitted for visitors without a runs limit","type":"object","properties":{"used":{"description":"Executions used in the current runs window","type":"number"},"limit":{"description":"Maximum number of executions allowed in the runs window","type":"number"},"remaining":{"description":"Executions left before the runs limit is reached","type":"number"},"resetsAt":{"description":"ISO 8601 timestamp when the runs window resets, or null if no run has happened yet. Independent of resetsAt.","anyOf":[{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},{"type":"null"}]}},"required":["used","limit","remaining","resetsAt"],"additionalProperties":false}},"required":["base","current","resetsAt"],"additionalProperties":false}}},"description":"The authenticated user's current ZeroGPU quota usage and limits"}}}},"/api/spaces/{namespace}/{repo}/secrets":{"post":{"description":"Upsert Spaces's secret","summary":"Upsert secret","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"default":"","type":"string"}},"required":["key"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Delete Spaces's secret","summary":"Delete secret","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string"}},"required":["key"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"description":"List a Space's secret keys. Values are never returned.","summary":"List secrets","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string"},"description":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["key"],"additionalProperties":false}}}},"description":"Secret keys indexed by name."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/variables":{"post":{"description":"Upsert Spaces's variable","summary":"Upsert variable","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"default":"","type":"string"}},"required":["key"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Delete Spaces's variable","summary":"Delete variable","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string"}},"required":["key"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"description":"List a Space's variables with their values.","summary":"List variables","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"},"description":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["key","value"],"additionalProperties":false}}}},"description":"Variables indexed by name"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/duplicate":{"post":{"summary":"Duplicate a repository","tags":["repos"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"repository":{"type":"string"},"private":{"type":"boolean"},"visibility":{"enum":["private","public","protected"]},"resourceGroupId":{"anyOf":[{"anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}]},{"type":"null"}]},"hardware":{"default":"","enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6",""]},"sleepTimeSeconds":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"const":-1}]},"secrets":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"type":"string"}},"required":["key","value"]}},"variables":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"type":"string"}},"required":["key","value"]}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the duplicated Space.","type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}}},"required":["repository"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}},"description":"Repository created, url is given"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["spaces"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/repos/create":{"post":{"summary":"Create a new repository","tags":["repos"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","allOf":[{"type":"object","properties":{"name":{"type":"string"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}]},"region":{"description":"The region where the repository is hosted.","enum":["us","eu"]},"license":{"description":"The license of the repository. You can select 'Other' if your license is not in the list","enum":["apache-2.0","mit","openrail","bigscience-openrail-m","creativeml-openrail-m","bigscience-bloom-rail-1.0","bigcode-openrail-m","afl-3.0","artistic-2.0","bsl-1.0","bsd","bsd-2-clause","bsd-3-clause","bsd-3-clause-clear","c-uda","cc","cc0-1.0","cc-by-2.0","cc-by-2.5","cc-by-3.0","cc-by-4.0","cc-by-sa-3.0","cc-by-sa-4.0","cc-by-nc-2.0","cc-by-nc-3.0","cc-by-nc-4.0","cc-by-nd-4.0","cc-by-nc-nd-3.0","cc-by-nc-nd-4.0","cc-by-nc-sa-2.0","cc-by-nc-sa-3.0","cc-by-nc-sa-4.0","cdla-sharing-1.0","cdla-permissive-1.0","cdla-permissive-2.0","wtfpl","ecl-2.0","epl-1.0","epl-2.0","etalab-2.0","eupl-1.1","eupl-1.2","agpl-3.0","gfdl","gpl","gpl-2.0","gpl-3.0","lgpl","lgpl-2.1","lgpl-3.0","isc","h-research","intel-research","lppl-1.3c","ms-pl","apple-ascl","apple-amlr","mpl-2.0","odc-by","odbl","openmdw-1.0","openmdw-1.1","openrail++","osl-3.0","postgresql","ofl-1.1","ncsa","unlicense","zlib","pddl","lgpl-lr","deepfloyd-if-license","fair-noncommercial-research-license","llama2","llama3","llama3.1","llama3.2","llama3.3","llama4","grok2-community","gemma","unknown","other"]},"license_name":{"type":"string","pattern":"^[a-z0-9-.]+$"},"license_link":{"anyOf":[{"const":"LICENSE"},{"const":"LICENSE.md"},{"type":"string","format":"uri"}]},"private":{"description":"Repository visibility. Defaults to public. Cannot be specified along with visibility.","anyOf":[{"type":"boolean"},{"type":"null"}]},"visibility":{"description":"Repository visibility. `protected` is only supported for Spaces. Cannot be specified along with private.","enum":["private","public","protected"]},"resourceGroupId":{"anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}]},"files":{"type":"array","items":{"type":"object","properties":{"content":{"type":"string"},"path":{"type":"string"},"encoding":{"enum":["utf-8","base64"]}},"required":["content","path"]}}},"required":["name"]},{"anyOf":[{"type":"object","properties":{"type":{"const":"dataset"}},"required":["type"]},{"type":"object","properties":{"type":{"default":"model","const":"model"}}},{"type":"object","properties":{"type":{"const":"kernel"}},"required":["type"]},{"type":"object","properties":{"type":{"const":"space"},"template":{"type":"string"},"short_description":{"type":"string","maxLength":60},"hardware":{"description":"The hardware flavor of the space. If you select 'zero-a10g' or 'zerogpu', the SDK must be Gradio.","enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6","zerogpu"]},"secrets":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"type":"string"}},"required":["key","value"]}},"variables":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"description":{"type":"string"},"value":{"type":"string"}},"required":["key","value"]}},"sleepTimeSeconds":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"const":-1}]},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the Space container.","type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}},"sdk":{"description":"The Space SDK. `static` is free for everyone. `gradio` and `docker` run on compute: on the free `cpu-basic` flavor they require a subscription (PRO for users, Team/Enterprise for orgs), while paid hardware only requires billing (a payment method and prepaid credits).","enum":["gradio","docker","static"]},"sdkVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"devModeEnabled":{"type":"boolean"}},"required":["type","sdk"]}]}]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}},"required":["url","name","id"],"additionalProperties":false}}},"description":"Repository created, url is given"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"url":{"type":"string"}},"required":["error","url"],"additionalProperties":false}}},"description":"Repository already exists, url is given"}}}},"/api/repos/move":{"post":{"description":"Move or rename a repo","summary":"Move repo","tags":["repos"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fromRepo":{"examples":["black-forest-labs/FLUX.1-dev"],"type":"string"},"toRepo":{"type":"string"},"type":{"default":"model","enum":["dataset","model","space","bucket","kernel"]}},"required":["fromRepo","toRepo"]}}}}}},"/api/{repoType}/{namespace}/{repo}/sql-console/embed/{id}":{"patch":{"description":"Update SQL Console embed","summary":"Update embed","tags":["sql-console"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","maxLength":200},"private":{"type":"boolean"},"sql":{"type":"string"}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"repoId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"views":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"displayName":{"type":"string"},"viewName":{"type":"string"}},"required":["key","displayName","viewName"],"additionalProperties":false}},"sql":{"type":"string"},"title":{"type":"string"},"userId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"slug":{"type":"string"},"private":{"type":"boolean"},"rating":{"type":"number"},"justification":{"type":"string"}},"required":["_id","repoId","views","sql","title","userId","createdAt","slug"],"additionalProperties":false}}},"description":"Updated SQL console embed"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["datasets"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"description":"Delete SQL Console embed","summary":"Delete embed","tags":["sql-console"],"responses":{"204":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}},"description":"SQL console embed deleted successfully"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["datasets"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/{repoType}/{namespace}/{repo}/sql-console/embed":{"post":{"description":"Create SQL Console embed","summary":"Create embed","tags":["sql-console"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sql":{"type":"string"},"title":{"type":"string","maxLength":200},"private":{"type":"boolean"},"views":{"minItems":1,"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"displayName":{"type":"string"},"viewName":{"type":"string"}},"required":["key","displayName","viewName"]}}},"required":["sql","title","views"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"repoId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"views":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"displayName":{"type":"string"},"viewName":{"type":"string"}},"required":["key","displayName","viewName"],"additionalProperties":false}},"sql":{"type":"string"},"title":{"type":"string"},"userId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"slug":{"type":"string"},"private":{"type":"boolean"},"rating":{"type":"number"},"justification":{"type":"string"}},"required":["_id","repoId","views","sql","title","userId","createdAt","slug"],"additionalProperties":false}}},"description":"Created SQL console embed"}},"parameters":[{"name":"repoType","in":"path","required":true,"schema":{"type":"string","enum":["datasets"]}},{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/spaces/{namespace}/{repo}/resolve/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/datasets/{namespace}/{repo}/resolve/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/{namespace}/{repo}/resolve/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/api/resolve-cache/spaces/{namespace}/{repo}/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["spaces"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/api/resolve-cache/datasets/{namespace}/{repo}/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/api/resolve-cache/models/{namespace}/{repo}/{rev}/{path}":{"get":{"description":"This endpoint requires to follow redirection","summary":"Resolve a file","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"The XET file info only available if the accept header is set to application/vnd.xet-fileinfo+json"},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file"},"304":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Not modified"},"307":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to Xet endpoint"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"rev","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"Range","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The range in bytes of the file to download","type":"string"}},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info - if the file is a xet file","const":"application/vnd.xet-fileinfo+json"}}]}},"/{namespace}/{repo}/ask-access":{"post":{"description":"Request access to a gated repository. The fields requested by repository card metadata (https://huggingface.co/docs/hub/en/models-gated#customize-requested-information)","summary":"Request access","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"responses":{"303":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/datasets/{namespace}/{repo}/ask-access":{"post":{"description":"Request access to a gated repository. The fields requested by repository card metadata (https://huggingface.co/docs/hub/en/models-gated#customize-requested-information)","summary":"Request access","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"responses":{"303":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to the repo"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/{namespace}/{repo}/user-access-report":{"get":{"description":"Export a report of all access requests for a gated repository","summary":"Export access report","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The report of all access requests for a gated repository","headers":{"Content-Disposition":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"The filename of the report"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/datasets/{namespace}/{repo}/user-access-report":{"get":{"description":"Export a report of all access requests for a gated repository","summary":"Export access report","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}},"description":"The report of all access requests for a gated repository","headers":{"Content-Disposition":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"The filename of the report"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/user-access-request/cancel":{"post":{"description":"Cancel the current user's access request to a gated repository","summary":"Cancel access request","tags":["models"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/user-access-request/cancel":{"post":{"description":"Cancel the current user's access request to a gated repository","summary":"Cancel access request","tags":["datasets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/user-access-request/{status}":{"get":{"description":"List access requests for a gated repository","summary":"List access requests","tags":["models"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"user":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numBuckets":{"type":"number"},"numKernels":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"numFollowingOrgs":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"primaryOrgAvatarUrl":{"type":"string"},"type":{"const":"user"},"email":{"type":"string"},"verifiedOrgNames":{"type":"array","items":{"type":"string"}}},"required":["_id","avatarUrl","fullname","isPro","user","type","verifiedOrgNames"],"additionalProperties":false},"grantedBy":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numBuckets":{"type":"number"},"numKernels":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"numFollowingOrgs":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"primaryOrgAvatarUrl":{"type":"string"},"type":{"const":"user"},"email":{"type":"string"}},"required":["_id","avatarUrl","fullname","isPro","user","type"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]},"status":{"enum":["accepted","rejected","pending"]},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"timestamp":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"reviewedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["status","timestamp"],"additionalProperties":false}}}},"description":"List of access requests for the gated repository","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"path","required":true,"schema":{"type":"string","enum":["pending","accepted","rejected"]}},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":10,"maximum":1000},"required":false},{"name":"after","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"before","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]}},"/api/datasets/{namespace}/{repo}/user-access-request/{status}":{"get":{"description":"List access requests for a gated repository","summary":"List access requests","tags":["datasets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"user":{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numBuckets":{"type":"number"},"numKernels":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"numFollowingOrgs":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"primaryOrgAvatarUrl":{"type":"string"},"type":{"const":"user"},"email":{"type":"string"},"verifiedOrgNames":{"type":"array","items":{"type":"string"}}},"required":["_id","avatarUrl","fullname","isPro","user","type","verifiedOrgNames"],"additionalProperties":false},"grantedBy":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","fullname","avatarUrl"],"additionalProperties":false}},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"user":{"type":"string"},"numModels":{"type":"number"},"numDatasets":{"type":"number"},"numSpaces":{"type":"number"},"numBuckets":{"type":"number"},"numKernels":{"type":"number"},"numDiscussions":{"type":"number"},"numPapers":{"type":"number"},"numUpvotes":{"type":"number"},"numLikes":{"type":"number"},"numFollowers":{"type":"number"},"numFollowing":{"type":"number"},"numFollowingOrgs":{"type":"number"},"details":{"type":"string"},"isFollowing":{"type":"boolean"},"reasonToFollow":{"type":"string"},"primaryOrgAvatarUrl":{"type":"string"},"type":{"const":"user"},"email":{"type":"string"}},"required":["_id","avatarUrl","fullname","isPro","user","type"],"additionalProperties":false},{"type":"object","properties":{},"additionalProperties":false}]},"status":{"enum":["accepted","rejected","pending"]},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"timestamp":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"reviewedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["status","timestamp"],"additionalProperties":false}}}},"description":"List of access requests for the gated repository","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"path","required":true,"schema":{"type":"string","enum":["pending","accepted","rejected"]}},{"name":"limit","in":"query","schema":{"default":1000,"type":"integer","minimum":10,"maximum":1000},"required":false},{"name":"after","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false},{"name":"before","in":"query","schema":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"required":false}]}},"/api/models/{namespace}/{repo}/user-access-request/handle":{"post":{"description":"Handle a user's access request to a gated repository","summary":"Handle access request","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"description":"Either userId or user must be provided","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"description":"Either userId or user must be provided","type":"string"},"status":{"enum":["accepted","rejected","pending"]},"rejectionReason":{"type":"string","maxLength":200}},"required":["status"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/user-access-request/handle":{"post":{"description":"Handle a user's access request to a gated repository","summary":"Handle access request","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"description":"Either userId or user must be provided","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"description":"Either userId or user must be provided","type":"string"},"status":{"enum":["accepted","rejected","pending"]},"rejectionReason":{"type":"string","maxLength":200}},"required":["status"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/user-access-request/batch":{"post":{"description":"Accept or reject up to 100 access requests for a single gated repository in one call. The same `status` (and optional `rejectionReason`) is applied to every request in the list.","summary":"Batch handle access requests","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"enum":["accepted","rejected"]},"rejectionReason":{"type":"string","maxLength":200},"requests":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"userId":{"description":"Either userId or user must be provided","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"description":"Either userId or user must be provided","type":"string"}}}}},"required":["status","requests"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"user":{"type":"string"},"ok":{"type":"boolean"},"error":{"enum":["user_not_found","request_not_found"]}},"required":["ok"],"additionalProperties":false}}}},"description":"Per-request outcomes, in the same order as the input requests array."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/user-access-request/batch":{"post":{"description":"Accept or reject up to 100 access requests for a single gated repository in one call. The same `status` (and optional `rejectionReason`) is applied to every request in the list.","summary":"Batch handle access requests","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"enum":["accepted","rejected"]},"rejectionReason":{"type":"string","maxLength":200},"requests":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"userId":{"description":"Either userId or user must be provided","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"description":"Either userId or user must be provided","type":"string"}}}}},"required":["status","requests"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"user":{"type":"string"},"ok":{"type":"boolean"},"error":{"enum":["user_not_found","request_not_found"]}},"required":["ok"],"additionalProperties":false}}}},"description":"Per-request outcomes, in the same order as the input requests array."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/models/{namespace}/{repo}/user-access-request/grant":{"post":{"description":"Grant access to a user for a gated repository","summary":"Grant access","tags":["models"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The user to grant access to either by userId or user","type":"object","properties":{"userId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"type":"string"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/datasets/{namespace}/{repo}/user-access-request/grant":{"post":{"description":"Grant access to a user for a gated repository","summary":"Grant access","tags":["datasets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The user to grant access to either by userId or user","type":"object","properties":{"userId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"user":{"type":"string"}}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/volumes":{"put":{"summary":"Set Space volumes","tags":["spaces"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"volumes":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}}},"required":["volumes"]}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete Space volumes","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/spaces/{namespace}/{repo}/logs/{logType}":{"get":{"description":"Get logs for a specific Space in a streaming fashion, with SSE protocol","summary":"Stream logs","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"logType","in":"path","required":true,"schema":{"type":"string","enum":["build","run"]}},{"name":"tail","in":"query","schema":{"description":"Maximum number of lines to return from the logs.","type":"integer","minimum":0,"maximum":9007199254740991},"required":false}]}},"/api/spaces/{namespace}/{repo}/events":{"get":{"description":"Get status updates for a specific Space in a streaming fashion, with SSE protocol","summary":"Stream events","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"session_uuid","in":"query","schema":{"type":"string"},"required":false}]}},"/api/spaces/{namespace}/{repo}/metrics":{"get":{"description":"Get live metrics for a specific Space in a streaming fashion, with SSE protocol, such as current Zero-GPU usage","summary":"Stream metrics","tags":["spaces"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/daily_papers":{"get":{"summary":"Get Daily Papers","tags":["papers"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"description":"Daily paper data for API responses","type":"object","properties":{"paper":{"description":"Paper data with metadata","type":"object","properties":{"id":{"type":"string"},"authors":{"type":"array","items":{"description":"Paper author information","type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"statusLastChangedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"user":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"hidden":{"type":"boolean"}},"required":["_id","name","hidden"],"additionalProperties":false}},"mediaUrls":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"submittedOnDailyAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"title":{"type":"string"},"submittedOnDailyBy":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"summary":{"type":"string"},"upvotes":{"type":"number"},"withdrawnAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"discussionId":{"type":"string"},"projectPage":{"type":"string"},"githubRepo":{"type":"string"},"ai_summary":{"type":"string"},"ai_keywords":{"type":"array","items":{"type":"string"}},"ai_summary_model":{"type":"string"},"githubStars":{"type":"number"}},"required":["id","authors","publishedAt","title","summary","upvotes","discussionId"],"additionalProperties":false},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"title":{"type":"string"},"summary":{"type":"string"},"mediaUrls":{"type":"array","items":{"type":"string"}},"thumbnail":{"type":"string"},"numComments":{"type":"number"},"submittedBy":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"isAuthorParticipating":{"type":"boolean"}},"required":["paper","publishedAt","title","summary","thumbnail","numComments","submittedBy","isAuthorParticipating"],"additionalProperties":false}}}},"description":"List of daily papers"}},"parameters":[{"name":"p","in":"query","schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"required":false},{"name":"date","in":"query","schema":{"type":"string","format":"date","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))$"},"required":false},{"name":"week","in":"query","schema":{"type":"string","pattern":"^\\d{4}-W(0[1-9]|[1-4][0-9]|5[0-2])$"},"required":false},{"name":"month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"required":false},{"name":"submitter","in":"query","schema":{"type":"string"},"required":false},{"name":"sort","in":"query","schema":{"default":"publishedAt","enum":["publishedAt","trending"]},"required":false}]}},"/api/papers":{"get":{"description":"List arXiv papers sorted by published date","summary":"List papers","tags":["papers"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"authors":{"type":"array","items":{"description":"Paper author information","type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"statusLastChangedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"user":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"hidden":{"type":"boolean"}},"required":["_id","name","hidden"],"additionalProperties":false}},"summary":{"type":"string"},"projectPage":{"type":"string"},"githubRepo":{"type":"string"},"ai_summary":{"type":"string"},"organization":{"type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"fullname":{"type":"string"},"avatar":{"type":"string"}},"required":["_id","name"],"additionalProperties":false}},"required":["id","title","upvotes","publishedAt","authors","summary"],"additionalProperties":false}}}},"description":"List of papers"}},"parameters":[{"name":"cursor","in":"query","schema":{"description":"Pagination cursor","type":"string"},"required":false},{"name":"limit","in":"query","schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"required":false}]}},"/api/papers/search":{"get":{"description":"Perform a hybrid semantic / full-text-search on papers","summary":"Search papers","tags":["papers"],"parameters":[{"name":"q","in":"query","schema":{"default":"","type":"string","maxLength":250},"required":false},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":120},"required":false}]}},"/api/papers/index":{"post":{"description":"Index a paper from arXiv by its ID. If the paper is already indexed, only its authors can re-index it.","summary":"Index a paper","tags":["papers"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"arxivId":{"description":"The arXiv ID of the paper to index (e.g. 2301.00001)","type":"string","pattern":"^\\d{4}\\.\\d{4,5}$"}},"required":["arxivId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}},"description":"Empty object on success"}}}},"/api/papers/{paperId}":{"get":{"summary":"Get a paper","tags":["papers"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"authors":{"type":"array","items":{"description":"Paper author information","type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"statusLastChangedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"user":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"hidden":{"type":"boolean"}},"required":["_id","name","hidden"],"additionalProperties":false}},"mediaUrls":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"submittedOnDailyAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"title":{"type":"string"},"submittedOnDailyBy":{"description":"User overview information","type":"object","properties":{"_id":{"type":"string"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"isPro":{"type":"boolean"},"name":{"type":"string"},"type":{"type":"string"},"user":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"}},"required":["_id","avatarUrl","fullname","isPro","name","type"],"additionalProperties":false},"summary":{"type":"string"},"upvotes":{"type":"number"},"withdrawnAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"discussionId":{"type":"string"},"projectPage":{"type":"string"},"githubRepo":{"type":"string"},"ai_summary":{"type":"string"},"ai_keywords":{"type":"array","items":{"type":"string"}},"ai_summary_model":{"type":"string"},"githubStars":{"type":"number"},"submissionDeadline":{"description":"only available when field contains 'submissionDeadline'","type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"linkedModels":{"type":"array","items":{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated"],"additionalProperties":false}},"numTotalModels":{"type":"number"},"linkedDatasets":{"type":"array","items":{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified"],"additionalProperties":false}},"numTotalDatasets":{"type":"number"},"linkedSpaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"emoji":{"type":"string"},"running":{"type":"boolean"},"shortDescription":{"type":"string"},"featured":{"type":"boolean"}},"required":["id","emoji","running","featured"],"additionalProperties":false}},"numTotalSpaces":{"type":"number"},"comments":{"description":"only available when field contains 'comments'","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}}},"required":["id","authors","publishedAt","title","summary","upvotes","discussionId","linkedModels","numTotalModels","linkedDatasets","numTotalDatasets","linkedSpaces","numTotalSpaces"],"additionalProperties":false}}},"description":"Paper data"}},"parameters":[{"name":"paperId","in":"path","required":true,"schema":{"type":"string"}},{"name":"field","in":"query","schema":{"anyOf":[{"enum":["submissionDeadline","comments"]},{"type":"array","items":{"enum":["submissionDeadline","comments"]}}]},"required":false}]}},"/api/papers/{paperId}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"paperId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/papers/{paperId}/comment/{commentId}/reply":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"paperId","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/papers/{paperId}/links":{"post":{"description":"Update the project page, GitHub repository, or submitting organization for a paper. Requires the requester to be the paper author, the Daily Papers submitter, or a papers admin.","summary":"Update paper links","tags":["papers"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"projectPage":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"githubRepo":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"organizationId":{"anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},{"type":"null"}]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}},"description":"Paper links updated"}},"parameters":[{"name":"paperId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/posts/{username}/{postSlug}":{"delete":{"summary":"Delete a discussion","tags":["discussions"],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"postSlug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/posts/{username}/{postSlug}/comment":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"postSlug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/posts/{username}/{postSlug}/comment/{commentId}/reply":{"post":{"summary":"Create a new comment","tags":["discussions"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":65536}},"required":["comment"]}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"newMessage":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"allOf":[{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},{"type":"object","properties":{"isOwner":{"type":"boolean"},"isOrgMember":{"type":"boolean"},"isBlockedByMe":{"type":"boolean"},"oauthApp":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageData":{"type":"object","properties":{"emoji":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"}},"required":["emoji","colorFrom","colorTo"],"additionalProperties":false},"url":{"type":"string"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false}},"additionalProperties":false}]},"type":{"const":"comment"},"data":{"type":"object","properties":{"edited":{"type":"boolean"},"hidden":{"type":"boolean"},"hiddenBy":{"type":"string"},"hiddenReason":{"enum":["Spam","Abuse","Graphic Content","Resolved","Off-Topic","Low Quality"]},"latest":{"type":"object","properties":{"raw":{"type":"string"},"html":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]}},"required":["raw","html","updatedAt"],"additionalProperties":false},"numEdits":{"type":"number"},"editors":{"type":"array","items":{"type":"string"}},"editorAvatarUrls":{"type":"array","items":{"type":"string"}},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"enum":["fire","rocket","eyes","heart","hugs","cool","plus","brain","thumbsup","handshake","sad","mindblown"]},"users":{"type":"array","items":{"type":"string"}},"count":{"type":"number"}},"required":["reaction","users","count"],"additionalProperties":false}},"identifiedLanguage":{"type":"object","properties":{"language":{"type":"string"},"probability":{"type":"number"}},"required":["language","probability"],"additionalProperties":false},"relatedEventId":{"type":"string"},"isReport":{"type":"boolean"},"parentCommentId":{"type":"string"}},"required":["edited","hidden","latest","numEdits","editors","editorAvatarUrls","reactions"],"additionalProperties":false}},"required":["id","createdAt","type","data"],"additionalProperties":false}},"required":["newMessage"],"additionalProperties":false}}},"description":"New comment created"}},"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"postSlug","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}-{id}":{"get":{"summary":"Get a collection","tags":["collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The collection data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"summary":"Update a collection","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991},"private":{"type":"boolean"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"title":{"type":"string","minLength":1,"maxLength":60},"description":{"type":"string","maxLength":150},"gating":{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"]},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"]}},"required":["mode","notifications"]}]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}},"description":"The updated collection"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a collection","tags":["collections"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}":{"get":{"summary":"Get a collection","tags":["collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The collection data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"summary":"Update a collection","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"position":{"type":"integer","minimum":0,"maximum":9007199254740991},"private":{"type":"boolean"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"title":{"type":"string","minLength":1,"maxLength":60},"description":{"type":"string","maxLength":150},"gating":{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"]},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"]}},"required":["mode","notifications"]}]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}},"required":["success","data"],"additionalProperties":false}}},"description":"The updated collection"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a collection","tags":["collections"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}-{id}/items":{"post":{"description":"Add an item to a collection","summary":"Add item","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"item":{"type":"object","properties":{"type":{"enum":["paper","collection","space","model","dataset","bucket"]},"id":{"type":"string"}},"required":["type","id"]},"note":{"type":"string","maxLength":500}},"required":["item"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The updated collection"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}/items":{"post":{"description":"Add an item to a collection","summary":"Add item","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"item":{"type":"object","properties":{"type":{"enum":["paper","collection","space","model","dataset","bucket"]},"id":{"type":"string"}},"required":["type","id"]},"note":{"type":"string","maxLength":500}},"required":["item"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The updated collection"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}-{id}/items/batch":{"post":{"description":"Batch update items in a collection","summary":"Batch update items","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"action":{"enum":["update"]},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"data":{"type":"object","properties":{"gallery":{"type":"array","items":{"type":"string","format":"uri"}},"note":{"type":"string","maxLength":500},"position":{"type":"integer","minimum":0,"maximum":9007199254740991}}}},"required":["action","_id","data"]}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}/items/batch":{"post":{"description":"Batch update items in a collection","summary":"Batch update items","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"action":{"enum":["update"]},"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"data":{"type":"object","properties":{"gallery":{"type":"array","items":{"type":"string","format":"uri"}},"note":{"type":"string","maxLength":500},"position":{"type":"integer","minimum":0,"maximum":9007199254740991}}}},"required":["action","_id","data"]}}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}-{id}/items/{itemId}":{"delete":{"description":"Delete an item from a collection","summary":"Delete item","tags":["collections"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}/items/{slug}":{"delete":{"description":"Delete an item from a collection","summary":"Delete item","tags":["collections"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections":{"post":{"summary":"Create a collection","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":60},"description":{"type":"string","maxLength":150},"namespace":{"type":"string"},"item":{"type":"object","properties":{"type":{"enum":["paper","collection","space","model","dataset","bucket"]},"id":{"type":"string"}},"required":["type","id"]},"private":{"description":"If not provided, the collection will be public. This field will respect the organization's visibility setting.","type":"boolean"},"resourceGroupId":{"description":"Assign the collection to a resource group of the owning organization. Only valid for organization-owned collections.","type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["title","namespace"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"position":{"type":"number"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"shareUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","position","theme","private","upvotes","shareUrl","isUpvotedByUser","items"],"additionalProperties":false}}},"description":"The created collection"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"slug":{"type":"string"}},"required":["error"],"additionalProperties":false}}},"description":"The collection already exists"}}},"get":{"summary":"Get collections","tags":["collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"gating":{"anyOf":[{"const":true},{"anyOf":[{"const":false},{"type":"object","properties":{"mode":{"const":"auto"}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"const":"manual"},"notifications":{"type":"object","properties":{"mode":{"enum":["bulk","real-time"]},"email":{"type":"string"}},"required":["mode"],"additionalProperties":false}},"required":["mode","notifications"],"additionalProperties":false}]}]},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"private":{"type":"boolean"},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"items":{"type":"array","items":{"allOf":[{"type":"object","properties":{"_id":{"type":"string"},"note":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"}},"required":["html","text"],"additionalProperties":false},"gallery":{"type":"array","items":{"type":"string"}},"position":{"type":"number"}},"required":["_id","position"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"likes":{"type":"number"},"datasetsServerInfo":{"type":"object","properties":{"viewer":{"enum":["preview","viewer-partial","viewer"]},"numRows":{"anyOf":[{"type":"number"},{"type":"null"}]},"libraries":{"type":"array","items":{"enum":["mlcroissant","webdataset","datasets","pandas","dask","distilabel","fiftyone","lance","argilla","polars","duckdb","datadesigner"]}},"formats":{"type":"array","items":{"enum":["json","csv","parquet","imagefolder","audiofolder","webdataset","text","arrow","optimized-parquet","agent-traces"]}},"modalities":{"type":"array","items":{"enum":["3d","audio","document","geospatial","image","tabular","text","timeseries","video"]}}},"required":["viewer","numRows","libraries","formats","modalities"],"additionalProperties":false},"private":{"type":"boolean"},"repoType":{"const":"dataset"},"downloads":{"type":"number"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"isBenchmark":{"type":"boolean"},"isTraces":{"type":"boolean"},"type":{"const":"dataset"}},"required":["author","id","isLikedByUser","likes","private","repoType","downloads","gated","lastModified","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"downloads":{"type":"number"},"id":{"type":"string"},"availableInferenceProviders":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["baseten","cerebras","cohere","deepinfra","fal-ai","featherless-ai","fireworks-ai","groq","hf-inference","novita","nscale","openai","ovhcloud","publicai","replicate","scaleway","together","wavespeed","zai-org"]},"providerStatus":{"enum":["live","staging","error"]},"modelStatus":{"enum":["live","staging","error"]},"providerId":{"type":"string"},"task":{"enum":["text-classification","token-classification","table-question-answering","question-answering","zero-shot-classification","translation","summarization","feature-extraction","text-generation","fill-mask","sentence-similarity","text-to-speech","text-to-audio","automatic-speech-recognition","audio-to-audio","audio-classification","audio-text-to-text","voice-activity-detection","depth-estimation","image-classification","object-detection","image-segmentation","text-to-image","image-to-text","image-to-image","image-to-video","unconditional-image-generation","video-classification","reinforcement-learning","robotics","tabular-classification","tabular-regression","tabular-to-text","table-to-text","multiple-choice","text-ranking","text-retrieval","time-series-forecasting","text-to-video","image-text-to-text","image-text-to-image","image-text-to-video","visual-question-answering","document-question-answering","zero-shot-image-classification","graph-ml","mask-generation","zero-shot-object-detection","text-to-3d","image-to-3d","image-feature-extraction","video-text-to-text","keypoint-detection","visual-document-retrieval","any-to-any","video-to-video","other","conversational"]},"adapterType":{"const":"lora"},"adapterWeightsPath":{"type":"string"},"features":{"type":"object","properties":{"toolCalling":{"type":"boolean"}},"additionalProperties":false},"isCheapestPricingOutput":{"type":"boolean"},"isFastestThroughput":{"type":"boolean"},"isModelAuthor":{"type":"boolean"},"tokensPerSecond":{"type":"number"},"pricingOutput":{"type":"number"},"freeUntil":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["provider","providerStatus","modelStatus","providerId","task","isCheapestPricingOutput","isFastestThroughput","isModelAuthor"],"additionalProperties":false}},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pipeline_tag":{"type":"string"},"private":{"type":"boolean"},"repoType":{"const":"model"},"gated":{"anyOf":[{"const":false},{"enum":["auto","manual"]}]},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"numParameters":{"type":"number"},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"widgetOutputUrls":{"type":"array","items":{"type":"string","format":"uri"}},"isPreRelease":{"const":true},"type":{"const":"model"}},"required":["author","downloads","id","availableInferenceProviders","isLikedByUser","lastModified","likes","private","repoType","gated","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"colorFrom":{"type":"string"},"colorTo":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"emoji":{"type":"string"},"id":{"type":"string"},"isLikedByUser":{"type":"boolean"},"lastModified":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"likes":{"type":"number"},"pinned":{"type":"boolean"},"private":{"type":"boolean"},"repoType":{"const":"space"},"title":{"type":"string"},"sdk":{"enum":["gradio","docker","static","streamlit"]},"runtime":{"type":"object","properties":{"stage":{"enum":["NO_APP_FILE","CONFIG_ERROR","BUILDING","BUILD_ERROR","APP_STARTING","RUNNING","RUNNING_BUILDING","RUNNING_APP_STARTING","RUNTIME_ERROR","DELETING","STOPPED","PAUSED","SLEEPING"]},"hardware":{"type":"object","properties":{"current":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]},"requested":{"anyOf":[{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},{"type":"null"}]}},"required":["current","requested"],"additionalProperties":false},"errorMessage":{"type":"string"},"gcTimeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"replicas":{"type":"object","properties":{"current":{"anyOf":[{"type":"number"},{"type":"null"}]},"requested":{"anyOf":[{"type":"number"},{"const":"auto"}]}},"required":["requested"],"additionalProperties":false},"devMode":{"type":"boolean"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"isCustom":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"stage":{"enum":["READY","PENDING","PENDING_CHALLENGE","EXPIRED_CHALLENGE","MISCONFIGURED"]}},"required":["domain","stage"],"additionalProperties":false}},"sha":{"type":"string"},"hotReloading":{"type":"object","properties":{"status":{"type":"string"},"replicaStatuses":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}]}}},"required":["status","replicaStatuses"],"additionalProperties":false}},"required":["stage","hardware","replicas"],"additionalProperties":false},"originRepo":{"type":"object","properties":{"author":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"name":{"type":"string"}},"required":["author","name"],"additionalProperties":false},"ai_short_description":{"type":"string"},"ai_category":{"type":"string"},"trendingScore":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"authorData":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"shortDescription":{"type":"string"},"semanticRelevancyScore":{"type":"number"},"featured":{"type":"boolean"},"visibility":{"enum":["public","private","protected"]},"type":{"const":"space"}},"required":["author","colorFrom","colorTo","createdAt","emoji","id","isLikedByUser","lastModified","likes","pinned","private","repoType","title","runtime","tags","featured","visibility","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"upvotes":{"type":"number"},"publishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"thumbnailUrl":{"type":"string"},"isUpvotedByUser":{"type":"boolean"},"type":{"const":"paper"}},"required":["id","title","upvotes","publishedAt","type"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"description":{"type":"string"},"owner":{"anyOf":[{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"org"},"plan":{"enum":["team","enterprise","plus","academia"]},"isUserFollowing":{"type":"boolean"}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type"],"additionalProperties":false},{"type":"object","properties":{"_id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"isHf":{"type":"boolean"},"isHfAdmin":{"type":"boolean"},"isMod":{"type":"boolean"},"followerCount":{"type":"number"},"type":{"const":"user"},"isPro":{"type":"boolean"},"isUserFollowing":{"type":"boolean"},"primaryOrg":{"type":"object","properties":{"avatarUrl":{"type":"string"},"fullname":{"type":"string"},"name":{"type":"string"},"type":{"const":"org"},"isHf":{"type":"boolean"},"isFollowing":{"type":"boolean"},"plan":{"enum":["team","enterprise","plus","academia"]},"details":{"type":"string"},"hasPrivateMembersList":{"type":"boolean"},"userRole":{"anyOf":[{"enum":["admin","write","contributor","read","no_access"]},{"description":"Custom role name","type":"string"}]},"numUsers":{"type":"number"}},"required":["avatarUrl","fullname","name","type","isHf"],"additionalProperties":false}},"required":["_id","avatarUrl","fullname","name","isHf","isHfAdmin","isMod","type","isPro"],"additionalProperties":false}]},"title":{"type":"string"},"theme":{"enum":["orange","blue","green","purple","pink","indigo"]},"upvotes":{"type":"number"},"isUpvotedByUser":{"type":"boolean"},"shareUrl":{"type":"string"},"id":{"type":"string"},"numberItems":{"type":"number"},"type":{"const":"collection"}},"required":["slug","lastUpdated","owner","title","theme","upvotes","isUpvotedByUser","shareUrl","id","numberItems","type"],"additionalProperties":false},{"type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"type":{"const":"bucket"}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions","type"],"additionalProperties":false}]}]}}},"required":["slug","title","lastUpdated","gating","owner","theme","private","upvotes","isUpvotedByUser","items"],"additionalProperties":false}},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"private":{"type":"boolean"},"upvotes":{"type":"number"},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"name":{"type":"string"}},"required":["title","private","upvotes","name"],"additionalProperties":false}}]}}},"description":"The collection data","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"item","in":"query","schema":{"anyOf":[{"type":"array","items":{"type":"string","pattern":"^spaces|models|datasets|papers\\/.*"}},{"type":"string","pattern":"^spaces|models|datasets|papers\\/.*"}]},"required":false},{"name":"owner","in":"query","schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"string"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}]},"required":false},{"name":"q","in":"query","schema":{"type":"string"},"required":false},{"name":"sort","in":"query","schema":{"default":"trending","enum":["upvotes","lastModified","trending"]},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"expand","in":"query","schema":{"default":true},"required":false},{"name":"limit","in":"query","schema":{"default":10,"type":"number","minimum":1,"maximum":10000},"required":false}]}},"/api/collections/{namespace}/{slug}-{id}/resource-group":{"get":{"summary":"Get collection resource group","tags":["collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}}},"description":"The resource group the collection currently belongs to"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"description":"Assign, move, or unassign an organization-owned collection to a resource group. Pass null to unassign. User-owned collections are not eligible.","summary":"Set collection resource group","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resourceGroupId":{"description":"The resource group to assign the collection to. If null, the collection is removed from any resource group.","anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},{"type":"null"}]}},"required":["resourceGroupId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"private":{"type":"boolean"},"addedBy":{"type":"string"}},"required":["id","slug","title","private","addedBy"],"additionalProperties":false}}},"description":"Minimal information about the collection after the assignment"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/collections/{namespace}/{slug}/resource-group":{"get":{"summary":"Get collection resource group","tags":["collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}}},"description":"The resource group the collection currently belongs to"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"description":"Assign, move, or unassign an organization-owned collection to a resource group. Pass null to unassign. User-owned collections are not eligible.","summary":"Set collection resource group","tags":["collections"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resourceGroupId":{"description":"The resource group to assign the collection to. If null, the collection is removed from any resource group.","anyOf":[{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},{"type":"null"}]}},"required":["resourceGroupId"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"private":{"type":"boolean"},"addedBy":{"type":"string"}},"required":["id","slug","title","private","addedBy"],"additionalProperties":false}}},"description":"Minimal information about the collection after the assignment"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}":{"post":{"summary":"Create bucket","tags":["buckets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Bucket creation options","type":"object","properties":{"private":{"description":"Bucket visibility. Defaults to public","anyOf":[{"type":"boolean"},{"type":"null"}]},"resourceGroupId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"},"cdn":{"description":"CDN pre-warming regions","type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"]}},"region":{"description":"The region where the bucket is hosted.","enum":["us","eu"]}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}},"required":["url","name","id"],"additionalProperties":false}}},"description":"Bucket created, url is given"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"url":{"type":"string"},"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"}},"required":["error","url","id"],"additionalProperties":false}}},"description":"Bucket already exists, url is given"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete bucket","tags":["buckets"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"summary":"Get bucket details","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions"],"additionalProperties":false}}},"description":"Bucket overview information"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}/settings":{"put":{"summary":"Update bucket settings","tags":["buckets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"anyOf":[{"type":"boolean"},{}]},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"]}}},"required":["cdnRegions"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"private":{"anyOf":[{"type":"boolean"},{"type":"boolean"}]},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}}},"additionalProperties":false}}},"description":"The updated bucket settings."}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}":{"get":{"summary":"List namespace buckets","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"description":"Bucket overview information","type":"object","properties":{"author":{"type":"string"},"id":{"type":"string"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"size":{"description":"The amount of storage used by the bucket in bytes","type":"number"},"totalFiles":{"description":"The total number of files in the bucket","type":"number"},"repoType":{"const":"bucket"},"adminTags":{"type":"array","items":{"type":"string"}},"disabled":{"type":"object","properties":{"reason":{"type":"string"},"hideReadme":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"cdnRegions":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["gcp","aws"]},"region":{"enum":["us","eu"]}},"required":["provider","region"],"additionalProperties":false}},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false}},"required":["author","id","createdAt","updatedAt","size","totalFiles","repoType","cdnRegions"],"additionalProperties":false}}}},"description":"List of buckets"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"},"required":false}]}},"/buckets/{namespace}/{repo}/resolve/{path}":{"get":{"description":"Returns file metadata including size, hash, and links to XET authentication","summary":"Get file metadata","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hash":{"description":"The XET hash of the file","type":"string"},"refreshUrl":{"description":"The XET auth URL for the file","type":"string"},"reconstructionUrl":{"description":"The XET reconstruction URL for the file","type":"string"},"etag":{"description":"The ETag of the file","type":"string"},"size":{"description":"The size of the file","type":"number"},"contentType":{"description":"The content type of the file","type":"string"}},"required":["hash","refreshUrl","reconstructionUrl","etag","size"],"additionalProperties":false}}},"description":"XET file info returned when the Accept header is set to `application/vnd.xet-fileinfo+json`. Otherwise, a 302 redirect is returned."},"302":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}},"description":"Redirection to file on the xet bridge (default when no specific Accept header is set)"},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}},"description":"File path required"},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}},"description":"Bucket or file not found"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"noContentDisposition","in":"query","schema":{},"required":false},{"name":"download","in":"query","schema":{},"required":false},{"name":"Accept","in":"header","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Returns json information about the XET file info","const":"application/vnd.xet-fileinfo+json"}}]}},"/api/buckets/{namespace}/{repo}/batch":{"post":{"description":"Accepts NDJSON (newline-delimited JSON) where each line is an addFile, copyFile, or deleteFile instruction.\nAll add/copy operations must come before all delete operations.\n\nJSON-lines payload:\n```json\n\t'{\"type\":\"addFile\",\"path\":\"...\",\"xetHash\":\"...\",\"mtime\":...,\"mtimeNanos\":...,\"contentType\":\"...\"}' +\n\t'{\"type\":\"copyFile\",\"path\":\"...\",\"xetHash\":\"...\",\"sourceRepoType\":\"...\",\"sourceRepoId\":\"...\",\"mtime\":...,\"mtimeNanos\":...,\"contentType\":\"...\"}' +\n\t'{\"type\":\"deleteFile\",\"path\":\"...\"}'\n```","summary":"Batch file operations","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all operations succeeded","type":"boolean"},"processed":{"description":"Total number of operations attempted","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of successful operations","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"List of failed operations","type":"array","items":{"type":"object","properties":{"path":{"description":"File path that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["path","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Batch operation status"},"422":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"success":{"description":"True if all operations succeeded","type":"boolean"},"processed":{"description":"Total number of operations attempted","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"description":"Number of successful operations","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"description":"List of failed operations","type":"array","items":{"type":"object","properties":{"path":{"description":"File path that failed","type":"string"},"error":{"description":"Error message","type":"string"}},"required":["path","error"],"additionalProperties":false}}},"required":["success","processed","succeeded","failed"],"additionalProperties":false}}},"description":"Batch operation status"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/buckets/{namespace}/{repo}/tree/{path}":{"get":{"summary":"List files","tags":["buckets"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory"]},"path":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"xetHash":{"description":"Not defined for directories","type":"string"},"mtime":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"mtimeNanos":{"description":"Sub-millisecond remainder of mtime, in nanoseconds (0\u2013999_999)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"contentType":{"type":"string"}},"required":["type","path","uploadedAt"],"additionalProperties":false}}}},"description":"List of files and directories","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Pagination link header"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","description":"Wildcard path parameter"}},{"name":"limit","in":"query","schema":{"maximum":5000,"default":1000,"type":"integer","minimum":1},"required":false},{"name":"cursor","in":"query","schema":{"description":"Pagination cursor","type":"string"},"required":false},{"name":"recursive","in":"query","schema":{"description":"When false, returns collapsed directory entries instead of listing all files recursively. The number of entries returned can then be less than the limit, but there will always be a pagination link if there are more entries. Note: non-recursive listing hasn't a strong consistency guarantees.","default":true},"required":false},{"name":"sort","in":"query","schema":{"description":"Sort order. `path` (default) sorts lexicographically; `uploadedAt` sorts by most recent upload first. In recursive mode `uploadedAt` is only supported at the bucket root (no path prefix). In non-recursive mode, only supported at root or exact folder prefixes.","default":"path","enum":["path","uploadedAt"]},"required":false},{"name":"direction","in":"query","schema":{"description":"Sort direction. Defaults to `asc` for `path` and `desc` for `uploadedAt`.","enum":["asc","desc"]},"required":false}]}},"/api/buckets/{namespace}/{repo}/paths-info":{"post":{"summary":"List paths info","tags":["buckets"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paths":{"anyOf":[{"maxItems":2000,"type":"array","items":{"type":"string"}},{"type":"string"}]}},"required":["paths"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"type":{"enum":["file","directory"]},"path":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"xetHash":{"description":"Not defined for directories","type":"string"},"mtime":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"mtimeNanos":{"description":"Sub-millisecond remainder of mtime, in nanoseconds (0\u2013999_999)","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"contentType":{"type":"string"}},"required":["type","path","uploadedAt"],"additionalProperties":false}}}},"description":"List of found files (missing paths are omitted)"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/hardware":{"get":{"description":"Get available job hardware","summary":"Get job hardware","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"prettyName":{"type":"string"},"cpu":{"type":"string"},"ram":{"type":"string"},"ephemeralStorage":{"type":"string"},"accelerator":{"anyOf":[{"type":"object","properties":{"type":{"enum":["gpu","neuron"]},"model":{"type":"string"},"quantity":{"type":"string"},"vram":{"type":"string"},"manufacturer":{"enum":["Nvidia","AWS"]}},"required":["type","model","quantity","vram","manufacturer"],"additionalProperties":false},{"type":"null"}]},"unitCostMicroUSD":{"type":"number"},"unitCostUSD":{"type":"number"},"unitLabel":{"type":"string"}},"required":["name","prettyName","cpu","ram","ephemeralStorage","accelerator","unitCostMicroUSD","unitCostUSD","unitLabel"],"additionalProperties":false}}}},"description":"Available job hardware (public only)"}}}},"/api/jobs/{namespace}":{"get":{"description":"List of jobs for an entity","summary":"List jobs","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}}},"description":"The list of jobs","headers":{"Link":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"},"description":"Link header for pagination, can contain a `rel=\"next\"` link"}}}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"label","in":"query","schema":{"description":"Filter jobs by label. Format: 'key=value' (e.g., 'environment=production'). Repeat the parameter to filter by several labels.","anyOf":[{"description":"Filter jobs by label. Format: 'key=value' (e.g., 'environment=production').","type":"string","pattern":"^[a-zA-Z0-9._-]+=[a-zA-Z0-9._-]*$"},{"type":"array","items":{"description":"Filter jobs by label. Format: 'key=value' (e.g., 'environment=production').","type":"string","pattern":"^[a-zA-Z0-9._-]+=[a-zA-Z0-9._-]*$"}}]},"required":false},{"name":"stage","in":"query","schema":{"description":"Filter jobs by status stage. Repeat the parameter to filter by several stages.","anyOf":[{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},{"type":"array","items":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]}}]},"required":false},{"name":"cursor","in":"query","schema":{"description":"Pagination cursor obtained from the `rel=\"next\"` link of a previous response's `Link` header.","type":"string","maxLength":2048},"required":false}]},"post":{"summary":"Start a job","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"additionalProperties":{"type":"string"}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"arch":{"enum":["amd64","arm64"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"attempts":{"description":"Max number of attempts to make. For example, if you set this to 3, the job will be retried up to 2 times if it fails.","default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the job container.","minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}},"expose":{"description":"Ports to expose publicly through the jobs proxy. Each port is reachable at `https://--.`. Access requires a HF token with read access to the job's namespace, except for ports also listed in `portsPublic`.","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"]},"ssh":{"description":"When `enabled`, the job's container is reachable over SSH at `ssh @ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub.","type":"object","properties":{"enabled":{"default":false,"type":"boolean"}}},"resourceGroupId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["flavor"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job after it has been started"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/count":{"get":{"description":"Count the number of jobs for an entity with optional status stage filter","summary":"Count jobs","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"count":{"type":"number"}},"required":["count"],"additionalProperties":false}}},"description":"The count of jobs matching the filter"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"stage","in":"query","schema":{"anyOf":[{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},{"type":"array","items":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]}}]},"required":false}]}},"/api/jobs/{namespace}/{jobId}":{"get":{"summary":"Get a job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/logs":{"get":{"description":"Stream the logs of a job, using SSE","summary":"Stream job logs","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tail","in":"query","schema":{"description":"Maximum number of lines to return from the logs.","type":"integer","minimum":0,"maximum":9007199254740991},"required":false}]}},"/api/jobs/{namespace}/{jobId}/metrics":{"get":{"description":"Stream the metrics of a job, using SSE","summary":"Stream job metrics","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/events":{"get":{"description":"Stream the events of a job, using SSE","summary":"Stream job events","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/cancel":{"post":{"summary":"Cancel a job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job after it has been canceled"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/duplicate":{"post":{"description":"Duplicate an existing job, re-using its spec","summary":"Duplicate a job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The new job after it has been duplicated"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/labels":{"put":{"description":"Replace user-provided labels on a job","summary":"Update job labels","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"labels":{"description":"The new labels to set on the job. Replaces all existing labels.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}}},"required":["labels"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job after labels have been updated"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/jobs/{namespace}/{jobId}/expose":{"put":{"description":"Replace the exposed ports of a running job, applied live (no re-run). Ports listed in `portsPublic` are reachable without any authentication.","summary":"Update job exposed ports","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job after its exposed ports have been updated"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}":{"post":{"summary":"Create a scheduled job","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}},"command":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"environment":{"default":{},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]+$"},"additionalProperties":{"type":"string"}},"secrets":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z][_a-zA-Z0-9]*$"},"additionalProperties":{"type":"string"}},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"arch":{"enum":["amd64","arm64"]},"timeoutSeconds":{"default":null,"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"attempts":{"description":"Max number of attempts to make. For example, if you set this to 3, the job will be retried up to 2 times if it fails.","default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"labels":{"description":"Labels for the job as key-value pairs. Both keys and values must be max 100 characters and contain only alphanumeric characters, dots, dashes, and underscores.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}},"volumes":{"description":"HuggingFace Buckets or Repos to mount as volumes in the job container.","minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["bucket","model","dataset","space"]},"source":{"description":"Source identifier, e.g. 'username/my-bucket' or 'username/my-model'","type":"string"},"mountPath":{"description":"Mount path inside the container, e.g. '/data'","type":"string","pattern":"^\\/.*"},"revision":{"description":"Git revision (only for repos, defaults to 'main')","type":"string"},"readOnly":{"description":"Read-only mount (true for repos, false default for buckets)","type":"boolean"},"path":{"description":"Subfolder prefix inside the bucket/repo to mount, e.g. 'path/to/dir'","type":"string"}},"required":["type","source","mountPath"]}},"expose":{"description":"Ports to expose publicly through the jobs proxy. Each port is reachable at `https://--.`. Access requires a HF token with read access to the job's namespace, except for ports also listed in `portsPublic`.","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"]},"ssh":{"description":"When `enabled`, the job's container is reachable over SSH at `ssh @ssh.hf.jobs`. Only the job's owner is allowed in, authenticated by an SSH public key registered on the Hub.","type":"object","properties":{"enabled":{"default":false,"type":"boolean"}}},"resourceGroupId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-fA-F]{24}$"}},"required":["flavor"]},"schedule":{"description":"CRON schedule expression (e.g., '0 9 * * 1' for 9 AM every Monday).","type":"string","pattern":"^(?:(@(annually|yearly|monthly|weekly|daily|hourly))|((((\\d+,)+\\d+|((\\*|\\d+)(\\/|-)\\d+)|\\d+|\\*) ?){5,7}))$"},"suspend":{"description":"Whether the scheduled job is suspended (paused)","default":false,"type":"boolean"},"concurrency":{"description":"Whether multiple instances of this job can run concurrently","default":false,"type":"boolean"}},"required":["jobSpec","schedule"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}},"description":"The scheduled job data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"description":"List scheduled jobs for an entity","summary":"List scheduled jobs","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}}},"description":"Array of scheduled job data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"label","in":"query","schema":{"description":"Filter scheduled jobs by label. Format: 'key=value' (e.g., 'environment=production').","type":"string","pattern":"^[a-zA-Z0-9._-]+=[a-zA-Z0-9._-]*$"},"required":false}]}},"/api/scheduled-jobs/{namespace}/{jobId}":{"get":{"summary":"Get a scheduled job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}},"description":"The scheduled job data"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Delete a scheduled job","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/suspend":{"post":{"summary":"Suspend a scheduled job","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/resume":{"post":{"summary":"Resume a scheduled job","tags":["jobs"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/run":{"post":{"description":"Trigger a scheduled job run. Trigger a scheduled job to run immediately. Throws an error if an instance is already running and job spec does not allow concurrent runs.","summary":"Run job","tags":["jobs"],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"type":{"const":"job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"initiator":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"type":{"enum":["user","org"]},"avatarUrl":{"type":"string"}},"required":["id","name","type","avatarUrl"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"scheduled-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"duplicated-job"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"const":"webhook"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}]},"status":{"type":"object","properties":{"stage":{"enum":["COMPLETED","CANCELED","ERROR","DELETED","RUNNING","SCHEDULING"]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"enum":["NO_CREDITS","NO_SUBSCRIPTION"]},{"type":"string"}]},"failureCount":{"type":"number"},"exposeUrls":{"description":"One reachable URL per port declared in `expose.ports`, in the same order (e.g. `https://--8000.hf.jobs`). Absent when the job is not exposed.","type":"array","items":{"type":"string"}},"sshUrl":{"description":"SSH endpoint for the job (e.g. `ssh://@ssh.hf.jobs`). Only present when `ssh.enabled`.","type":"string"}},"required":["stage","message"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["id","createdAt","environment","flavor","createdBy","type","owner","status"],"additionalProperties":false}}},"description":"The job that was triggered"},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"const":"Another job is already running at the same time, set `concurrency` to allow multiple instances of scheduled jobs to run concurrently"}},"required":["error"],"additionalProperties":false}}},"description":"Another instance is already running, job was not triggered"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/schedule":{"post":{"summary":"Update job schedule","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schedule":{"description":"CRON schedule expression (e.g., '0 9 * * 1' for 9 AM every Monday).","type":"string","pattern":"^(?:(@(annually|yearly|monthly|weekly|daily|hourly))|((((\\d+,)+\\d+|((\\*|\\d+)(\\/|-)\\d+)|\\d+|\\*) ?){5,7}))$"}},"required":["schedule"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}},"description":"The updated scheduled job"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/scheduled-jobs/{namespace}/{jobId}/labels":{"put":{"description":"Replace user-provided labels on a scheduled job","summary":"Update scheduled job labels","tags":["jobs"],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"labels":{"description":"The new labels to set on the job. Replaces all existing labels.","type":"object","propertyNames":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"additionalProperties":{"type":"string","maxLength":100,"pattern":"^[a-zA-Z0-9._-]*$"}}},"required":["labels"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"schedule":{"type":"string"},"suspend":{"type":"boolean"},"suspendReason":{"type":"string"},"concurrency":{"type":"boolean"},"status":{"type":"object","properties":{"lastJob":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["id","at"],"additionalProperties":false},{"type":"null"}]},"nextJobRunAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"}},"required":["lastJob","nextJobRunAt"],"additionalProperties":false},"type":{"const":"scheduled-job"},"owner":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"initiator":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"type":{"enum":["user","org"]}},"required":["id","name","avatarUrl","type"],"additionalProperties":false},"jobSpec":{"type":"object","properties":{"spaceId":{"type":"string"},"dockerImage":{"type":"string"},"timeout":{"type":"number"},"environment":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"command":{"type":"array","items":{"type":"string"}},"arguments":{"type":"array","items":{"type":"string"}},"arch":{"enum":["amd64","arm64"]},"flavor":{"enum":["cpu-basic","cpu-upgrade","cpu-performance","cpu-xl","sprx8","zero-a10g","t4-small","t4-medium","l4x1","l4x4","l40sx1","l40sx4","l40sx8","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","a100x4","a100x8","h200","h200x2","h200x4","h200x8","rtx-pro-6000","rtx-pro-6000x2","rtx-pro-6000x4","rtx-pro-6000x8","inf2x6"]},"resourceGroupId":{"type":"string"},"retry":{"type":"number"},"startedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"finishedAt":{"type":"string","format":"date-time","pattern":"^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d+)?(Z)$"},"durations":{"type":"object","properties":{"schedulingSecs":{"type":"number"},"runningSecs":{"type":"number"},"totalSecs":{"type":"number"}},"additionalProperties":false},"volumes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"source":{"type":"string"},"mountPath":{"type":"string"},"revision":{"type":"string"},"readOnly":{"type":"boolean"},"path":{"type":"string"}},"required":["type","source","mountPath"],"additionalProperties":false}},"expose":{"description":"Ports exposed through the jobs proxy (see `status.exposeUrls` for the reachable URLs).","type":"object","properties":{"ports":{"maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"portsPublic":{"description":"Subset of `ports` reachable without any authentication.","maxItems":20,"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}}},"required":["ports"],"additionalProperties":false},"resourceGroup":{"type":"object","properties":{"id":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"name":{"type":"string"},"numUsers":{"type":"number"}},"required":["id","name"],"additionalProperties":false},"secrets":{"type":"array","items":{"type":"string"}},"labels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"hfToken":{"type":"object","properties":{"ownerName":{"type":"string"},"orgName":{"type":"string"},"tokenRole":{"enum":["read","write","fineGrained"]},"tokenId":{"type":"string","minLength":24,"maxLength":24,"pattern":"^[0-9a-f]{24}$"},"settingsUrl":{"type":"string"}},"required":["ownerName"],"additionalProperties":false}},"required":["environment","flavor"],"additionalProperties":false}},"required":["id","createdAt","schedule","suspend","concurrency","status","type","owner","jobSpec"],"additionalProperties":false}}},"description":"The scheduled job after labels have been updated"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}]}}}} \ No newline at end of file