From ca4213101f258036238a1d2cdea86ee9c1c6092d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 20 Oct 2026 14:09:10 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../LabelStudio.ILabels2Client.Update2.g.cs | 6 --- ...latesClient.ApiProjectTemplatesUpdate.g.cs | 4 -- ...Studio.IProjectTemplatesClient.Create.g.cs | 4 -- ...Studio.IProjectTemplatesClient.Update.g.cs | 4 -- ...o.JsonConverters.MaybeExpandedComment.g.cs | 16 +++++++ .../LabelStudio.JsonConverters.OneOf2.g.cs | 16 +++++++ .../LabelStudio.JsonConverters.OneOf6.g.cs | 48 +++++++++++++++++++ ...elStudio.JsonConverters.RoleBasedTask.g.cs | 24 ++++++++++ .../LabelStudio.Labels2Client.Update2.g.cs | 8 ---- .../Generated/LabelStudio.Models.Label.g.cs | 28 ++++++----- ...abelStudio.Models.PatchedLabelRequest.g.cs | 20 -------- ....Models.PatchedProjectTemplateRequest.g.cs | 18 ------- .../LabelStudio.Models.ProjectTemplate.g.cs | 12 +++-- ...lStudio.Models.ProjectTemplateRequest.g.cs | 18 ------- ...latesClient.ApiProjectTemplatesUpdate.g.cs | 6 --- ...lStudio.ProjectTemplatesClient.Create.g.cs | 6 --- ...lStudio.ProjectTemplatesClient.Update.g.cs | 6 --- src/libs/LabelStudio/openapi.yaml | 23 +++------ 18 files changed, 134 insertions(+), 133 deletions(-) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILabels2Client.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILabels2Client.Update2.g.cs index 2d87a033..a911fa8b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILabels2Client.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILabels2Client.Update2.g.cs @@ -45,13 +45,9 @@ public partial interface ILabels2Client /// /// User who approved this label /// - /// - /// User who made this label - /// /// /// Label description /// - /// /// /// Label title /// @@ -65,9 +61,7 @@ public partial interface ILabels2Client int id, bool? approved = default, int? approvedBy = default, - int? createdBy = default, string? description = default, - int? organization = default, string? title = default, object? value = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs index 9d0f5a2f..0ba62047 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs @@ -60,13 +60,11 @@ public partial interface IProjectTemplatesClient /// /// general dict serialized assignment settings /// - /// /// /// custom script (Plugin) for projects created from this template /// /// /// - /// /// /// Included only in requests /// @@ -88,10 +86,8 @@ public partial interface IProjectTemplatesClient int id, string name, object? assignmentSettings = default, - int? createdBy = default, string? customScript = default, string? description = default, - int? organization = default, int? projectId = default, object? projectSettings = default, bool? requireCommentOnSkip = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.Create.g.cs index 623fc46e..fe168f78 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.Create.g.cs @@ -55,13 +55,11 @@ public partial interface IProjectTemplatesClient /// /// general dict serialized assignment settings /// - /// /// /// custom script (Plugin) for projects created from this template /// /// /// - /// /// /// Included only in requests /// @@ -82,10 +80,8 @@ public partial interface IProjectTemplatesClient global::System.Threading.Tasks.Task CreateAsync( string name, object? assignmentSettings = default, - int? createdBy = default, string? customScript = default, string? description = default, - int? organization = default, int? projectId = default, object? projectSettings = default, bool? requireCommentOnSkip = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.Update.g.cs index 651b890f..66f2841e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectTemplatesClient.Update.g.cs @@ -60,13 +60,11 @@ public partial interface IProjectTemplatesClient /// /// general dict serialized assignment settings /// - /// /// /// custom script (Plugin) for projects created from this template /// /// /// - /// /// /// Included only in requests /// @@ -87,11 +85,9 @@ public partial interface IProjectTemplatesClient global::System.Threading.Tasks.Task UpdateAsync( int id, object? assignmentSettings = default, - int? createdBy = default, string? customScript = default, string? description = default, string? name = default, - int? organization = default, int? projectId = default, object? projectSettings = default, bool? requireCommentOnSkip = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.MaybeExpandedComment.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.MaybeExpandedComment.g.cs index 42754012..5f9d8db1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.MaybeExpandedComment.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.MaybeExpandedComment.g.cs @@ -105,6 +105,10 @@ public class MaybeExpandedCommentJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 1) { @@ -120,6 +124,10 @@ public class MaybeExpandedCommentJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } } @@ -138,6 +146,10 @@ public class MaybeExpandedCommentJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (comment == null && serializerWithUser == null) @@ -155,6 +167,10 @@ public class MaybeExpandedCommentJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } var __value = new global::LabelStudio.MaybeExpandedComment( diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf2.g.cs index 43885371..eecfc97c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf2.g.cs @@ -72,6 +72,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 1) @@ -89,6 +93,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } } @@ -107,6 +115,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (value1 == null && value2 == null) @@ -124,6 +136,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } var __value = new global::LabelStudio.OneOf( diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf6.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf6.g.cs index dfad5ec3..ab85392d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf6.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.OneOf6.g.cs @@ -124,6 +124,10 @@ public class OneOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 1) @@ -141,6 +145,10 @@ public class OneOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 2) @@ -158,6 +166,10 @@ public class OneOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 3) @@ -175,6 +187,10 @@ public class OneOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 4) @@ -192,6 +208,10 @@ public class OneOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 5) @@ -209,6 +229,10 @@ public class OneOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } } @@ -227,6 +251,10 @@ public class OneOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) @@ -244,6 +272,10 @@ public class OneOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) @@ -261,6 +293,10 @@ public class OneOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) @@ -278,6 +314,10 @@ public class OneOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) @@ -295,6 +335,10 @@ public class OneOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) @@ -312,6 +356,10 @@ public class OneOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } var __value = new global::LabelStudio.OneOf( diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.RoleBasedTask.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.RoleBasedTask.g.cs index 4d5287c7..aacb0605 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.RoleBasedTask.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.RoleBasedTask.g.cs @@ -172,6 +172,10 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 1) { @@ -187,6 +191,10 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 2) { @@ -202,6 +210,10 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } } @@ -220,6 +232,10 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (lse == null && lseSerializerForReviewers == null && lseSerializerForAnnotators == null) @@ -237,6 +253,10 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (lse == null && lseSerializerForReviewers == null && lseSerializerForAnnotators == null) @@ -254,6 +274,10 @@ public class RoleBasedTaskJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } var __value = new global::LabelStudio.RoleBasedTask( diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Update2.g.cs index 27737128..c49f5a2a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Update2.g.cs @@ -453,13 +453,9 @@ partial void ProcessUpdate2ResponseContent( /// /// User who approved this label /// - /// - /// User who made this label - /// /// /// Label description /// - /// /// /// Label title /// @@ -473,9 +469,7 @@ partial void ProcessUpdate2ResponseContent( int id, bool? approved = default, int? approvedBy = default, - int? createdBy = default, string? description = default, - int? organization = default, string? title = default, object? value = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, @@ -485,9 +479,7 @@ partial void ProcessUpdate2ResponseContent( { Approved = approved, ApprovedBy = approvedBy, - CreatedBy = createdBy, Description = description, - Organization = organization, Title = title, Value = value, }; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.Label.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.Label.g.cs index 73725831..91d640d8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.Label.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.Label.g.cs @@ -32,11 +32,12 @@ public sealed partial class Label public global::System.DateTime CreatedAt { get; set; } = default!; /// - /// User who made this label + /// User who made this label
+ /// Included only in responses ///
+ /// default! [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int CreatedBy { get; set; } + public int CreatedBy { get; set; } = default!; /// /// Label description @@ -59,11 +60,11 @@ public sealed partial class Label public global::System.Collections.Generic.IList Links { get; set; } = default!; /// - /// + /// Included only in responses /// + /// default! [global::System.Text.Json.Serialization.JsonPropertyName("organization")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Organization { get; set; } + public int Organization { get; set; } = default!; /// /// Included only in responses @@ -103,10 +104,6 @@ public sealed partial class Label /// /// Initializes a new instance of the class. /// - /// - /// User who made this label - /// - /// /// /// Label title /// @@ -126,12 +123,19 @@ public sealed partial class Label /// Time of label creation
/// Included only in responses /// + /// + /// User who made this label
+ /// Included only in responses + /// /// /// Included only in responses /// /// /// Included only in responses /// + /// + /// Included only in responses + /// /// /// Included only in responses /// @@ -143,16 +147,16 @@ public sealed partial class Label [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Label( - int createdBy, - int organization, string title, object value, bool? approved, int? approvedBy, string? description, global::System.DateTime createdAt = default!, + int createdBy = default!, int id = default!, global::System.Collections.Generic.IList links = default!, + int organization = default!, global::System.Collections.Generic.IList projects = default!, global::System.DateTime updatedAt = default!) { diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLabelRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLabelRequest.g.cs index 460a4324..4eb68e7b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLabelRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLabelRequest.g.cs @@ -23,24 +23,12 @@ public sealed partial class PatchedLabelRequest [global::System.Text.Json.Serialization.JsonPropertyName("approved_by")] public int? ApprovedBy { get; set; } - /// - /// User who made this label - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] - public int? CreatedBy { get; set; } - /// /// Label description /// [global::System.Text.Json.Serialization.JsonPropertyName("description")] public string? Description { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("organization")] - public int? Organization { get; set; } - /// /// Label title /// @@ -68,13 +56,9 @@ public sealed partial class PatchedLabelRequest /// /// User who approved this label /// - /// - /// User who made this label - /// /// /// Label description /// - /// /// /// Label title /// @@ -87,17 +71,13 @@ public sealed partial class PatchedLabelRequest public PatchedLabelRequest( bool? approved, int? approvedBy, - int? createdBy, string? description, - int? organization, string? title, object? value) { this.Approved = approved; this.ApprovedBy = approvedBy; - this.CreatedBy = createdBy; this.Description = description; - this.Organization = organization; this.Title = title; this.Value = value; } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedProjectTemplateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedProjectTemplateRequest.g.cs index 61c65cea..6faa12e3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedProjectTemplateRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedProjectTemplateRequest.g.cs @@ -14,12 +14,6 @@ public sealed partial class PatchedProjectTemplateRequest [global::System.Text.Json.Serialization.JsonPropertyName("assignment_settings")] public object? AssignmentSettings { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] - public int? CreatedBy { get; set; } - /// /// custom script (Plugin) for projects created from this template /// @@ -38,12 +32,6 @@ public sealed partial class PatchedProjectTemplateRequest [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("organization")] - public int? Organization { get; set; } - /// /// Included only in requests /// @@ -92,13 +80,11 @@ public sealed partial class PatchedProjectTemplateRequest /// /// general dict serialized assignment settings /// - /// /// /// custom script (Plugin) for projects created from this template /// /// /// - /// /// /// Included only in requests /// @@ -118,11 +104,9 @@ public sealed partial class PatchedProjectTemplateRequest #endif public PatchedProjectTemplateRequest( object? assignmentSettings, - int? createdBy, string? customScript, string? description, string? name, - int? organization, int? projectId, object? projectSettings, bool? requireCommentOnSkip, @@ -131,11 +115,9 @@ public PatchedProjectTemplateRequest( object? tags) { this.AssignmentSettings = assignmentSettings; - this.CreatedBy = createdBy; this.CustomScript = customScript; this.Description = description; this.Name = name; - this.Organization = organization; this.ProjectId = projectId; this.ProjectSettings = projectSettings; this.RequireCommentOnSkip = requireCommentOnSkip; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectTemplate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectTemplate.g.cs index 9cc42310..5a44096f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectTemplate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectTemplate.g.cs @@ -22,7 +22,7 @@ public sealed partial class ProjectTemplate public global::System.DateTime CreatedAt { get; set; } = default!; /// - /// + /// Included only in responses /// [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] public int? CreatedBy { get; set; } @@ -54,7 +54,7 @@ public sealed partial class ProjectTemplate public required string Name { get; set; } /// - /// + /// Included only in responses /// [global::System.Text.Json.Serialization.JsonPropertyName("organization")] public int? Organization { get; set; } @@ -109,12 +109,16 @@ public sealed partial class ProjectTemplate /// /// general dict serialized assignment settings /// - /// + /// + /// Included only in responses + /// /// /// custom script (Plugin) for projects created from this template /// /// - /// + /// + /// Included only in responses + /// /// /// general dict serialized project settings /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectTemplateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectTemplateRequest.g.cs index 43370c13..5c7f60ff 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectTemplateRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectTemplateRequest.g.cs @@ -14,12 +14,6 @@ public sealed partial class ProjectTemplateRequest [global::System.Text.Json.Serialization.JsonPropertyName("assignment_settings")] public object? AssignmentSettings { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] - public int? CreatedBy { get; set; } - /// /// custom script (Plugin) for projects created from this template /// @@ -39,12 +33,6 @@ public sealed partial class ProjectTemplateRequest [global::System.Text.Json.Serialization.JsonRequired] public required string Name { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("organization")] - public int? Organization { get; set; } - /// /// Included only in requests /// @@ -94,12 +82,10 @@ public sealed partial class ProjectTemplateRequest /// /// general dict serialized assignment settings /// - /// /// /// custom script (Plugin) for projects created from this template /// /// - /// /// /// Included only in requests /// @@ -120,10 +106,8 @@ public sealed partial class ProjectTemplateRequest public ProjectTemplateRequest( string name, object? assignmentSettings, - int? createdBy, string? customScript, string? description, - int? organization, int? projectId, object? projectSettings, bool? requireCommentOnSkip, @@ -132,11 +116,9 @@ public ProjectTemplateRequest( object? tags) { this.AssignmentSettings = assignmentSettings; - this.CreatedBy = createdBy; this.CustomScript = customScript; this.Description = description; this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Organization = organization; this.ProjectId = projectId; this.ProjectSettings = projectSettings; this.RequireCommentOnSkip = requireCommentOnSkip; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs index df781326..8fceae6d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs @@ -468,13 +468,11 @@ partial void ProcessApiProjectTemplatesUpdateResponseContent( /// /// general dict serialized assignment settings /// - /// /// /// custom script (Plugin) for projects created from this template /// /// /// - /// /// /// Included only in requests /// @@ -496,10 +494,8 @@ partial void ProcessApiProjectTemplatesUpdateResponseContent( int id, string name, object? assignmentSettings = default, - int? createdBy = default, string? customScript = default, string? description = default, - int? organization = default, int? projectId = default, object? projectSettings = default, bool? requireCommentOnSkip = default, @@ -512,11 +508,9 @@ partial void ProcessApiProjectTemplatesUpdateResponseContent( var __request = new global::LabelStudio.ProjectTemplateRequest { AssignmentSettings = assignmentSettings, - CreatedBy = createdBy, CustomScript = customScript, Description = description, Name = name, - Organization = organization, ProjectId = projectId, ProjectSettings = projectSettings, RequireCommentOnSkip = requireCommentOnSkip, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Create.g.cs index 64d21675..9007e6e1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Create.g.cs @@ -458,13 +458,11 @@ partial void ProcessCreateResponseContent( /// /// general dict serialized assignment settings /// - /// /// /// custom script (Plugin) for projects created from this template /// /// /// - /// /// /// Included only in requests /// @@ -485,10 +483,8 @@ partial void ProcessCreateResponseContent( public async global::System.Threading.Tasks.Task CreateAsync( string name, object? assignmentSettings = default, - int? createdBy = default, string? customScript = default, string? description = default, - int? organization = default, int? projectId = default, object? projectSettings = default, bool? requireCommentOnSkip = default, @@ -501,11 +497,9 @@ partial void ProcessCreateResponseContent( var __request = new global::LabelStudio.ProjectTemplateRequest { AssignmentSettings = assignmentSettings, - CreatedBy = createdBy, CustomScript = customScript, Description = description, Name = name, - Organization = organization, ProjectId = projectId, ProjectSettings = projectSettings, RequireCommentOnSkip = requireCommentOnSkip, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Update.g.cs index 1403ce7d..b04d4740 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Update.g.cs @@ -468,13 +468,11 @@ partial void ProcessUpdateResponseContent( /// /// general dict serialized assignment settings /// - /// /// /// custom script (Plugin) for projects created from this template /// /// /// - /// /// /// Included only in requests /// @@ -495,11 +493,9 @@ partial void ProcessUpdateResponseContent( public async global::System.Threading.Tasks.Task UpdateAsync( int id, object? assignmentSettings = default, - int? createdBy = default, string? customScript = default, string? description = default, string? name = default, - int? organization = default, int? projectId = default, object? projectSettings = default, bool? requireCommentOnSkip = default, @@ -512,11 +508,9 @@ partial void ProcessUpdateResponseContent( var __request = new global::LabelStudio.PatchedProjectTemplateRequest { AssignmentSettings = assignmentSettings, - CreatedBy = createdBy, CustomScript = customScript, Description = description, Name = name, - Organization = organization, ProjectId = projectId, ProjectSettings = projectSettings, RequireCommentOnSkip = requireCommentOnSkip, diff --git a/src/libs/LabelStudio/openapi.yaml b/src/libs/LabelStudio/openapi.yaml index 9846cffe..00cd7765 100644 --- a/src/libs/LabelStudio/openapi.yaml +++ b/src/libs/LabelStudio/openapi.yaml @@ -32570,6 +32570,7 @@ components: type: string created_by: description: User who made this label + readOnly: true type: integer description: description: Label description @@ -32584,6 +32585,7 @@ components: readOnly: true type: array organization: + readOnly: true type: integer projects: items: @@ -41536,15 +41538,10 @@ components: description: User who approved this label nullable: true type: integer - created_by: - description: User who made this label - type: integer description: description: Label description nullable: true type: string - organization: - type: integer title: description: Label title maxLength: 2048 @@ -42757,9 +42754,6 @@ components: properties: assignment_settings: description: general dict serialized assignment settings - created_by: - nullable: true - type: integer custom_script: description: custom script (Plugin) for projects created from this template minLength: 1 @@ -42773,9 +42767,6 @@ components: maxLength: 1000 minLength: 1 type: string - organization: - nullable: true - type: integer project_id: type: integer writeOnly: true @@ -44669,6 +44660,7 @@ components: type: string created_by: nullable: true + readOnly: true type: integer custom_script: description: custom script (Plugin) for projects created from this template @@ -44685,6 +44677,7 @@ components: type: string organization: nullable: true + readOnly: true type: integer project_settings: description: general dict serialized project settings @@ -44703,17 +44696,16 @@ components: type: string required: - created_at + - created_by - id - name + - organization - updated_at type: object ProjectTemplateRequest: properties: assignment_settings: description: general dict serialized assignment settings - created_by: - nullable: true - type: integer custom_script: description: custom script (Plugin) for projects created from this template minLength: 1 @@ -44727,9 +44719,6 @@ components: maxLength: 1000 minLength: 1 type: string - organization: - nullable: true - type: integer project_id: type: integer writeOnly: true