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 @@ -5,14 +5,8 @@ namespace LabelStudio
public partial interface IOrganizationsClient
{
/// <summary>
/// ✨ Get organization members/roles<br/>
/// &lt;Card href="https://humansignal.com/goenterprise"&gt;<br/>
/// &lt;img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/&gt;<br/>
/// &lt;p style="margin-top: 10px; font-size: 14px;"&gt;<br/>
/// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)<br/>
/// &lt;/p&gt;<br/>
/// &lt;/Card&gt;<br/>
/// Retrieve a list of all users and roles in a specific organization.
/// Get organization members list<br/>
/// Retrieve a list of the organization members and their IDs.
/// </summary>
/// <param name="contributedToProjects"></param>
/// <param name="excludeProjectId"></param>
Expand All @@ -23,7 +17,6 @@ public partial interface IOrganizationsClient
/// <param name="page"></param>
/// <param name="pageSize"></param>
/// <param name="role"></param>
/// <param name="scope"></param>
/// <param name="search"></param>
/// <param name="tags"></param>
/// <param name="userLastActivityGte"></param>
Expand All @@ -35,30 +28,23 @@ public partial interface IOrganizationsClient
global::System.Threading.Tasks.Task<global::LabelStudio.PaginatedLseOrganizationMemberListList> List3Async(
int id,
bool? contributedToProjects = default,
int? excludeProjectId = default,
int? excludeWorkspaceId = default,
double? excludeProjectId = default,
double? excludeWorkspaceId = default,
bool? isDeleted = default,
string? ordering = default,
int? page = default,
int? pageSize = default,
string? role = default,
global::LabelStudio.ApiOrganizationsMembershipsListScope? scope = default,
global::System.Collections.Generic.IList<string>? role = default,
string? search = default,
string? tags = default,
global::System.Collections.Generic.IList<int>? tags = default,
global::System.DateTime? userLastActivityGte = default,
global::System.DateTime? userLastActivityLte = default,
global::System.Collections.Generic.IList<string>? userType = default,
global::LabelStudio.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// ✨ Get organization members/roles<br/>
/// &lt;Card href="https://humansignal.com/goenterprise"&gt;<br/>
/// &lt;img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/&gt;<br/>
/// &lt;p style="margin-top: 10px; font-size: 14px;"&gt;<br/>
/// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)<br/>
/// &lt;/p&gt;<br/>
/// &lt;/Card&gt;<br/>
/// Retrieve a list of all users and roles in a specific organization.
/// Get organization members list<br/>
/// Retrieve a list of the organization members and their IDs.
/// </summary>
/// <param name="contributedToProjects"></param>
/// <param name="excludeProjectId"></param>
Expand All @@ -69,7 +55,6 @@ public partial interface IOrganizationsClient
/// <param name="page"></param>
/// <param name="pageSize"></param>
/// <param name="role"></param>
/// <param name="scope"></param>
/// <param name="search"></param>
/// <param name="tags"></param>
/// <param name="userLastActivityGte"></param>
Expand All @@ -81,16 +66,15 @@ public partial interface IOrganizationsClient
global::System.Threading.Tasks.Task<global::LabelStudio.AutoSDKHttpResponse<global::LabelStudio.PaginatedLseOrganizationMemberListList>> List3AsResponseAsync(
int id,
bool? contributedToProjects = default,
int? excludeProjectId = default,
int? excludeWorkspaceId = default,
double? excludeProjectId = default,
double? excludeWorkspaceId = default,
bool? isDeleted = default,
string? ordering = default,
int? page = default,
int? pageSize = default,
string? role = default,
global::LabelStudio.ApiOrganizationsMembershipsListScope? scope = default,
global::System.Collections.Generic.IList<string>? role = default,
string? search = default,
string? tags = default,
global::System.Collections.Generic.IList<int>? tags = default,
global::System.DateTime? userLastActivityGte = default,
global::System.DateTime? userLastActivityLte = default,
global::System.Collections.Generic.IList<string>? userType = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ public partial interface IProjects2Client
/// <param name="annotatorEvaluationEnabled">
/// Evaluate all annotators against ground truth
/// </param>
/// <param name="annotatorEvaluationMetric">
/// Metric used to evaluate annotators. Defaults to gt_agreement.<br/>
/// * `gt_agreement` - Ground truth agreement<br/>
/// * `acceptance_score` - Acceptance score<br/>
/// * `rejection_rate` - Rejection rate<br/>
/// Default Value: gt_agreement
/// </param>
/// <param name="annotatorEvaluationMinimumScore">
/// Score required to pass evaluation<br/>
/// Default Value: 95.00
Expand Down Expand Up @@ -218,6 +225,7 @@ public partial interface IProjects2Client
string? annotationLimitPercent = default,
int? annotatorEvaluationContinuousTasks = default,
bool? annotatorEvaluationEnabled = default,
global::LabelStudio.AnnotatorEvaluationMetricEnum? annotatorEvaluationMetric = default,
string? annotatorEvaluationMinimumScore = default,
int? annotatorEvaluationMinimumTasks = default,
int? annotatorEvaluationOnboardingTasks = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace LabelStudio.JsonConverters
{
/// <inheritdoc />
public sealed class ApiOrganizationsMembershipsListScopeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LabelStudio.ApiOrganizationsMembershipsListScope>
public sealed class AnnotatorEvaluationMetricEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LabelStudio.AnnotatorEvaluationMetricEnum>
{
/// <inheritdoc />
public override global::LabelStudio.ApiOrganizationsMembershipsListScope Read(
public override global::LabelStudio.AnnotatorEvaluationMetricEnum Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class ApiOrganizationsMembershipsListScopeJsonConverter : global::
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::LabelStudio.ApiOrganizationsMembershipsListScopeExtensions.ToEnum(stringValue) ?? default;
return global::LabelStudio.AnnotatorEvaluationMetricEnumExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::LabelStudio.ApiOrganizationsMembershipsListScope)numValue;
return (global::LabelStudio.AnnotatorEvaluationMetricEnum)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::LabelStudio.ApiOrganizationsMembershipsListScope);
return default(global::LabelStudio.AnnotatorEvaluationMetricEnum);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,12 +42,12 @@ public sealed class ApiOrganizationsMembershipsListScopeJsonConverter : global::
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::LabelStudio.ApiOrganizationsMembershipsListScope value,
global::LabelStudio.AnnotatorEvaluationMetricEnum value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::LabelStudio.ApiOrganizationsMembershipsListScopeExtensions.ToValueString(value));
writer.WriteStringValue(global::LabelStudio.AnnotatorEvaluationMetricEnumExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace LabelStudio.JsonConverters
{
/// <inheritdoc />
public sealed class ApiOrganizationsMembershipsListScopeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LabelStudio.ApiOrganizationsMembershipsListScope?>
public sealed class AnnotatorEvaluationMetricEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::LabelStudio.AnnotatorEvaluationMetricEnum?>
{
/// <inheritdoc />
public override global::LabelStudio.ApiOrganizationsMembershipsListScope? Read(
public override global::LabelStudio.AnnotatorEvaluationMetricEnum? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class ApiOrganizationsMembershipsListScopeNullableJsonConverter :
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::LabelStudio.ApiOrganizationsMembershipsListScopeExtensions.ToEnum(stringValue);
return global::LabelStudio.AnnotatorEvaluationMetricEnumExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::LabelStudio.ApiOrganizationsMembershipsListScope)numValue;
return (global::LabelStudio.AnnotatorEvaluationMetricEnum)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::LabelStudio.ApiOrganizationsMembershipsListScope?);
return default(global::LabelStudio.AnnotatorEvaluationMetricEnum?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,7 +42,7 @@ public sealed class ApiOrganizationsMembershipsListScopeNullableJsonConverter :
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::LabelStudio.ApiOrganizationsMembershipsListScope? value,
global::LabelStudio.AnnotatorEvaluationMetricEnum? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -53,7 +53,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::LabelStudio.ApiOrganizationsMembershipsListScopeExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::LabelStudio.AnnotatorEvaluationMetricEnumExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Loading