Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public partial interface IOrganizationsClient
/// <param name="annotatorReviewerFirewallEnabledAt">
/// 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.
/// </param>
/// <param name="customInterfacesEnabled">
/// 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).
/// </param>
/// <param name="customScriptsEnabledAt">
/// 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).
/// </param>
Expand All @@ -58,13 +61,19 @@ public partial interface IOrganizationsClient
/// <param name="embedDomains">
/// List of objects: {"domain": "example.com"}. Used for CSP header on /embed routes.
/// </param>
/// <param name="embedEnabled">
/// Enable embed functionality for this organization
/// </param>
/// <param name="embedSettings">
/// Embed settings for this organization
/// </param>
/// <param name="externalId">
/// External ID to uniquely identify this organization
/// </param>
/// <param name="extraDataOnActivityLogs"></param>
/// <param name="interfaceSettings">
/// Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions.
/// </param>
/// <param name="labelStreamNavigationDisabledAt">
/// 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.
/// </param>
Expand All @@ -83,13 +92,16 @@ public partial interface IOrganizationsClient
global::System.Threading.Tasks.Task<global::LabelStudio.DefaultRole> 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,
Expand Down
33 changes: 33 additions & 0 deletions src/libs/LabelStudio/Generated/LabelStudio.Models.DefaultRole.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

/// <summary>
/// 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).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("custom_interfaces_enabled")]
public bool? CustomInterfacesEnabled { get; set; }

/// <summary>
/// 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).
/// </summary>
Expand Down Expand Up @@ -46,6 +52,12 @@ public sealed partial class DefaultRole
[global::System.Text.Json.Serialization.JsonPropertyName("embed_domains")]
public object? EmbedDomains { get; set; }

/// <summary>
/// Enable embed functionality for this organization
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("embed_enabled")]
public bool? EmbedEnabled { get; set; }

/// <summary>
/// Embed settings for this organization
/// </summary>
Expand All @@ -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; }

/// <summary>
/// Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("interface_settings")]
public object? InterfaceSettings { get; set; }

/// <summary>
/// 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.
/// </summary>
Expand Down Expand Up @@ -104,6 +122,9 @@ public sealed partial class DefaultRole
/// <param name="annotatorReviewerFirewallEnabledAt">
/// 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.
/// </param>
/// <param name="customInterfacesEnabled">
/// 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).
/// </param>
/// <param name="customScriptsEnabledAt">
/// 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).
/// </param>
Expand All @@ -123,13 +144,19 @@ public sealed partial class DefaultRole
/// <param name="embedDomains">
/// List of objects: {"domain": "example.com"}. Used for CSP header on /embed routes.
/// </param>
/// <param name="embedEnabled">
/// Enable embed functionality for this organization
/// </param>
/// <param name="embedSettings">
/// Embed settings for this organization
/// </param>
/// <param name="externalId">
/// External ID to uniquely identify this organization
/// </param>
/// <param name="extraDataOnActivityLogs"></param>
/// <param name="interfaceSettings">
/// Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions.
/// </param>
/// <param name="labelStreamNavigationDisabledAt">
/// 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.
/// </param>
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

/// <summary>
/// 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).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("custom_interfaces_enabled")]
public bool? CustomInterfacesEnabled { get; set; }

/// <summary>
/// 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).
/// </summary>
Expand Down Expand Up @@ -46,6 +52,12 @@ public sealed partial class PatchedDefaultRoleRequest
[global::System.Text.Json.Serialization.JsonPropertyName("embed_domains")]
public object? EmbedDomains { get; set; }

/// <summary>
/// Enable embed functionality for this organization
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("embed_enabled")]
public bool? EmbedEnabled { get; set; }

/// <summary>
/// Embed settings for this organization
/// </summary>
Expand All @@ -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; }

/// <summary>
/// Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("interface_settings")]
public object? InterfaceSettings { get; set; }

/// <summary>
/// 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.
/// </summary>
Expand Down Expand Up @@ -100,6 +118,9 @@ public sealed partial class PatchedDefaultRoleRequest
/// <param name="annotatorReviewerFirewallEnabledAt">
/// 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.
/// </param>
/// <param name="customInterfacesEnabled">
/// 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).
/// </param>
/// <param name="customScriptsEnabledAt">
/// 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).
/// </param>
Expand All @@ -119,13 +140,19 @@ public sealed partial class PatchedDefaultRoleRequest
/// <param name="embedDomains">
/// List of objects: {"domain": "example.com"}. Used for CSP header on /embed routes.
/// </param>
/// <param name="embedEnabled">
/// Enable embed functionality for this organization
/// </param>
/// <param name="embedSettings">
/// Embed settings for this organization
/// </param>
/// <param name="externalId">
/// External ID to uniquely identify this organization
/// </param>
/// <param name="extraDataOnActivityLogs"></param>
/// <param name="interfaceSettings">
/// Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions.
/// </param>
/// <param name="labelStreamNavigationDisabledAt">
/// 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.
/// </param>
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ partial void ProcessUpdateDefaultRoleResponseContent(
/// <param name="annotatorReviewerFirewallEnabledAt">
/// 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.
/// </param>
/// <param name="customInterfacesEnabled">
/// 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).
/// </param>
/// <param name="customScriptsEnabledAt">
/// 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).
/// </param>
Expand All @@ -432,13 +435,19 @@ partial void ProcessUpdateDefaultRoleResponseContent(
/// <param name="embedDomains">
/// List of objects: {"domain": "example.com"}. Used for CSP header on /embed routes.
/// </param>
/// <param name="embedEnabled">
/// Enable embed functionality for this organization
/// </param>
/// <param name="embedSettings">
/// Embed settings for this organization
/// </param>
/// <param name="externalId">
/// External ID to uniquely identify this organization
/// </param>
/// <param name="extraDataOnActivityLogs"></param>
/// <param name="interfaceSettings">
/// Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions.
/// </param>
/// <param name="labelStreamNavigationDisabledAt">
/// 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.
/// </param>
Expand All @@ -457,13 +466,16 @@ partial void ProcessUpdateDefaultRoleResponseContent(
public async global::System.Threading.Tasks.Task<global::LabelStudio.DefaultRole> 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,
Expand All @@ -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,
Expand Down
Loading
Loading