diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUser.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUser.g.cs index 19c2c4e..a722664 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUser.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUser.g.cs @@ -133,6 +133,13 @@ public sealed partial class WhoAmIUser [global::System.Text.Json.Serialization.JsonPropertyName("phone")] public string? Phone { get; set; } + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("social_accounts")] + public global::System.Collections.Generic.IList SocialAccounts { get; set; } = default!; + /// /// /// @@ -190,6 +197,9 @@ public sealed partial class WhoAmIUser /// /// Included only in responses /// + /// + /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -211,7 +221,8 @@ public WhoAmIUser( global::LabelStudio.WhoAmILseFields lseFields = default!, global::LabelStudio.OrganizationMembership organizationMembership = default!, string pause = default!, - global::System.Collections.Generic.IList permissions = default!) + global::System.Collections.Generic.IList permissions = default!, + global::System.Collections.Generic.IList socialAccounts = default!) { this.ActiveOrganization = activeOrganization; this.ActiveOrganizationMeta = activeOrganizationMeta; @@ -230,6 +241,7 @@ public WhoAmIUser( this.Pause = pause; this.Permissions = permissions; this.Phone = phone; + this.SocialAccounts = socialAccounts; this.Username = username ?? throw new global::System.ArgumentNullException(nameof(username)); } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUserSocialAccount.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUserSocialAccount.Json.g.cs new file mode 100644 index 0000000..9ac6093 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUserSocialAccount.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class WhoAmIUserSocialAccount + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.WhoAmIUserSocialAccount? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.WhoAmIUserSocialAccount), + jsonSerializerContext) as global::LabelStudio.WhoAmIUserSocialAccount; + } + + /// + /// 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.WhoAmIUserSocialAccount? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.WhoAmIUserSocialAccount), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.WhoAmIUserSocialAccount; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUserSocialAccount.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUserSocialAccount.g.cs new file mode 100644 index 0000000..d16f8d9 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUserSocialAccount.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class WhoAmIUserSocialAccount + { + + /// + /// 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.WhoAmIUserSocialAccount2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUserSocialAccount2.Json.g.cs new file mode 100644 index 0000000..48962b7 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUserSocialAccount2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class WhoAmIUserSocialAccount2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.WhoAmIUserSocialAccount2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.WhoAmIUserSocialAccount2), + jsonSerializerContext) as global::LabelStudio.WhoAmIUserSocialAccount2; + } + + /// + /// 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.WhoAmIUserSocialAccount2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.WhoAmIUserSocialAccount2), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.WhoAmIUserSocialAccount2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUserSocialAccount2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUserSocialAccount2.g.cs new file mode 100644 index 0000000..c5a406b --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.WhoAmIUserSocialAccount2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class WhoAmIUserSocialAccount2 + { + + /// + /// 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.OptionsSupport.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OptionsSupport.g.cs index ca2d712..f51002e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OptionsSupport.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OptionsSupport.g.cs @@ -381,7 +381,7 @@ internal static string AppendQueryParameters( } var builder = new global::System.Text.StringBuilder(path ?? string.Empty); - var hasQuery = builder.ToString().Contains("?", global::System.StringComparison.Ordinal); + var hasQuery = builder.ToString().IndexOf("?", global::System.StringComparison.Ordinal) >= 0; AppendParameters(builder, clientParameters, ref hasQuery); AppendParameters(builder, requestParameters, ref hasQuery); return builder.ToString(); diff --git a/src/libs/LabelStudio/openapi.yaml b/src/libs/LabelStudio/openapi.yaml index 7b64806..81ae453 100644 --- a/src/libs/LabelStudio/openapi.yaml +++ b/src/libs/LabelStudio/openapi.yaml @@ -39829,6 +39829,12 @@ components: phone: maxLength: 256 type: string + social_accounts: + items: + additionalProperties: {} + type: object + readOnly: true + type: array username: maxLength: 256 type: string @@ -39843,6 +39849,7 @@ components: - organization_membership - pause - permissions + - social_accounts - username type: object Workspace: