diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberList.g.cs index 1952119..89f81a7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberList.g.cs @@ -27,6 +27,13 @@ public sealed partial class LseOrganizationMemberList [global::System.Text.Json.Serialization.JsonPropertyName("created_projects")] public global::System.Collections.Generic.IList? CreatedProjects { get; set; } + /// + /// Per-member Flex claim/window state for Members UI (FIT-2339).
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("flex")] + public object? Flex { get; set; } + /// /// Included only in responses /// @@ -105,6 +112,10 @@ public sealed partial class LseOrganizationMemberList /// /// Included only in responses /// + /// + /// Per-member Flex claim/window state for Members UI (FIT-2339).
+ /// Included only in responses + /// /// /// Included only in responses /// @@ -129,6 +140,7 @@ public LseOrganizationMemberList( object? concurrency, global::System.Collections.Generic.IList? contributedToProjects, global::System.Collections.Generic.IList? createdProjects, + object? flex, string? userType, int id = default!, string role = default!, @@ -138,6 +150,7 @@ public LseOrganizationMemberList( this.Concurrency = concurrency; this.ContributedToProjects = contributedToProjects; this.CreatedProjects = createdProjects; + this.Flex = flex; this.Id = id; this.Organization = organization; this.Role = role; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberListFlex.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberListFlex.Json.g.cs new file mode 100644 index 0000000..3cfaba7 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberListFlex.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseOrganizationMemberListFlex + { + /// + /// 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::LabelStudio.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::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseOrganizationMemberListFlex? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseOrganizationMemberListFlex), + jsonSerializerContext) as global::LabelStudio.LseOrganizationMemberListFlex; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.LseOrganizationMemberListFlex? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.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::LabelStudio.LseOrganizationMemberListFlex? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.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::LabelStudio.LseOrganizationMemberListFlex), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseOrganizationMemberListFlex; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.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::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberListFlex.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberListFlex.g.cs new file mode 100644 index 0000000..9f4edb2 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberListFlex.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Per-member Flex claim/window state for Members UI (FIT-2339).
+ /// Included only in responses + ///
+ public sealed partial class LseOrganizationMemberListFlex + { + + /// + /// 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/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberListFlex2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberListFlex2.Json.g.cs new file mode 100644 index 0000000..0d64449 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberListFlex2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseOrganizationMemberListFlex2 + { + /// + /// 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::LabelStudio.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::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseOrganizationMemberListFlex2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseOrganizationMemberListFlex2), + jsonSerializerContext) as global::LabelStudio.LseOrganizationMemberListFlex2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.LseOrganizationMemberListFlex2? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.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::LabelStudio.LseOrganizationMemberListFlex2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.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::LabelStudio.LseOrganizationMemberListFlex2), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseOrganizationMemberListFlex2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.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::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberListFlex2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberListFlex2.g.cs new file mode 100644 index 0000000..c86f854 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberListFlex2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class LseOrganizationMemberListFlex2 + { + + /// + /// 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/LabelStudio/Generated/LabelStudio.Models.OrganizationMembership.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembership.g.cs index e73d06e..1e18807 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembership.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembership.g.cs @@ -15,6 +15,13 @@ public sealed partial class OrganizationMembership [global::System.Text.Json.Serialization.JsonPropertyName("active")] public bool Active { get; set; } = default!; + /// + /// Flex claim/window state for FE expired-seat UX (FIT-2339). Non-Flex → null.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("flex")] + public object? Flex { get; set; } + /// /// Organization ID
/// Included only in responses @@ -30,6 +37,12 @@ public sealed partial class OrganizationMembership [global::System.Text.Json.Serialization.JsonRequired] public required string Role { get; set; } + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("user_type")] + public string? UserType { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -40,6 +53,13 @@ public sealed partial class OrganizationMembership /// Initializes a new instance of the class. ///
/// + /// + /// Flex claim/window state for FE expired-seat UX (FIT-2339). Non-Flex → null.
+ /// Included only in responses + /// + /// + /// Included only in responses + /// /// /// Included only in responses /// @@ -52,12 +72,16 @@ public sealed partial class OrganizationMembership #endif public OrganizationMembership( string role, + object? flex, + string? userType, bool active = default!, int organizationId = default!) { this.Active = active; + this.Flex = flex; this.OrganizationId = organizationId; this.Role = role ?? throw new global::System.ArgumentNullException(nameof(role)); + this.UserType = userType; } /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembershipFlex.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembershipFlex.Json.g.cs new file mode 100644 index 0000000..c3b6d2a --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembershipFlex.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class OrganizationMembershipFlex + { + /// + /// 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::LabelStudio.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::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.OrganizationMembershipFlex? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.OrganizationMembershipFlex), + jsonSerializerContext) as global::LabelStudio.OrganizationMembershipFlex; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.OrganizationMembershipFlex? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.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::LabelStudio.OrganizationMembershipFlex? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.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::LabelStudio.OrganizationMembershipFlex), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.OrganizationMembershipFlex; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.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::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembershipFlex.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembershipFlex.g.cs new file mode 100644 index 0000000..79a71e6 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembershipFlex.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Flex claim/window state for FE expired-seat UX (FIT-2339). Non-Flex → null.
+ /// Included only in responses + ///
+ public sealed partial class OrganizationMembershipFlex + { + + /// + /// 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/LabelStudio/Generated/LabelStudio.Models.OrganizationMembershipFlex2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembershipFlex2.Json.g.cs new file mode 100644 index 0000000..78ac997 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembershipFlex2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class OrganizationMembershipFlex2 + { + /// + /// 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::LabelStudio.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::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.OrganizationMembershipFlex2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.OrganizationMembershipFlex2), + jsonSerializerContext) as global::LabelStudio.OrganizationMembershipFlex2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.OrganizationMembershipFlex2? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.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::LabelStudio.OrganizationMembershipFlex2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.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::LabelStudio.OrganizationMembershipFlex2), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.OrganizationMembershipFlex2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.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::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembershipFlex2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembershipFlex2.g.cs new file mode 100644 index 0000000..3d96d15 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.OrganizationMembershipFlex2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class OrganizationMembershipFlex2 + { + + /// + /// 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/LabelStudio/openapi.yaml b/src/libs/LabelStudio/openapi.yaml index 6eee1c1..edba4bb 100644 --- a/src/libs/LabelStudio/openapi.yaml +++ b/src/libs/LabelStudio/openapi.yaml @@ -34565,6 +34565,12 @@ components: nullable: true readOnly: true type: array + flex: + additionalProperties: {} + description: Per-member Flex claim/window state for Members UI (FIT-2339). + nullable: true + readOnly: true + type: object id: readOnly: true type: integer @@ -34592,6 +34598,7 @@ components: - concurrency - contributed_to_projects - created_projects + - flex - id - organization - role @@ -38414,16 +38421,28 @@ components: active: readOnly: true type: boolean + flex: + additionalProperties: {} + description: Flex claim/window state for FE expired-seat UX (FIT-2339). Non-Flex → null. + nullable: true + readOnly: true + type: object organization_id: description: Organization ID readOnly: true type: integer role: type: string + user_type: + nullable: true + readOnly: true + type: string required: - active + - flex - organization_id - role + - user_type type: object OrganizationMembershipRequest: properties: