diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.OrganizationIdpAssignmentsHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.OrganizationIdpAssignmentsHistory.g.cs new file mode 100644 index 0000000..54b0f9c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.OrganizationIdpAssignmentsHistory.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStatesClient + { + /// + /// Get organization IdP group assignment history
+ /// Read-only state history for IdP group assignments, scoped to the active organization (admin/owner only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task OrganizationIdpAssignmentsHistoryAsync( + int orgId, + string? groupName = default, + global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind? kind = default, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get organization IdP group assignment history
+ /// Read-only state history for IdP group assignments, scoped to the active organization (admin/owner only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> OrganizationIdpAssignmentsHistoryAsResponseAsync( + int orgId, + string? groupName = default, + global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind? kind = default, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.OrganizationMembershipHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.OrganizationMembershipHistory.g.cs new file mode 100644 index 0000000..3679e04 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.OrganizationMembershipHistory.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStatesClient + { + /// + /// Get organization membership history
+ /// Read-only state history for organization memberships, scoped to the active organization (admin/owner only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task OrganizationMembershipHistoryAsync( + int orgId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource? source = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType? userType = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get organization membership history
+ /// Read-only state history for organization memberships, scoped to the active organization (admin/owner only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> OrganizationMembershipHistoryAsResponseAsync( + int orgId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource? source = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType? userType = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.OrganizationSettingsHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.OrganizationSettingsHistory.g.cs new file mode 100644 index 0000000..db7ac93 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.OrganizationSettingsHistory.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStatesClient + { + /// + /// Get organization settings history
+ /// Read-only state history for organization SAML/SCIM settings, scoped to the active organization (admin/owner only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task OrganizationSettingsHistoryAsync( + int orgId, + global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind? kind = default, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get organization settings history
+ /// Read-only state history for organization SAML/SCIM settings, scoped to the active organization (admin/owner only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> OrganizationSettingsHistoryAsResponseAsync( + int orgId, + global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind? kind = default, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.ProjectMembershipHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.ProjectMembershipHistory.g.cs new file mode 100644 index 0000000..d014e2d --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.ProjectMembershipHistory.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStatesClient + { + /// + /// Get project membership history
+ /// Read-only state history for project memberships (admin/owner of the project organization only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ProjectMembershipHistoryAsync( + int projectId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get project membership history
+ /// Read-only state history for project memberships (admin/owner of the project organization only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ProjectMembershipHistoryAsResponseAsync( + int projectId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.ProjectRoleHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.ProjectRoleHistory.g.cs new file mode 100644 index 0000000..136f878 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.ProjectRoleHistory.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStatesClient + { + /// + /// Get project role history
+ /// Read-only state history for project role assignments (admin/owner of the project organization only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ProjectRoleHistoryAsync( + int projectId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get project role history
+ /// Read-only state history for project role assignments (admin/owner of the project organization only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ProjectRoleHistoryAsResponseAsync( + int projectId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.WorkspaceMembershipHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.WorkspaceMembershipHistory.g.cs new file mode 100644 index 0000000..a799224 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStatesClient.WorkspaceMembershipHistory.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStatesClient + { + /// + /// Get workspace membership history
+ /// Read-only state history for workspace memberships (admin/owner of the workspace organization only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task WorkspaceMembershipHistoryAsync( + int workspaceId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get workspace membership history
+ /// Read-only state history for workspace memberships (admin/owner of the workspace organization only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> WorkspaceMembershipHistoryAsResponseAsync( + int workspaceId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKind.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKind.g.cs new file mode 100644 index 0000000..036ec44 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKind.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiFsmOrganizationsIdpAssignmentsHistoryListKindJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind 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.ApiFsmOrganizationsIdpAssignmentsHistoryListKindExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKindExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKindNullable.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKindNullable.g.cs new file mode 100644 index 0000000..42a37bf --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKindNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiFsmOrganizationsIdpAssignmentsHistoryListKindNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind? 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.ApiFsmOrganizationsIdpAssignmentsHistoryListKindExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind? 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.ApiFsmOrganizationsIdpAssignmentsHistoryListKindExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSource.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSource.g.cs new file mode 100644 index 0000000..a8b5f7d --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSource.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiFsmOrganizationsMembershipHistoryListSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource 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.ApiFsmOrganizationsMembershipHistoryListSourceExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSourceExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSourceNullable.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSourceNullable.g.cs new file mode 100644 index 0000000..a056803 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSourceNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiFsmOrganizationsMembershipHistoryListSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource? 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.ApiFsmOrganizationsMembershipHistoryListSourceExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource? 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.ApiFsmOrganizationsMembershipHistoryListSourceExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserType.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserType.g.cs new file mode 100644 index 0000000..82fa5c4 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiFsmOrganizationsMembershipHistoryListUserTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType 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.ApiFsmOrganizationsMembershipHistoryListUserTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserTypeNullable.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserTypeNullable.g.cs new file mode 100644 index 0000000..cf67d7f --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiFsmOrganizationsMembershipHistoryListUserTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType? 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.ApiFsmOrganizationsMembershipHistoryListUserTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType? 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.ApiFsmOrganizationsMembershipHistoryListUserTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKind.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKind.g.cs new file mode 100644 index 0000000..1de8704 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKind.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiFsmOrganizationsSettingsHistoryListKindJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind 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.ApiFsmOrganizationsSettingsHistoryListKindExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKindExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKindNullable.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKindNullable.g.cs new file mode 100644 index 0000000..3660593 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKindNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiFsmOrganizationsSettingsHistoryListKindNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind? 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.ApiFsmOrganizationsSettingsHistoryListKindExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind? 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.ApiFsmOrganizationsSettingsHistoryListKindExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs index 581a7ff..aee63f1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs @@ -289,6 +289,22 @@ namespace LabelStudio typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateIdNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKindJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKindNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSourceJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSourceNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserTypeJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserTypeNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKindJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKindNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeJsonConverter), typeof(global::LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeNullableJsonConverter), @@ -1180,6 +1196,22 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateIdNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKindJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKindNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSourceJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSourceNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserTypeJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserTypeNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKindJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKindNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeJsonConverter), typeof(global::LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeNullableJsonConverter), @@ -1453,6 +1485,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiUsersPartialUpdateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiActivityLogsListMethod), TypeInfoPropertyName = "ApiActivityLogsListMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsCreateId), TypeInfoPropertyName = "ApiDmActionsCreateId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind), TypeInfoPropertyName = "ApiFsmOrganizationsIdpAssignmentsHistoryListKind2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource), TypeInfoPropertyName = "ApiFsmOrganizationsMembershipHistoryListSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType), TypeInfoPropertyName = "ApiFsmOrganizationsMembershipHistoryListUserType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind), TypeInfoPropertyName = "ApiFsmOrganizationsSettingsHistoryListKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiOrganizationsMembershipsListScope), TypeInfoPropertyName = "ApiOrganizationsMembershipsListScope2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsAnalyticsDataQualityAgreementAnalysisConfusionMatrixRetrieveMode), TypeInfoPropertyName = "ApiProjectsAnalyticsDataQualityAgreementAnalysisConfusionMatrixRetrieveMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsMemberPerformanceParticipantsListTable), TypeInfoPropertyName = "ApiProjectsStatsMemberPerformanceParticipantsListTable2")] @@ -1688,6 +1724,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestType?), TypeInfoPropertyName = "NullableApiProjectsTasksAssigneesCreateRequestType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiActivityLogsListMethod?), TypeInfoPropertyName = "NullableApiActivityLogsListMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsCreateId?), TypeInfoPropertyName = "NullableApiDmActionsCreateId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind?), TypeInfoPropertyName = "NullableApiFsmOrganizationsIdpAssignmentsHistoryListKind2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource?), TypeInfoPropertyName = "NullableApiFsmOrganizationsMembershipHistoryListSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType?), TypeInfoPropertyName = "NullableApiFsmOrganizationsMembershipHistoryListUserType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind?), TypeInfoPropertyName = "NullableApiFsmOrganizationsSettingsHistoryListKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiOrganizationsMembershipsListScope?), TypeInfoPropertyName = "NullableApiOrganizationsMembershipsListScope2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsAnalyticsDataQualityAgreementAnalysisConfusionMatrixRetrieveMode?), TypeInfoPropertyName = "NullableApiProjectsAnalyticsDataQualityAgreementAnalysisConfusionMatrixRetrieveMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsMemberPerformanceParticipantsListTable?), TypeInfoPropertyName = "NullableApiProjectsStatsMemberPerformanceParticipantsListTable2")] @@ -1776,14 +1816,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -2071,6 +2103,22 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateIdNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKindJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKindNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSourceJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSourceNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserTypeJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserTypeNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKindJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKindNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeJsonConverter), typeof(global::LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeNullableJsonConverter), @@ -2178,6 +2226,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf), TypeInfoPropertyName = "ApiProjectsTasksAssigneesBulkCreateRequestSelectedItemsAllTrue_d4cd88601b7727f2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf?), TypeInfoPropertyName = "ApiProjectsTasksAssigneesBulkCreateRequestSelectedItemsAllTrue_42876ca72ef469f3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf?), TypeInfoPropertyName = "ApiProjectsStatsTotalAgreementRetrieveResponseVariant2_34675e999e90b30b")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -2439,6 +2495,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::LabelStudio.JsonConverters.ApiActivityLogsListMethodNullableJsonConverter()); options.Converters.Add(new global::LabelStudio.JsonConverters.ApiDmActionsCreateIdJsonConverter()); options.Converters.Add(new global::LabelStudio.JsonConverters.ApiDmActionsCreateIdNullableJsonConverter()); + options.Converters.Add(new global::LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKindJsonConverter()); + options.Converters.Add(new global::LabelStudio.JsonConverters.ApiFsmOrganizationsIdpAssignmentsHistoryListKindNullableJsonConverter()); + options.Converters.Add(new global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSourceJsonConverter()); + options.Converters.Add(new global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListSourceNullableJsonConverter()); + options.Converters.Add(new global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserTypeJsonConverter()); + options.Converters.Add(new global::LabelStudio.JsonConverters.ApiFsmOrganizationsMembershipHistoryListUserTypeNullableJsonConverter()); + options.Converters.Add(new global::LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKindJsonConverter()); + options.Converters.Add(new global::LabelStudio.JsonConverters.ApiFsmOrganizationsSettingsHistoryListKindNullableJsonConverter()); options.Converters.Add(new global::LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeJsonConverter()); options.Converters.Add(new global::LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeNullableJsonConverter()); options.Converters.Add(new global::LabelStudio.JsonConverters.ApiProjectsAnalyticsDataQualityAgreementAnalysisConfusionMatrixRetrieveModeJsonConverter()); diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs index fc0af7b..046f370 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs @@ -2672,611 +2672,627 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::LabelStudio.ApiOrganizationsMembershipsListScope? Type661 { get; set; } + public global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind? Type661 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAnalyticsDataQualityAgreementAnalysisConfusionMatrixRetrieveMode? Type662 { get; set; } + public global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource? Type662 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceParticipantsListTable? Type663 { get; set; } + public global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType? Type663 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveTable? Type664 { get; set; } + public global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind? Type664 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveTable? Type665 { get; set; } + public global::LabelStudio.ApiOrganizationsMembershipsListScope? Type665 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesDestroyType? Type666 { get; set; } + public global::LabelStudio.ApiProjectsAnalyticsDataQualityAgreementAnalysisConfusionMatrixRetrieveMode? Type666 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsSubsetTasksListAlignmentOutcome? Type667 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceParticipantsListTable? Type667 { get; set; } /// /// /// - public global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType? Type668 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveTable? Type668 { get; set; } /// /// /// - public global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset? Type669 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveTable? Type669 { get; set; } /// /// /// - public global::LabelStudio.ApiTasksListFields? Type670 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesDestroyType? Type670 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type671 { get; set; } + public global::LabelStudio.ApiProjectsSubsetTasksListAlignmentOutcome? Type671 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type672 { get; set; } + public global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType? Type672 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type673 { get; set; } + public global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset? Type673 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationHistoryDestroyResponse? Type674 { get; set; } + public global::LabelStudio.ApiTasksListFields? Type674 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type675 { get; set; } + public global::System.Collections.Generic.IList? Type675 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse? Type676 { get; set; } + public global::System.Collections.Generic.IList? Type676 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type677 { get; set; } + public global::System.Collections.Generic.IList? Type677 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationsBulkCreateResponseItem? Type678 { get; set; } + public global::LabelStudio.ApiAnnotationHistoryDestroyResponse? Type678 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type679 { get; set; } + public global::System.Collections.Generic.IList? Type679 { get; set; } /// /// /// - public global::LabelStudio.ApiCurrentUserResetTokenCreateResponse? Type680 { get; set; } + public global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse? Type680 { get; set; } /// /// /// - public global::LabelStudio.ApiCurrentUserTokenRetrieveResponse? Type681 { get; set; } + public global::System.Collections.Generic.IList? Type681 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type682 { get; set; } + public global::LabelStudio.ApiAnnotationsBulkCreateResponseItem? Type682 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type683 { get; set; } + public global::System.Collections.Generic.IList? Type683 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type684 { get; set; } + public global::LabelStudio.ApiCurrentUserResetTokenCreateResponse? Type684 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type685 { get; set; } + public global::LabelStudio.ApiCurrentUserTokenRetrieveResponse? Type685 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type686 { get; set; } + public global::System.Collections.Generic.IList? Type686 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type687 { get; set; } + public global::System.Collections.Generic.IList? Type687 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type688 { get; set; } + public global::System.Collections.Generic.IList? Type688 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type689 { get; set; } + public global::System.Collections.Generic.IList? Type689 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type690 { get; set; } + public global::System.Collections.Generic.IList? Type690 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsRetrieveResponseItem? Type691 { get; set; } + public global::System.Collections.Generic.IList? Type691 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsRetrieveResponseItemDialog? Type692 { get; set; } + public global::System.Collections.Generic.IList? Type692 { get; set; } /// /// /// - public global::LabelStudio.OneOf>? Type693 { get; set; } + public global::System.Collections.Generic.IList? Type693 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type694 { get; set; } + public global::System.Collections.Generic.IList? Type694 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type695 { get; set; } + public global::LabelStudio.ApiDmActionsRetrieveResponseItem? Type695 { get; set; } /// /// /// - public global::LabelStudio.ApiInferenceRunsIndicatorsListResponseItem? Type696 { get; set; } + public global::LabelStudio.ApiDmActionsRetrieveResponseItemDialog? Type696 { get; set; } /// /// /// - public global::LabelStudio.ApiLearningResourcesUserProgressBulkResetCreateResponse? Type697 { get; set; } + public global::LabelStudio.OneOf>? Type697 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type698 { get; set; } + public global::System.Collections.Generic.IList? Type698 { get; set; } /// /// /// - public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type699 { get; set; } + public global::System.Collections.Generic.IList? Type699 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type700 { get; set; } + public global::LabelStudio.ApiInferenceRunsIndicatorsListResponseItem? Type700 { get; set; } /// /// /// - public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type701 { get; set; } + public global::LabelStudio.ApiLearningResourcesUserProgressBulkResetCreateResponse? Type701 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type702 { get; set; } + public global::System.Collections.Generic.IList? Type702 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type703 { get; set; } + public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type703 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type704 { get; set; } + public global::System.Collections.Generic.IList? Type704 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type705 { get; set; } + public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type705 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? Type706 { get; set; } + public global::System.Collections.Generic.IList? Type706 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type707 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type707 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type708 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type708 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type709 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type709 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type710 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? Type710 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type711 { get; set; } + public global::System.Collections.Generic.IList? Type711 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type712 { get; set; } + public global::System.Collections.Generic.IList? Type712 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type713 { get; set; } + public global::System.Collections.Generic.IList? Type713 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type714 { get; set; } + public global::System.Collections.Generic.IList? Type714 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse? Type715 { get; set; } + public global::System.Collections.Generic.IList? Type715 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus? Type716 { get; set; } + public global::System.Collections.Generic.IList? Type716 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type717 { get; set; } + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type717 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type718 { get; set; } + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type718 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type719 { get; set; } + public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse? Type719 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type720 { get; set; } + public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus? Type720 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type721 { get; set; } + public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type721 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse? Type722 { get; set; } + public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type722 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus? Type723 { get; set; } + public global::System.Collections.Generic.IList? Type723 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsImportCreateResponse? Type724 { get; set; } + public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type724 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type725 { get; set; } + public global::System.Collections.Generic.IList? Type725 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type726 { get; set; } + public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse? Type726 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type727 { get; set; } + public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus? Type727 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type728 { get; set; } + public global::LabelStudio.ApiProjectsImportCreateResponse? Type728 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type729 { get; set; } + public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type729 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type730 { get; set; } + public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type730 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type731 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type731 { get; set; } /// /// /// - public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type732 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type732 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>>? Type733 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type733 { get; set; } /// /// /// - public global::LabelStudio.OneOf>? Type734 { get; set; } + public global::System.Collections.Generic.IList? Type734 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type735 { get; set; } + public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type735 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type736 { get; set; } + public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type736 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type737 { get; set; } + public global::System.Collections.Generic.Dictionary>>? Type737 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type738 { get; set; } + public global::LabelStudio.OneOf>? Type738 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type739 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type739 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type740 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type740 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type741 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type741 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type742 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type742 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type743 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type743 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type744 { get; set; } + public global::System.Collections.Generic.IList? Type744 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type745 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type745 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveResponse? Type746 { get; set; } + public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type746 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveResponse? Type747 { get; set; } + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type747 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type748 { get; set; } + public global::System.Collections.Generic.IList? Type748 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type749 { get; set; } + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type749 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type750 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveResponse? Type750 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesBulkCreateResponse? Type751 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveResponse? Type751 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type752 { get; set; } + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type752 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsPredictionListResponse? Type753 { get; set; } + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type753 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreListResponse? Type754 { get; set; } + public global::System.Collections.Generic.IList? Type754 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type755 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesBulkCreateResponse? Type755 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type756 { get; set; } + public global::System.Collections.Generic.IList? Type756 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? Type757 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsPredictionListResponse? Type757 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type758 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsReviewScoreListResponse? Type758 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type759 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type759 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type760 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type760 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type761 { get; set; } + public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? Type761 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type762 { get; set; } + public global::System.Collections.Generic.IList? Type762 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type763 { get; set; } + public global::System.Collections.Generic.IList? Type763 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type764 { get; set; } + public global::System.Collections.Generic.IList? Type764 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type765 { get; set; } + public global::System.Collections.Generic.IList? Type765 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type766 { get; set; } + public global::System.Collections.Generic.IList? Type766 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type767 { get; set; } + public global::System.Collections.Generic.IList? Type767 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type768 { get; set; } + public global::System.Collections.Generic.IList? Type768 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type769 { get; set; } + public global::System.Collections.Generic.IList? Type769 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type770 { get; set; } + public global::System.Collections.Generic.IList? Type770 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type771 { get; set; } + public global::System.Collections.Generic.IList? Type771 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type772 { get; set; } + public global::System.Collections.Generic.IList? Type772 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type773 { get; set; } + public global::System.Collections.Generic.IList? Type773 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type774 { get; set; } + public global::System.Collections.Generic.IList? Type774 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type775 { get; set; } + public global::System.Collections.Generic.IList? Type775 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type776 { get; set; } + public global::System.Collections.Generic.IList? Type776 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type777 { get; set; } + public global::System.Collections.Generic.IList? Type777 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type778 { get; set; } + public global::System.Collections.Generic.IList? Type778 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? Type779 { get; set; } + public global::System.Collections.Generic.IList? Type779 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type780 { get; set; } + public global::System.Collections.Generic.IList? Type780 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type781 { get; set; } + public global::System.Collections.Generic.IList? Type781 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type782 { get; set; } + public global::System.Collections.Generic.IList? Type782 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type783 { get; set; } + public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? Type783 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type784 { get; set; } + public global::System.Collections.Generic.IList? Type784 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type785 { get; set; } + public global::System.Collections.Generic.IList? Type785 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type786 { get; set; } + public global::System.Collections.Generic.IList? Type786 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type787 { get; set; } + public global::System.Collections.Generic.IList? Type787 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type788 { get; set; } + public global::System.Collections.Generic.IList? Type788 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type789 { get; set; } + public global::System.Collections.Generic.IList? Type789 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type790 { get; set; } + public global::System.Collections.Generic.IList? Type790 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type791 { get; set; } + public global::System.Collections.Generic.IList? Type791 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type792 { get; set; } + public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type792 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type793 { get; set; } + public global::System.Collections.Generic.IList? Type793 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type794 { get; set; } + public global::System.Collections.Generic.IList? Type794 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type795 { get; set; } + public global::System.Collections.Generic.IList? Type795 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type796 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type796 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type797 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type797 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type798 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type798 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type799 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type799 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type800 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type800 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type801 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type801 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type802 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type802 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type803 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type803 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type804 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type804 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type805 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type805 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type806 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type806 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type807 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type807 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type808 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type808 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type809 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type809 { get; set; } /// /// /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type810 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type810 { get; set; } /// /// /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type811 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type811 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type812 { get; set; } + public global::System.Collections.Generic.IList? Type812 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type813 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type814 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type815 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type816 { get; set; } /// /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiFsmOrganizationsIdpAssignmentsHistoryListKind.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiFsmOrganizationsIdpAssignmentsHistoryListKind.g.cs new file mode 100644 index 0000000..8aff3f6 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiFsmOrganizationsIdpAssignmentsHistoryListKind.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public enum ApiFsmOrganizationsIdpAssignmentsHistoryListKind + { + /// + /// + /// + Organization, + /// + /// + /// + Project, + /// + /// + /// + Workspace, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ApiFsmOrganizationsIdpAssignmentsHistoryListKindExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ApiFsmOrganizationsIdpAssignmentsHistoryListKind value) + { + return value switch + { + ApiFsmOrganizationsIdpAssignmentsHistoryListKind.Organization => "organization", + ApiFsmOrganizationsIdpAssignmentsHistoryListKind.Project => "project", + ApiFsmOrganizationsIdpAssignmentsHistoryListKind.Workspace => "workspace", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ApiFsmOrganizationsIdpAssignmentsHistoryListKind? ToEnum(string value) + { + return value switch + { + "organization" => ApiFsmOrganizationsIdpAssignmentsHistoryListKind.Organization, + "project" => ApiFsmOrganizationsIdpAssignmentsHistoryListKind.Project, + "workspace" => ApiFsmOrganizationsIdpAssignmentsHistoryListKind.Workspace, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiFsmOrganizationsMembershipHistoryListSource.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiFsmOrganizationsMembershipHistoryListSource.g.cs new file mode 100644 index 0000000..13667a8 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiFsmOrganizationsMembershipHistoryListSource.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public enum ApiFsmOrganizationsMembershipHistoryListSource + { + /// + /// + /// + Api, + /// + /// + /// + Billing, + /// + /// + /// + Ldap, + /// + /// + /// + Manual, + /// + /// + /// + Saml, + /// + /// + /// + Scim, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ApiFsmOrganizationsMembershipHistoryListSourceExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ApiFsmOrganizationsMembershipHistoryListSource value) + { + return value switch + { + ApiFsmOrganizationsMembershipHistoryListSource.Api => "api", + ApiFsmOrganizationsMembershipHistoryListSource.Billing => "billing", + ApiFsmOrganizationsMembershipHistoryListSource.Ldap => "ldap", + ApiFsmOrganizationsMembershipHistoryListSource.Manual => "manual", + ApiFsmOrganizationsMembershipHistoryListSource.Saml => "saml", + ApiFsmOrganizationsMembershipHistoryListSource.Scim => "scim", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ApiFsmOrganizationsMembershipHistoryListSource? ToEnum(string value) + { + return value switch + { + "api" => ApiFsmOrganizationsMembershipHistoryListSource.Api, + "billing" => ApiFsmOrganizationsMembershipHistoryListSource.Billing, + "ldap" => ApiFsmOrganizationsMembershipHistoryListSource.Ldap, + "manual" => ApiFsmOrganizationsMembershipHistoryListSource.Manual, + "saml" => ApiFsmOrganizationsMembershipHistoryListSource.Saml, + "scim" => ApiFsmOrganizationsMembershipHistoryListSource.Scim, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiFsmOrganizationsMembershipHistoryListUserType.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiFsmOrganizationsMembershipHistoryListUserType.g.cs new file mode 100644 index 0000000..7d43baa --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiFsmOrganizationsMembershipHistoryListUserType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public enum ApiFsmOrganizationsMembershipHistoryListUserType + { + /// + /// + /// + Service, + /// + /// + /// + Standard, + /// + /// + /// + Viewonly, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ApiFsmOrganizationsMembershipHistoryListUserTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ApiFsmOrganizationsMembershipHistoryListUserType value) + { + return value switch + { + ApiFsmOrganizationsMembershipHistoryListUserType.Service => "service", + ApiFsmOrganizationsMembershipHistoryListUserType.Standard => "standard", + ApiFsmOrganizationsMembershipHistoryListUserType.Viewonly => "viewonly", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ApiFsmOrganizationsMembershipHistoryListUserType? ToEnum(string value) + { + return value switch + { + "service" => ApiFsmOrganizationsMembershipHistoryListUserType.Service, + "standard" => ApiFsmOrganizationsMembershipHistoryListUserType.Standard, + "viewonly" => ApiFsmOrganizationsMembershipHistoryListUserType.Viewonly, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiFsmOrganizationsSettingsHistoryListKind.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiFsmOrganizationsSettingsHistoryListKind.g.cs new file mode 100644 index 0000000..43989c3 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiFsmOrganizationsSettingsHistoryListKind.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public enum ApiFsmOrganizationsSettingsHistoryListKind + { + /// + /// + /// + Saml, + /// + /// + /// + Scim, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ApiFsmOrganizationsSettingsHistoryListKindExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ApiFsmOrganizationsSettingsHistoryListKind value) + { + return value switch + { + ApiFsmOrganizationsSettingsHistoryListKind.Saml => "saml", + ApiFsmOrganizationsSettingsHistoryListKind.Scim => "scim", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ApiFsmOrganizationsSettingsHistoryListKind? ToEnum(string value) + { + return value switch + { + "saml" => ApiFsmOrganizationsSettingsHistoryListKind.Saml, + "scim" => ApiFsmOrganizationsSettingsHistoryListKind.Scim, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.OrganizationIdpAssignmentsHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.OrganizationIdpAssignmentsHistory.g.cs new file mode 100644 index 0000000..8026be4 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.OrganizationIdpAssignmentsHistory.g.cs @@ -0,0 +1,498 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StatesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_OrganizationIdpAssignmentsHistorySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Token", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_OrganizationIdpAssignmentsHistorySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_OrganizationIdpAssignmentsHistorySecurityRequirement0, + }; + partial void PrepareOrganizationIdpAssignmentsHistoryArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? groupName, + ref global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind? kind, + ref string? ordering, + ref int orgId, + ref int? page, + ref int? pageSize, + ref global::System.DateTime? since, + ref global::System.DateTime? until); + partial void PrepareOrganizationIdpAssignmentsHistoryRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? groupName, + global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind? kind, + string? ordering, + int orgId, + int? page, + int? pageSize, + global::System.DateTime? since, + global::System.DateTime? until); + partial void ProcessOrganizationIdpAssignmentsHistoryResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessOrganizationIdpAssignmentsHistoryResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get organization IdP group assignment history
+ /// Read-only state history for IdP group assignments, scoped to the active organization (admin/owner only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task OrganizationIdpAssignmentsHistoryAsync( + int orgId, + string? groupName = default, + global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind? kind = default, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await OrganizationIdpAssignmentsHistoryAsResponseAsync( + orgId: orgId, + groupName: groupName, + kind: kind, + ordering: ordering, + page: page, + pageSize: pageSize, + since: since, + until: until, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get organization IdP group assignment history
+ /// Read-only state history for IdP group assignments, scoped to the active organization (admin/owner only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> OrganizationIdpAssignmentsHistoryAsResponseAsync( + int orgId, + string? groupName = default, + global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind? kind = default, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareOrganizationIdpAssignmentsHistoryArguments( + httpClient: HttpClient, + groupName: ref groupName, + kind: ref kind, + ordering: ref ordering, + orgId: ref orgId, + page: ref page, + pageSize: ref pageSize, + since: ref since, + until: ref until); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_OrganizationIdpAssignmentsHistorySecurityRequirements, + operationName: "OrganizationIdpAssignmentsHistoryAsync"); + + using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/fsm/organizations/{orgId}/idp-assignments-history/", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("group_name", groupName) + .AddOptionalParameter("kind", kind?.ToValueString()) + .AddOptionalParameter("ordering", ordering) + .AddOptionalParameter("page", page?.ToString()) + .AddOptionalParameter("page_size", pageSize?.ToString()) + .AddOptionalParameter("since", since?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("until", until?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + ; + var __path = __pathBuilder.ToString(); + __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareOrganizationIdpAssignmentsHistoryRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + groupName: groupName, + kind: kind, + ordering: ordering, + orgId: orgId!, + page: page, + pageSize: pageSize, + since: since, + until: until); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationIdpAssignmentsHistory", + methodName: "OrganizationIdpAssignmentsHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/idp-assignments-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationIdpAssignmentsHistory", + methodName: "OrganizationIdpAssignmentsHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/idp-assignments-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationIdpAssignmentsHistory", + methodName: "OrganizationIdpAssignmentsHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/idp-assignments-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessOrganizationIdpAssignmentsHistoryResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationIdpAssignmentsHistory", + methodName: "OrganizationIdpAssignmentsHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/idp-assignments-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationIdpAssignmentsHistory", + methodName: "OrganizationIdpAssignmentsHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/idp-assignments-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessOrganizationIdpAssignmentsHistoryResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::LabelStudio.PaginatedStateModelList.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::LabelStudio.PaginatedStateModelList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.OrganizationMembershipHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.OrganizationMembershipHistory.g.cs new file mode 100644 index 0000000..228be1c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.OrganizationMembershipHistory.g.cs @@ -0,0 +1,508 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StatesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_OrganizationMembershipHistorySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Token", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_OrganizationMembershipHistorySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_OrganizationMembershipHistorySecurityRequirement0, + }; + partial void PrepareOrganizationMembershipHistoryArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? ordering, + ref int orgId, + ref int? page, + ref int? pageSize, + ref global::System.DateTime? since, + ref global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource? source, + ref global::System.DateTime? until, + ref int? userId, + ref global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType? userType); + partial void PrepareOrganizationMembershipHistoryRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? ordering, + int orgId, + int? page, + int? pageSize, + global::System.DateTime? since, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource? source, + global::System.DateTime? until, + int? userId, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType? userType); + partial void ProcessOrganizationMembershipHistoryResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessOrganizationMembershipHistoryResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get organization membership history
+ /// Read-only state history for organization memberships, scoped to the active organization (admin/owner only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task OrganizationMembershipHistoryAsync( + int orgId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource? source = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType? userType = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await OrganizationMembershipHistoryAsResponseAsync( + orgId: orgId, + ordering: ordering, + page: page, + pageSize: pageSize, + since: since, + source: source, + until: until, + userId: userId, + userType: userType, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get organization membership history
+ /// Read-only state history for organization memberships, scoped to the active organization (admin/owner only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> OrganizationMembershipHistoryAsResponseAsync( + int orgId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource? source = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType? userType = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareOrganizationMembershipHistoryArguments( + httpClient: HttpClient, + ordering: ref ordering, + orgId: ref orgId, + page: ref page, + pageSize: ref pageSize, + since: ref since, + source: ref source, + until: ref until, + userId: ref userId, + userType: ref userType); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_OrganizationMembershipHistorySecurityRequirements, + operationName: "OrganizationMembershipHistoryAsync"); + + using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/fsm/organizations/{orgId}/membership-history/", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("ordering", ordering) + .AddOptionalParameter("page", page?.ToString()) + .AddOptionalParameter("page_size", pageSize?.ToString()) + .AddOptionalParameter("since", since?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("source", source?.ToValueString()) + .AddOptionalParameter("until", until?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("user_id", userId?.ToString()) + .AddOptionalParameter("user_type", userType?.ToValueString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareOrganizationMembershipHistoryRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + ordering: ordering, + orgId: orgId!, + page: page, + pageSize: pageSize, + since: since, + source: source, + until: until, + userId: userId, + userType: userType); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationMembershipHistory", + methodName: "OrganizationMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationMembershipHistory", + methodName: "OrganizationMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationMembershipHistory", + methodName: "OrganizationMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessOrganizationMembershipHistoryResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationMembershipHistory", + methodName: "OrganizationMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationMembershipHistory", + methodName: "OrganizationMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessOrganizationMembershipHistoryResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::LabelStudio.PaginatedStateModelList.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::LabelStudio.PaginatedStateModelList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.OrganizationSettingsHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.OrganizationSettingsHistory.g.cs new file mode 100644 index 0000000..0b70c0e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.OrganizationSettingsHistory.g.cs @@ -0,0 +1,488 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StatesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_OrganizationSettingsHistorySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Token", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_OrganizationSettingsHistorySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_OrganizationSettingsHistorySecurityRequirement0, + }; + partial void PrepareOrganizationSettingsHistoryArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind? kind, + ref string? ordering, + ref int orgId, + ref int? page, + ref int? pageSize, + ref global::System.DateTime? since, + ref global::System.DateTime? until); + partial void PrepareOrganizationSettingsHistoryRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind? kind, + string? ordering, + int orgId, + int? page, + int? pageSize, + global::System.DateTime? since, + global::System.DateTime? until); + partial void ProcessOrganizationSettingsHistoryResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessOrganizationSettingsHistoryResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get organization settings history
+ /// Read-only state history for organization SAML/SCIM settings, scoped to the active organization (admin/owner only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task OrganizationSettingsHistoryAsync( + int orgId, + global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind? kind = default, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await OrganizationSettingsHistoryAsResponseAsync( + orgId: orgId, + kind: kind, + ordering: ordering, + page: page, + pageSize: pageSize, + since: since, + until: until, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get organization settings history
+ /// Read-only state history for organization SAML/SCIM settings, scoped to the active organization (admin/owner only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> OrganizationSettingsHistoryAsResponseAsync( + int orgId, + global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind? kind = default, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareOrganizationSettingsHistoryArguments( + httpClient: HttpClient, + kind: ref kind, + ordering: ref ordering, + orgId: ref orgId, + page: ref page, + pageSize: ref pageSize, + since: ref since, + until: ref until); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_OrganizationSettingsHistorySecurityRequirements, + operationName: "OrganizationSettingsHistoryAsync"); + + using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/fsm/organizations/{orgId}/settings-history/", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("kind", kind?.ToValueString()) + .AddOptionalParameter("ordering", ordering) + .AddOptionalParameter("page", page?.ToString()) + .AddOptionalParameter("page_size", pageSize?.ToString()) + .AddOptionalParameter("since", since?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("until", until?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + ; + var __path = __pathBuilder.ToString(); + __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareOrganizationSettingsHistoryRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + kind: kind, + ordering: ordering, + orgId: orgId!, + page: page, + pageSize: pageSize, + since: since, + until: until); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationSettingsHistory", + methodName: "OrganizationSettingsHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/settings-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationSettingsHistory", + methodName: "OrganizationSettingsHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/settings-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationSettingsHistory", + methodName: "OrganizationSettingsHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/settings-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessOrganizationSettingsHistoryResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationSettingsHistory", + methodName: "OrganizationSettingsHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/settings-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "OrganizationSettingsHistory", + methodName: "OrganizationSettingsHistoryAsync", + pathTemplate: "$\"/api/fsm/organizations/{orgId}/settings-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessOrganizationSettingsHistoryResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::LabelStudio.PaginatedStateModelList.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::LabelStudio.PaginatedStateModelList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ProjectMembershipHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ProjectMembershipHistory.g.cs new file mode 100644 index 0000000..5143051 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ProjectMembershipHistory.g.cs @@ -0,0 +1,488 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StatesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ProjectMembershipHistorySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Token", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ProjectMembershipHistorySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ProjectMembershipHistorySecurityRequirement0, + }; + partial void PrepareProjectMembershipHistoryArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? ordering, + ref int? page, + ref int? pageSize, + ref int projectId, + ref global::System.DateTime? since, + ref global::System.DateTime? until, + ref int? userId); + partial void PrepareProjectMembershipHistoryRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? ordering, + int? page, + int? pageSize, + int projectId, + global::System.DateTime? since, + global::System.DateTime? until, + int? userId); + partial void ProcessProjectMembershipHistoryResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessProjectMembershipHistoryResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get project membership history
+ /// Read-only state history for project memberships (admin/owner of the project organization only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ProjectMembershipHistoryAsync( + int projectId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ProjectMembershipHistoryAsResponseAsync( + projectId: projectId, + ordering: ordering, + page: page, + pageSize: pageSize, + since: since, + until: until, + userId: userId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get project membership history
+ /// Read-only state history for project memberships (admin/owner of the project organization only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ProjectMembershipHistoryAsResponseAsync( + int projectId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareProjectMembershipHistoryArguments( + httpClient: HttpClient, + ordering: ref ordering, + page: ref page, + pageSize: ref pageSize, + projectId: ref projectId, + since: ref since, + until: ref until, + userId: ref userId); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ProjectMembershipHistorySecurityRequirements, + operationName: "ProjectMembershipHistoryAsync"); + + using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/fsm/projects/{projectId}/membership-history/", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("ordering", ordering) + .AddOptionalParameter("page", page?.ToString()) + .AddOptionalParameter("page_size", pageSize?.ToString()) + .AddOptionalParameter("since", since?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("until", until?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("user_id", userId?.ToString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareProjectMembershipHistoryRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + ordering: ordering, + page: page, + pageSize: pageSize, + projectId: projectId!, + since: since, + until: until, + userId: userId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ProjectMembershipHistory", + methodName: "ProjectMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/projects/{projectId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ProjectMembershipHistory", + methodName: "ProjectMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/projects/{projectId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ProjectMembershipHistory", + methodName: "ProjectMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/projects/{projectId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessProjectMembershipHistoryResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ProjectMembershipHistory", + methodName: "ProjectMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/projects/{projectId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ProjectMembershipHistory", + methodName: "ProjectMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/projects/{projectId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessProjectMembershipHistoryResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::LabelStudio.PaginatedStateModelList.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::LabelStudio.PaginatedStateModelList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ProjectRoleHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ProjectRoleHistory.g.cs new file mode 100644 index 0000000..40b3708 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ProjectRoleHistory.g.cs @@ -0,0 +1,488 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StatesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ProjectRoleHistorySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Token", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ProjectRoleHistorySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ProjectRoleHistorySecurityRequirement0, + }; + partial void PrepareProjectRoleHistoryArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? ordering, + ref int? page, + ref int? pageSize, + ref int projectId, + ref global::System.DateTime? since, + ref global::System.DateTime? until, + ref int? userId); + partial void PrepareProjectRoleHistoryRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? ordering, + int? page, + int? pageSize, + int projectId, + global::System.DateTime? since, + global::System.DateTime? until, + int? userId); + partial void ProcessProjectRoleHistoryResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessProjectRoleHistoryResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get project role history
+ /// Read-only state history for project role assignments (admin/owner of the project organization only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ProjectRoleHistoryAsync( + int projectId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ProjectRoleHistoryAsResponseAsync( + projectId: projectId, + ordering: ordering, + page: page, + pageSize: pageSize, + since: since, + until: until, + userId: userId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get project role history
+ /// Read-only state history for project role assignments (admin/owner of the project organization only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ProjectRoleHistoryAsResponseAsync( + int projectId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareProjectRoleHistoryArguments( + httpClient: HttpClient, + ordering: ref ordering, + page: ref page, + pageSize: ref pageSize, + projectId: ref projectId, + since: ref since, + until: ref until, + userId: ref userId); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ProjectRoleHistorySecurityRequirements, + operationName: "ProjectRoleHistoryAsync"); + + using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/fsm/projects/{projectId}/role-history/", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("ordering", ordering) + .AddOptionalParameter("page", page?.ToString()) + .AddOptionalParameter("page_size", pageSize?.ToString()) + .AddOptionalParameter("since", since?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("until", until?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("user_id", userId?.ToString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareProjectRoleHistoryRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + ordering: ordering, + page: page, + pageSize: pageSize, + projectId: projectId!, + since: since, + until: until, + userId: userId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ProjectRoleHistory", + methodName: "ProjectRoleHistoryAsync", + pathTemplate: "$\"/api/fsm/projects/{projectId}/role-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ProjectRoleHistory", + methodName: "ProjectRoleHistoryAsync", + pathTemplate: "$\"/api/fsm/projects/{projectId}/role-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ProjectRoleHistory", + methodName: "ProjectRoleHistoryAsync", + pathTemplate: "$\"/api/fsm/projects/{projectId}/role-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessProjectRoleHistoryResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ProjectRoleHistory", + methodName: "ProjectRoleHistoryAsync", + pathTemplate: "$\"/api/fsm/projects/{projectId}/role-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ProjectRoleHistory", + methodName: "ProjectRoleHistoryAsync", + pathTemplate: "$\"/api/fsm/projects/{projectId}/role-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessProjectRoleHistoryResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::LabelStudio.PaginatedStateModelList.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::LabelStudio.PaginatedStateModelList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.WorkspaceMembershipHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.WorkspaceMembershipHistory.g.cs new file mode 100644 index 0000000..541aa1e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.WorkspaceMembershipHistory.g.cs @@ -0,0 +1,488 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StatesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_WorkspaceMembershipHistorySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Token", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_WorkspaceMembershipHistorySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_WorkspaceMembershipHistorySecurityRequirement0, + }; + partial void PrepareWorkspaceMembershipHistoryArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? ordering, + ref int? page, + ref int? pageSize, + ref global::System.DateTime? since, + ref global::System.DateTime? until, + ref int? userId, + ref int workspaceId); + partial void PrepareWorkspaceMembershipHistoryRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? ordering, + int? page, + int? pageSize, + global::System.DateTime? since, + global::System.DateTime? until, + int? userId, + int workspaceId); + partial void ProcessWorkspaceMembershipHistoryResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessWorkspaceMembershipHistoryResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get workspace membership history
+ /// Read-only state history for workspace memberships (admin/owner of the workspace organization only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task WorkspaceMembershipHistoryAsync( + int workspaceId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await WorkspaceMembershipHistoryAsResponseAsync( + workspaceId: workspaceId, + ordering: ordering, + page: page, + pageSize: pageSize, + since: since, + until: until, + userId: userId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get workspace membership history
+ /// Read-only state history for workspace memberships (admin/owner of the workspace organization only). + ///
+ /// + /// + /// + /// + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> WorkspaceMembershipHistoryAsResponseAsync( + int workspaceId, + string? ordering = default, + int? page = default, + int? pageSize = default, + global::System.DateTime? since = default, + global::System.DateTime? until = default, + int? userId = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareWorkspaceMembershipHistoryArguments( + httpClient: HttpClient, + ordering: ref ordering, + page: ref page, + pageSize: ref pageSize, + since: ref since, + until: ref until, + userId: ref userId, + workspaceId: ref workspaceId); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_WorkspaceMembershipHistorySecurityRequirements, + operationName: "WorkspaceMembershipHistoryAsync"); + + using var __timeoutCancellationTokenSource = global::LabelStudio.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::LabelStudio.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/fsm/workspaces/{workspaceId}/membership-history/", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("ordering", ordering) + .AddOptionalParameter("page", page?.ToString()) + .AddOptionalParameter("page_size", pageSize?.ToString()) + .AddOptionalParameter("since", since?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("until", until?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("user_id", userId?.ToString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::LabelStudio.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareWorkspaceMembershipHistoryRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + ordering: ordering, + page: page, + pageSize: pageSize, + since: since, + until: until, + userId: userId, + workspaceId: workspaceId!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "WorkspaceMembershipHistory", + methodName: "WorkspaceMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/workspaces/{workspaceId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "WorkspaceMembershipHistory", + methodName: "WorkspaceMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/workspaces/{workspaceId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "WorkspaceMembershipHistory", + methodName: "WorkspaceMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/workspaces/{workspaceId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessWorkspaceMembershipHistoryResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "WorkspaceMembershipHistory", + methodName: "WorkspaceMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/workspaces/{workspaceId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "WorkspaceMembershipHistory", + methodName: "WorkspaceMembershipHistoryAsync", + pathTemplate: "$\"/api/fsm/workspaces/{workspaceId}/membership-history/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessWorkspaceMembershipHistoryResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::LabelStudio.PaginatedStateModelList.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::LabelStudio.PaginatedStateModelList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/openapi.yaml b/src/libs/LabelStudio/openapi.yaml index 055a073..d210c81 100644 --- a/src/libs/LabelStudio/openapi.yaml +++ b/src/libs/LabelStudio/openapi.yaml @@ -5139,6 +5139,423 @@ paths: - public x-fern-sdk-group-name: states x-fern-sdk-method-name: execute_transition + /api/fsm/organizations/{org_id}/idp-assignments-history/: + get: + description: Read-only state history for IdP group assignments, scoped to the active organization (admin/owner only). + operationId: api_fsm_organizations_idp_assignments_history_list + parameters: + - description: Filter by IdP group name. + in: query + name: group_name + schema: + type: string + - description: Which group-assignment scope to return state history for. Defaults to workspace. + in: query + name: kind + schema: + enum: + - organization + - project + - workspace + type: string + - description: Which field to use when ordering the results. + in: query + name: ordering + required: false + schema: + type: string + - in: path + name: org_id + required: true + schema: + type: integer + - description: A page number within the paginated result set. + in: query + name: page + required: false + schema: + type: integer + - description: Number of results to return per page. + in: query + name: page_size + required: false + schema: + type: integer + - description: Only include state rows recorded at or after this ISO 8601 timestamp. + in: query + name: since + schema: + format: date-time + type: string + - description: Only include state rows recorded at or before this ISO 8601 timestamp. + in: query + name: until + schema: + format: date-time + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedStateModelList' + description: '' + security: + - Token: [] + summary: Get organization IdP group assignment history + tags: + - States + x-fern-audiences: + - internal + x-fern-pagination: + offset: $request.page + results: $response.results + x-fern-sdk-group-name: states + x-fern-sdk-method-name: organization_idp_assignments_history + /api/fsm/organizations/{org_id}/membership-history/: + get: + description: Read-only state history for organization memberships, scoped to the active organization (admin/owner only). + operationId: api_fsm_organizations_membership_history_list + parameters: + - description: Which field to use when ordering the results. + in: query + name: ordering + required: false + schema: + type: string + - in: path + name: org_id + required: true + schema: + type: integer + - description: A page number within the paginated result set. + in: query + name: page + required: false + schema: + type: integer + - description: Number of results to return per page. + in: query + name: page_size + required: false + schema: + type: integer + - description: Only include state rows recorded at or after this ISO 8601 timestamp. + in: query + name: since + schema: + format: date-time + type: string + - description: Filter by role source (e.g. manual, saml, scim, ldap, api, billing). + in: query + name: source + schema: + enum: + - api + - billing + - ldap + - manual + - saml + - scim + type: string + - description: Only include state rows recorded at or before this ISO 8601 timestamp. + in: query + name: until + schema: + format: date-time + type: string + - description: Filter the history to a single user. + in: query + name: user_id + schema: + type: integer + - description: Filter by user type (e.g. standard, service, viewonly). + in: query + name: user_type + schema: + enum: + - service + - standard + - viewonly + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedStateModelList' + description: '' + security: + - Token: [] + summary: Get organization membership history + tags: + - States + x-fern-audiences: + - internal + x-fern-pagination: + offset: $request.page + results: $response.results + x-fern-sdk-group-name: states + x-fern-sdk-method-name: organization_membership_history + /api/fsm/organizations/{org_id}/settings-history/: + get: + description: Read-only state history for organization SAML/SCIM settings, scoped to the active organization (admin/owner only). + operationId: api_fsm_organizations_settings_history_list + parameters: + - description: Which settings to return state history for. Defaults to saml. + in: query + name: kind + schema: + enum: + - saml + - scim + type: string + - description: Which field to use when ordering the results. + in: query + name: ordering + required: false + schema: + type: string + - in: path + name: org_id + required: true + schema: + type: integer + - description: A page number within the paginated result set. + in: query + name: page + required: false + schema: + type: integer + - description: Number of results to return per page. + in: query + name: page_size + required: false + schema: + type: integer + - description: Only include state rows recorded at or after this ISO 8601 timestamp. + in: query + name: since + schema: + format: date-time + type: string + - description: Only include state rows recorded at or before this ISO 8601 timestamp. + in: query + name: until + schema: + format: date-time + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedStateModelList' + description: '' + security: + - Token: [] + summary: Get organization settings history + tags: + - States + x-fern-audiences: + - internal + x-fern-pagination: + offset: $request.page + results: $response.results + x-fern-sdk-group-name: states + x-fern-sdk-method-name: organization_settings_history + /api/fsm/projects/{project_id}/membership-history/: + get: + description: Read-only state history for project memberships (admin/owner of the project organization only). + operationId: api_fsm_projects_membership_history_list + parameters: + - description: Which field to use when ordering the results. + in: query + name: ordering + required: false + schema: + type: string + - description: A page number within the paginated result set. + in: query + name: page + required: false + schema: + type: integer + - description: Number of results to return per page. + in: query + name: page_size + required: false + schema: + type: integer + - in: path + name: project_id + required: true + schema: + type: integer + - description: Only include state rows recorded at or after this ISO 8601 timestamp. + in: query + name: since + schema: + format: date-time + type: string + - description: Only include state rows recorded at or before this ISO 8601 timestamp. + in: query + name: until + schema: + format: date-time + type: string + - description: Filter the history to a single user. + in: query + name: user_id + schema: + type: integer + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedStateModelList' + description: '' + security: + - Token: [] + summary: Get project membership history + tags: + - States + x-fern-audiences: + - internal + x-fern-pagination: + offset: $request.page + results: $response.results + x-fern-sdk-group-name: states + x-fern-sdk-method-name: project_membership_history + /api/fsm/projects/{project_id}/role-history/: + get: + description: Read-only state history for project role assignments (admin/owner of the project organization only). + operationId: api_fsm_projects_role_history_list + parameters: + - description: Which field to use when ordering the results. + in: query + name: ordering + required: false + schema: + type: string + - description: A page number within the paginated result set. + in: query + name: page + required: false + schema: + type: integer + - description: Number of results to return per page. + in: query + name: page_size + required: false + schema: + type: integer + - in: path + name: project_id + required: true + schema: + type: integer + - description: Only include state rows recorded at or after this ISO 8601 timestamp. + in: query + name: since + schema: + format: date-time + type: string + - description: Only include state rows recorded at or before this ISO 8601 timestamp. + in: query + name: until + schema: + format: date-time + type: string + - description: Filter the history to a single user. + in: query + name: user_id + schema: + type: integer + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedStateModelList' + description: '' + security: + - Token: [] + summary: Get project role history + tags: + - States + x-fern-audiences: + - internal + x-fern-pagination: + offset: $request.page + results: $response.results + x-fern-sdk-group-name: states + x-fern-sdk-method-name: project_role_history + /api/fsm/workspaces/{workspace_id}/membership-history/: + get: + description: Read-only state history for workspace memberships (admin/owner of the workspace organization only). + operationId: api_fsm_workspaces_membership_history_list + parameters: + - description: Which field to use when ordering the results. + in: query + name: ordering + required: false + schema: + type: string + - description: A page number within the paginated result set. + in: query + name: page + required: false + schema: + type: integer + - description: Number of results to return per page. + in: query + name: page_size + required: false + schema: + type: integer + - description: Only include state rows recorded at or after this ISO 8601 timestamp. + in: query + name: since + schema: + format: date-time + type: string + - description: Only include state rows recorded at or before this ISO 8601 timestamp. + in: query + name: until + schema: + format: date-time + type: string + - description: Filter the history to a single user. + in: query + name: user_id + schema: + type: integer + - in: path + name: workspace_id + required: true + schema: + type: integer + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedStateModelList' + description: '' + security: + - Token: [] + summary: Get workspace membership history + tags: + - States + x-fern-audiences: + - internal + x-fern-pagination: + offset: $request.page + results: $response.results + x-fern-sdk-group-name: states + x-fern-sdk-method-name: workspace_membership_history /api/import/file-upload/{id}: delete: description: Delete a specific uploaded file.