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 @@ -57,6 +57,10 @@ public partial interface IOrganizationsClient
/// Update organization details including title, embed domains, and Plugins settings.
/// </summary>
/// <param name="id"></param>
/// <param name="allowUnsafeInstructionTags">
/// Keep script, iframe, style and other active tags in project instructions<br/>
/// Included only in requests
/// </param>
/// <param name="contactInfo"></param>
/// <param name="customInterfacesEnabled">
/// Enable or disable custom interfaces for this organization<br/>
Expand Down Expand Up @@ -100,6 +104,7 @@ public partial interface IOrganizationsClient
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::LabelStudio.LseOrganization> UpdateAsync(
int id,
bool? allowUnsafeInstructionTags = default,
string? contactInfo = default,
bool? customInterfacesEnabled = default,
bool? customScriptsEnabled = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ namespace LabelStudio
/// </summary>
public sealed partial class LseOrganization
{
/// <summary>
/// Included only in responses
/// </summary>
/// <default>default!</default>
[global::System.Text.Json.Serialization.JsonPropertyName("allow_unsafe_instruction_tags")]
public bool AllowUnsafeInstructionTags { get; set; } = default!;

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -169,6 +176,9 @@ public sealed partial class LseOrganization
/// <param name="interfaceSettings">
/// Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions.
/// </param>
/// <param name="allowUnsafeInstructionTags">
/// Included only in responses
/// </param>
/// <param name="createdAt">
/// Included only in responses
/// </param>
Expand Down Expand Up @@ -217,6 +227,7 @@ public LseOrganization(
object? embedSettings,
string? externalId,
object? interfaceSettings,
bool allowUnsafeInstructionTags = default!,
global::System.DateTime createdAt = default!,
bool customScriptsEnabled = default!,
object emailNotificationSettings = default!,
Expand All @@ -225,6 +236,7 @@ public LseOrganization(
string title = default!,
string token = default!)
{
this.AllowUnsafeInstructionTags = allowUnsafeInstructionTags;
this.Billing = billing ?? throw new global::System.ArgumentNullException(nameof(billing));
this.CreatedAt = createdAt;
this.CustomInterfacesEnabled = customInterfacesEnabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace LabelStudio
/// </summary>
public sealed partial class PatchedLseOrganizationSerializerUpdateRequest
{
/// <summary>
/// Keep script, iframe, style and other active tags in project instructions<br/>
/// Included only in requests
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("allow_unsafe_instruction_tags")]
public bool? AllowUnsafeInstructionTags { get; set; }

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -93,6 +100,10 @@ public sealed partial class PatchedLseOrganizationSerializerUpdateRequest
/// <summary>
/// Initializes a new instance of the <see cref="PatchedLseOrganizationSerializerUpdateRequest" /> class.
/// </summary>
/// <param name="allowUnsafeInstructionTags">
/// Keep script, iframe, style and other active tags in project instructions<br/>
/// Included only in requests
/// </param>
/// <param name="contactInfo"></param>
/// <param name="customInterfacesEnabled">
/// Enable or disable custom interfaces for this organization<br/>
Expand Down Expand Up @@ -135,6 +146,7 @@ public sealed partial class PatchedLseOrganizationSerializerUpdateRequest
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public PatchedLseOrganizationSerializerUpdateRequest(
bool? allowUnsafeInstructionTags,
string? contactInfo,
bool? customInterfacesEnabled,
bool? customScriptsEnabled,
Expand All @@ -147,6 +159,7 @@ public PatchedLseOrganizationSerializerUpdateRequest(
string? title,
string? token)
{
this.AllowUnsafeInstructionTags = allowUnsafeInstructionTags;
this.ContactInfo = contactInfo;
this.CustomInterfacesEnabled = customInterfacesEnabled;
this.CustomScriptsEnabled = customScriptsEnabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,10 @@ partial void ProcessUpdateResponseContent(
/// Update organization details including title, embed domains, and Plugins settings.
/// </summary>
/// <param name="id"></param>
/// <param name="allowUnsafeInstructionTags">
/// Keep script, iframe, style and other active tags in project instructions<br/>
/// Included only in requests
/// </param>
/// <param name="contactInfo"></param>
/// <param name="customInterfacesEnabled">
/// Enable or disable custom interfaces for this organization<br/>
Expand Down Expand Up @@ -604,6 +608,7 @@ partial void ProcessUpdateResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LabelStudio.LseOrganization> UpdateAsync(
int id,
bool? allowUnsafeInstructionTags = default,
string? contactInfo = default,
bool? customInterfacesEnabled = default,
bool? customScriptsEnabled = default,
Expand All @@ -620,6 +625,7 @@ partial void ProcessUpdateResponseContent(
{
var __request = new global::LabelStudio.PatchedLseOrganizationSerializerUpdateRequest
{
AllowUnsafeInstructionTags = allowUnsafeInstructionTags,
ContactInfo = contactInfo,
CustomInterfacesEnabled = customInterfacesEnabled,
CustomScriptsEnabled = customScriptsEnabled,
Expand Down
8 changes: 8 additions & 0 deletions src/libs/LabelStudio/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34125,6 +34125,9 @@ components:
type: object
LseOrganization:
properties:
allow_unsafe_instruction_tags:
readOnly: true
type: boolean
billing:
$ref: '#/components/schemas/OrganizationBilling'
created_at:
Expand Down Expand Up @@ -34206,6 +34209,7 @@ components:
readOnly: true
type: string
required:
- allow_unsafe_instruction_tags
- billing
- created_at
- custom_scripts_enabled
Expand Down Expand Up @@ -41085,6 +41089,10 @@ components:
A serializer mixin that takes an additional `fields` argument that controls
which fields should be displayed.
properties:
allow_unsafe_instruction_tags:
description: Keep script, iframe, style and other active tags in project instructions
type: boolean
writeOnly: true
contact_info:
format: email
maxLength: 254
Expand Down
Loading