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 @@ -43,7 +43,7 @@ partial void ProcessDeleteBulkResponseContent(

/// <summary>
/// Bulk delete annotations by IDs<br/>
/// Delete multiple annotations by their IDs. The deletion is processed synchronously. Returns the count of deleted annotations in the response.
/// Delete multiple annotations by their IDs. At most 100 annotation IDs can be submitted in one request. The deletion is processed synchronously. Returns the count of deleted annotations in the response.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -66,7 +66,7 @@ partial void ProcessDeleteBulkResponseContent(
}
/// <summary>
/// Bulk delete annotations by IDs<br/>
/// Delete multiple annotations by their IDs. The deletion is processed synchronously. Returns the count of deleted annotations in the response.
/// Delete multiple annotations by their IDs. At most 100 annotation IDs can be submitted in one request. The deletion is processed synchronously. Returns the count of deleted annotations in the response.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand Down Expand Up @@ -499,10 +499,10 @@ partial void ProcessDeleteBulkResponseContent(
}
/// <summary>
/// Bulk delete annotations by IDs<br/>
/// Delete multiple annotations by their IDs. The deletion is processed synchronously. Returns the count of deleted annotations in the response.
/// Delete multiple annotations by their IDs. At most 100 annotation IDs can be submitted in one request. The deletion is processed synchronously. Returns the count of deleted annotations in the response.
/// </summary>
/// <param name="ids">
/// List of annotation IDs to delete
/// List of annotation IDs to delete. Maximum 100 IDs per request.
/// </param>
/// <param name="project"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial interface IAnnotationsClient
{
/// <summary>
/// Bulk delete annotations by IDs<br/>
/// Delete multiple annotations by their IDs. The deletion is processed synchronously. Returns the count of deleted annotations in the response.
/// Delete multiple annotations by their IDs. At most 100 annotation IDs can be submitted in one request. The deletion is processed synchronously. Returns the count of deleted annotations in the response.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -19,7 +19,7 @@ public partial interface IAnnotationsClient
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Bulk delete annotations by IDs<br/>
/// Delete multiple annotations by their IDs. The deletion is processed synchronously. Returns the count of deleted annotations in the response.
/// Delete multiple annotations by their IDs. At most 100 annotation IDs can be submitted in one request. The deletion is processed synchronously. Returns the count of deleted annotations in the response.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -32,10 +32,10 @@ public partial interface IAnnotationsClient
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Bulk delete annotations by IDs<br/>
/// Delete multiple annotations by their IDs. The deletion is processed synchronously. Returns the count of deleted annotations in the response.
/// Delete multiple annotations by their IDs. At most 100 annotation IDs can be submitted in one request. The deletion is processed synchronously. Returns the count of deleted annotations in the response.
/// </summary>
/// <param name="ids">
/// List of annotation IDs to delete
/// List of annotation IDs to delete. Maximum 100 IDs per request.
/// </param>
/// <param name="project"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public partial interface IOrganizationsClient
/// Project IDs to grant access to
/// </param>
/// <param name="role">
/// Organization role<br/>
/// Organization role. Required unless user_type is viewonly.<br/>
/// * `OW` - Owner<br/>
/// * `AD` - Administrator<br/>
/// * `MA` - Manager<br/>
Expand All @@ -68,6 +68,12 @@ public partial interface IOrganizationsClient
/// * `DI` - Deactivated<br/>
/// * `NO` - Not Activated
/// </param>
/// <param name="userType">
/// Seat type for the invited members. View-Only members are free read-only seats scoped to the invited projects/workspaces and cannot be combined with a role.<br/>
/// * `standard` - Standard<br/>
/// * `viewonly` - View Only<br/>
/// Default Value: standard
/// </param>
/// <param name="workspaces">
/// Workspace IDs to grant access to
/// </param>
Expand All @@ -76,8 +82,9 @@ public partial interface IOrganizationsClient
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task SendEmailAsync(
global::System.Collections.Generic.IList<string> emails,
global::LabelStudio.AssignableOrganizationRoleEnum role,
global::System.Collections.Generic.IList<int>? projects = default,
global::LabelStudio.AssignableOrganizationRoleEnum? role = default,
global::LabelStudio.AssignableUserTypeEnum? userType = default,
global::System.Collections.Generic.IList<int>? workspaces = default,
global::LabelStudio.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,18 @@ public partial interface IOrganizationsClient
/// <param name="userId">
/// Member
/// </param>
/// <param name="userType">
/// Membership seat type. Assigning a working role to a View-Only member upgrades them to a paid Standard seat. View-Only is not accepted because paid-to-View-Only downgrade is not supported.<br/>
/// * `standard` - Standard
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::LabelStudio.LseOrganizationMemberList> Update3Async(
int id,
global::LabelStudio.AssignableOrganizationRoleEnum? role = default,
int? userId = default,
global::LabelStudio.StandardUserTypeEnum? userType = default,
global::LabelStudio.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace LabelStudio.JsonConverters
{
/// <inheritdoc />
public sealed class AssignableUserTypeEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LabelStudio.AssignableUserTypeEnum>
{
/// <inheritdoc />
public override global::LabelStudio.AssignableUserTypeEnum Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::LabelStudio.AssignableUserTypeEnumExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::LabelStudio.AssignableUserTypeEnum)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::LabelStudio.AssignableUserTypeEnum);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::LabelStudio.AssignableUserTypeEnum value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::LabelStudio.AssignableUserTypeEnumExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace LabelStudio.JsonConverters
{
/// <inheritdoc />
public sealed class AssignableUserTypeEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LabelStudio.AssignableUserTypeEnum?>
{
/// <inheritdoc />
public override global::LabelStudio.AssignableUserTypeEnum? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::LabelStudio.AssignableUserTypeEnumExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::LabelStudio.AssignableUserTypeEnum)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::LabelStudio.AssignableUserTypeEnum?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::LabelStudio.AssignableUserTypeEnum? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

if (value == null)
{
writer.WriteNullValue();
}
else
{
writer.WriteStringValue(global::LabelStudio.AssignableUserTypeEnumExtensions.ToValueString(value.Value));
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace LabelStudio.JsonConverters
{
/// <inheritdoc />
public sealed class StandardUserTypeEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LabelStudio.StandardUserTypeEnum>
{
/// <inheritdoc />
public override global::LabelStudio.StandardUserTypeEnum Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::LabelStudio.StandardUserTypeEnumExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::LabelStudio.StandardUserTypeEnum)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::LabelStudio.StandardUserTypeEnum);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::LabelStudio.StandardUserTypeEnum value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::LabelStudio.StandardUserTypeEnumExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace LabelStudio.JsonConverters
{
/// <inheritdoc />
public sealed class StandardUserTypeEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LabelStudio.StandardUserTypeEnum?>
{
/// <inheritdoc />
public override global::LabelStudio.StandardUserTypeEnum? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::LabelStudio.StandardUserTypeEnumExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::LabelStudio.StandardUserTypeEnum)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::LabelStudio.StandardUserTypeEnum?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::LabelStudio.StandardUserTypeEnum? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

if (value == null)
{
writer.WriteNullValue();
}
else
{
writer.WriteStringValue(global::LabelStudio.StandardUserTypeEnumExtensions.ToValueString(value.Value));
}
}
}
}
Loading