From c76b97420e02f36aa9f8e292439768d4df5715ad Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 25 Apr 2026 13:07:32 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...OrganizationsClient.UpdateDefaultRole.g.cs | 12 +++++++ .../LabelStudio.Models.DefaultRole.g.cs | 33 +++++++++++++++++++ ...udio.Models.PatchedDefaultRoleRequest.g.cs | 33 +++++++++++++++++++ ...OrganizationsClient.UpdateDefaultRole.g.cs | 15 +++++++++ src/libs/LabelStudio/openapi.yaml | 22 +++++++++++++ 5 files changed, 115 insertions(+) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.UpdateDefaultRole.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.UpdateDefaultRole.g.cs index ba917ad..86aba0f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.UpdateDefaultRole.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.UpdateDefaultRole.g.cs @@ -39,6 +39,9 @@ public partial interface IOrganizationsClient /// /// Set to current time to restrict data sharing between annotators and reviewers in the label stream, review stream, and notifications (which will be disabled). In these settings, information about annotator and reviewer identity is suppressed in the UI. /// + /// + /// Enable custom interfaces for this organization. When disabled, projects with use_custom_interface=True will not render custom interfaces anywhere in the product (label stream, embed, data manager, interfaces dashboard). + /// /// /// Set to current time to enable custom scripts (Plugins) for this organization. Can only be enabled if no organization members are active members of any other organizations; otherwise an error will be raised. If this occurs, contact the LEAP team for assistance with enabling custom scripts (Plugins). /// @@ -58,6 +61,9 @@ public partial interface IOrganizationsClient /// /// List of objects: {"domain": "example.com"}. Used for CSP header on /embed routes. /// + /// + /// Enable embed functionality for this organization + /// /// /// Embed settings for this organization /// @@ -65,6 +71,9 @@ public partial interface IOrganizationsClient /// External ID to uniquely identify this organization /// /// + /// + /// Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions. + /// /// /// Set to current time to disable the label stream navigation for this organization. This will prevent users from going back in the label stream to view previous labels. /// @@ -83,13 +92,16 @@ public partial interface IOrganizationsClient global::System.Threading.Tasks.Task UpdateDefaultRoleAsync( int id, global::System.DateTime? annotatorReviewerFirewallEnabledAt = default, + bool? customInterfacesEnabled = default, global::System.DateTime? customScriptsEnabledAt = default, global::LabelStudio.Role9e7Enum? defaultRole = default, object? emailNotificationSettings = default, object? embedDomains = default, + bool? embedEnabled = default, object? embedSettings = default, string? externalId = default, bool? extraDataOnActivityLogs = default, + object? interfaceSettings = default, global::System.DateTime? labelStreamNavigationDisabledAt = default, int? organization = default, object? reactCodeSettings = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DefaultRole.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DefaultRole.g.cs index c075b12..604a5bd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DefaultRole.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.DefaultRole.g.cs @@ -14,6 +14,12 @@ public sealed partial class DefaultRole [global::System.Text.Json.Serialization.JsonPropertyName("annotator_reviewer_firewall_enabled_at")] public global::System.DateTime? AnnotatorReviewerFirewallEnabledAt { get; set; } + /// + /// Enable custom interfaces for this organization. When disabled, projects with use_custom_interface=True will not render custom interfaces anywhere in the product (label stream, embed, data manager, interfaces dashboard). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interfaces_enabled")] + public bool? CustomInterfacesEnabled { get; set; } + /// /// Set to current time to enable custom scripts (Plugins) for this organization. Can only be enabled if no organization members are active members of any other organizations; otherwise an error will be raised. If this occurs, contact the LEAP team for assistance with enabling custom scripts (Plugins). /// @@ -46,6 +52,12 @@ public sealed partial class DefaultRole [global::System.Text.Json.Serialization.JsonPropertyName("embed_domains")] public object? EmbedDomains { get; set; } + /// + /// Enable embed functionality for this organization + /// + [global::System.Text.Json.Serialization.JsonPropertyName("embed_enabled")] + public bool? EmbedEnabled { get; set; } + /// /// Embed settings for this organization /// @@ -64,6 +76,12 @@ public sealed partial class DefaultRole [global::System.Text.Json.Serialization.JsonPropertyName("extra_data_on_activity_logs")] public bool? ExtraDataOnActivityLogs { get; set; } + /// + /// Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("interface_settings")] + public object? InterfaceSettings { get; set; } + /// /// Set to current time to disable the label stream navigation for this organization. This will prevent users from going back in the label stream to view previous labels. /// @@ -104,6 +122,9 @@ public sealed partial class DefaultRole /// /// Set to current time to restrict data sharing between annotators and reviewers in the label stream, review stream, and notifications (which will be disabled). In these settings, information about annotator and reviewer identity is suppressed in the UI. /// + /// + /// Enable custom interfaces for this organization. When disabled, projects with use_custom_interface=True will not render custom interfaces anywhere in the product (label stream, embed, data manager, interfaces dashboard). + /// /// /// Set to current time to enable custom scripts (Plugins) for this organization. Can only be enabled if no organization members are active members of any other organizations; otherwise an error will be raised. If this occurs, contact the LEAP team for assistance with enabling custom scripts (Plugins). /// @@ -123,6 +144,9 @@ public sealed partial class DefaultRole /// /// List of objects: {"domain": "example.com"}. Used for CSP header on /embed routes. /// + /// + /// Enable embed functionality for this organization + /// /// /// Embed settings for this organization /// @@ -130,6 +154,9 @@ public sealed partial class DefaultRole /// External ID to uniquely identify this organization /// /// + /// + /// Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions. + /// /// /// Set to current time to disable the label stream navigation for this organization. This will prevent users from going back in the label stream to view previous labels. /// @@ -145,25 +172,31 @@ public sealed partial class DefaultRole public DefaultRole( int organization, global::System.DateTime? annotatorReviewerFirewallEnabledAt, + bool? customInterfacesEnabled, global::System.DateTime? customScriptsEnabledAt, global::LabelStudio.Role9e7Enum? defaultRole1, object? emailNotificationSettings, object? embedDomains, + bool? embedEnabled, object? embedSettings, string? externalId, bool? extraDataOnActivityLogs, + object? interfaceSettings, global::System.DateTime? labelStreamNavigationDisabledAt, object? reactCodeSettings, global::System.DateTime? readOnlyQuickViewEnabledAt) { this.AnnotatorReviewerFirewallEnabledAt = annotatorReviewerFirewallEnabledAt; + this.CustomInterfacesEnabled = customInterfacesEnabled; this.CustomScriptsEnabledAt = customScriptsEnabledAt; this.DefaultRole1 = defaultRole1; this.EmailNotificationSettings = emailNotificationSettings; this.EmbedDomains = embedDomains; + this.EmbedEnabled = embedEnabled; this.EmbedSettings = embedSettings; this.ExternalId = externalId; this.ExtraDataOnActivityLogs = extraDataOnActivityLogs; + this.InterfaceSettings = interfaceSettings; this.LabelStreamNavigationDisabledAt = labelStreamNavigationDisabledAt; this.Organization = organization; this.ReactCodeSettings = reactCodeSettings; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDefaultRoleRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDefaultRoleRequest.g.cs index b53c8bc..841aa5f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDefaultRoleRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDefaultRoleRequest.g.cs @@ -14,6 +14,12 @@ public sealed partial class PatchedDefaultRoleRequest [global::System.Text.Json.Serialization.JsonPropertyName("annotator_reviewer_firewall_enabled_at")] public global::System.DateTime? AnnotatorReviewerFirewallEnabledAt { get; set; } + /// + /// Enable custom interfaces for this organization. When disabled, projects with use_custom_interface=True will not render custom interfaces anywhere in the product (label stream, embed, data manager, interfaces dashboard). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interfaces_enabled")] + public bool? CustomInterfacesEnabled { get; set; } + /// /// Set to current time to enable custom scripts (Plugins) for this organization. Can only be enabled if no organization members are active members of any other organizations; otherwise an error will be raised. If this occurs, contact the LEAP team for assistance with enabling custom scripts (Plugins). /// @@ -46,6 +52,12 @@ public sealed partial class PatchedDefaultRoleRequest [global::System.Text.Json.Serialization.JsonPropertyName("embed_domains")] public object? EmbedDomains { get; set; } + /// + /// Enable embed functionality for this organization + /// + [global::System.Text.Json.Serialization.JsonPropertyName("embed_enabled")] + public bool? EmbedEnabled { get; set; } + /// /// Embed settings for this organization /// @@ -64,6 +76,12 @@ public sealed partial class PatchedDefaultRoleRequest [global::System.Text.Json.Serialization.JsonPropertyName("extra_data_on_activity_logs")] public bool? ExtraDataOnActivityLogs { get; set; } + /// + /// Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("interface_settings")] + public object? InterfaceSettings { get; set; } + /// /// Set to current time to disable the label stream navigation for this organization. This will prevent users from going back in the label stream to view previous labels. /// @@ -100,6 +118,9 @@ public sealed partial class PatchedDefaultRoleRequest /// /// Set to current time to restrict data sharing between annotators and reviewers in the label stream, review stream, and notifications (which will be disabled). In these settings, information about annotator and reviewer identity is suppressed in the UI. /// + /// + /// Enable custom interfaces for this organization. When disabled, projects with use_custom_interface=True will not render custom interfaces anywhere in the product (label stream, embed, data manager, interfaces dashboard). + /// /// /// Set to current time to enable custom scripts (Plugins) for this organization. Can only be enabled if no organization members are active members of any other organizations; otherwise an error will be raised. If this occurs, contact the LEAP team for assistance with enabling custom scripts (Plugins). /// @@ -119,6 +140,9 @@ public sealed partial class PatchedDefaultRoleRequest /// /// List of objects: {"domain": "example.com"}. Used for CSP header on /embed routes. /// + /// + /// Enable embed functionality for this organization + /// /// /// Embed settings for this organization /// @@ -126,6 +150,9 @@ public sealed partial class PatchedDefaultRoleRequest /// External ID to uniquely identify this organization /// /// + /// + /// Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions. + /// /// /// Set to current time to disable the label stream navigation for this organization. This will prevent users from going back in the label stream to view previous labels. /// @@ -143,26 +170,32 @@ public sealed partial class PatchedDefaultRoleRequest #endif public PatchedDefaultRoleRequest( global::System.DateTime? annotatorReviewerFirewallEnabledAt, + bool? customInterfacesEnabled, global::System.DateTime? customScriptsEnabledAt, global::LabelStudio.Role9e7Enum? defaultRole, object? emailNotificationSettings, object? embedDomains, + bool? embedEnabled, object? embedSettings, string? externalId, bool? extraDataOnActivityLogs, + object? interfaceSettings, global::System.DateTime? labelStreamNavigationDisabledAt, int? organization, object? reactCodeSettings, global::System.DateTime? readOnlyQuickViewEnabledAt) { this.AnnotatorReviewerFirewallEnabledAt = annotatorReviewerFirewallEnabledAt; + this.CustomInterfacesEnabled = customInterfacesEnabled; this.CustomScriptsEnabledAt = customScriptsEnabledAt; this.DefaultRole = defaultRole; this.EmailNotificationSettings = emailNotificationSettings; this.EmbedDomains = embedDomains; + this.EmbedEnabled = embedEnabled; this.EmbedSettings = embedSettings; this.ExternalId = externalId; this.ExtraDataOnActivityLogs = extraDataOnActivityLogs; + this.InterfaceSettings = interfaceSettings; this.LabelStreamNavigationDisabledAt = labelStreamNavigationDisabledAt; this.Organization = organization; this.ReactCodeSettings = reactCodeSettings; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.UpdateDefaultRole.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.UpdateDefaultRole.g.cs index be7583b..294bb61 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.UpdateDefaultRole.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.UpdateDefaultRole.g.cs @@ -413,6 +413,9 @@ partial void ProcessUpdateDefaultRoleResponseContent( /// /// Set to current time to restrict data sharing between annotators and reviewers in the label stream, review stream, and notifications (which will be disabled). In these settings, information about annotator and reviewer identity is suppressed in the UI. /// + /// + /// Enable custom interfaces for this organization. When disabled, projects with use_custom_interface=True will not render custom interfaces anywhere in the product (label stream, embed, data manager, interfaces dashboard). + /// /// /// Set to current time to enable custom scripts (Plugins) for this organization. Can only be enabled if no organization members are active members of any other organizations; otherwise an error will be raised. If this occurs, contact the LEAP team for assistance with enabling custom scripts (Plugins). /// @@ -432,6 +435,9 @@ partial void ProcessUpdateDefaultRoleResponseContent( /// /// List of objects: {"domain": "example.com"}. Used for CSP header on /embed routes. /// + /// + /// Enable embed functionality for this organization + /// /// /// Embed settings for this organization /// @@ -439,6 +445,9 @@ partial void ProcessUpdateDefaultRoleResponseContent( /// External ID to uniquely identify this organization /// /// + /// + /// Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions. + /// /// /// Set to current time to disable the label stream navigation for this organization. This will prevent users from going back in the label stream to view previous labels. /// @@ -457,13 +466,16 @@ partial void ProcessUpdateDefaultRoleResponseContent( public async global::System.Threading.Tasks.Task UpdateDefaultRoleAsync( int id, global::System.DateTime? annotatorReviewerFirewallEnabledAt = default, + bool? customInterfacesEnabled = default, global::System.DateTime? customScriptsEnabledAt = default, global::LabelStudio.Role9e7Enum? defaultRole = default, object? emailNotificationSettings = default, object? embedDomains = default, + bool? embedEnabled = default, object? embedSettings = default, string? externalId = default, bool? extraDataOnActivityLogs = default, + object? interfaceSettings = default, global::System.DateTime? labelStreamNavigationDisabledAt = default, int? organization = default, object? reactCodeSettings = default, @@ -474,13 +486,16 @@ partial void ProcessUpdateDefaultRoleResponseContent( var __request = new global::LabelStudio.PatchedDefaultRoleRequest { AnnotatorReviewerFirewallEnabledAt = annotatorReviewerFirewallEnabledAt, + CustomInterfacesEnabled = customInterfacesEnabled, CustomScriptsEnabledAt = customScriptsEnabledAt, DefaultRole = defaultRole, EmailNotificationSettings = emailNotificationSettings, EmbedDomains = embedDomains, + EmbedEnabled = embedEnabled, EmbedSettings = embedSettings, ExternalId = externalId, ExtraDataOnActivityLogs = extraDataOnActivityLogs, + InterfaceSettings = interfaceSettings, LabelStreamNavigationDisabledAt = labelStreamNavigationDisabledAt, Organization = organization, ReactCodeSettings = reactCodeSettings, diff --git a/src/libs/LabelStudio/openapi.yaml b/src/libs/LabelStudio/openapi.yaml index 6a084f4..98745fd 100644 --- a/src/libs/LabelStudio/openapi.yaml +++ b/src/libs/LabelStudio/openapi.yaml @@ -26329,6 +26329,10 @@ components: format: date-time nullable: true type: string + custom_interfaces_enabled: + description: Enable custom interfaces for this organization. When disabled, projects with use_custom_interface=True will not render custom interfaces anywhere in the product (label stream, embed, data manager, interfaces dashboard). + nullable: true + type: boolean custom_scripts_enabled_at: description: Set to current time to enable custom scripts (Plugins) for this organization. Can only be enabled if no organization members are active members of any other organizations; otherwise an error will be raised. If this occurs, contact the LEAP team for assistance with enabling custom scripts (Plugins). format: date-time @@ -26353,6 +26357,10 @@ components: embed_domains: description: 'List of objects: {"domain": "example.com"}. Used for CSP header on /embed routes.' nullable: true + embed_enabled: + description: Enable embed functionality for this organization + nullable: true + type: boolean embed_settings: description: Embed settings for this organization nullable: true @@ -26362,6 +26370,9 @@ components: type: string extra_data_on_activity_logs: type: boolean + interface_settings: + description: 'Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions.' + nullable: true label_stream_navigation_disabled_at: description: Set to current time to disable the label stream navigation for this organization. This will prevent users from going back in the label stream to view previous labels. format: date-time @@ -34587,6 +34598,10 @@ components: format: date-time nullable: true type: string + custom_interfaces_enabled: + description: Enable custom interfaces for this organization. When disabled, projects with use_custom_interface=True will not render custom interfaces anywhere in the product (label stream, embed, data manager, interfaces dashboard). + nullable: true + type: boolean custom_scripts_enabled_at: description: Set to current time to enable custom scripts (Plugins) for this organization. Can only be enabled if no organization members are active members of any other organizations; otherwise an error will be raised. If this occurs, contact the LEAP team for assistance with enabling custom scripts (Plugins). format: date-time @@ -34611,6 +34626,10 @@ components: embed_domains: description: 'List of objects: {"domain": "example.com"}. Used for CSP header on /embed routes.' nullable: true + embed_enabled: + description: Enable embed functionality for this organization + nullable: true + type: boolean embed_settings: description: Embed settings for this organization nullable: true @@ -34620,6 +34639,9 @@ components: type: string extra_data_on_activity_logs: type: boolean + interface_settings: + description: 'Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions.' + nullable: true label_stream_navigation_disabled_at: description: Set to current time to disable the label stream navigation for this organization. This will prevent users from going back in the label stream to view previous labels. format: date-time