diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.UserGroundTruthAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.UserGroundTruthAgreement.g.cs index fdd8b534..ba389fca 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.UserGroundTruthAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.UserGroundTruthAgreement.g.cs @@ -15,7 +15,9 @@ public partial interface IStatsClient /// Get ground truth agreement statistics for a specific user within a project. /// /// - /// + /// + /// Default Value: false + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -37,7 +39,9 @@ public partial interface IStatsClient /// Get ground truth agreement statistics for a specific user within a project. /// /// - /// + /// + /// Default Value: false + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs index bb294166..684d1309 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs @@ -352,6 +352,38 @@ partial void ProcessTotalAgreementResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserGroundTruthAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserGroundTruthAgreement.g.cs index dbadad0c..9f69be7e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserGroundTruthAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserGroundTruthAgreement.g.cs @@ -56,7 +56,9 @@ partial void ProcessUserGroundTruthAgreementResponseContent( /// Get ground truth agreement statistics for a specific user within a project. /// /// - /// + /// + /// Default Value: false + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -89,7 +91,9 @@ partial void ProcessUserGroundTruthAgreementResponseContent( /// Get ground truth agreement statistics for a specific user within a project. /// /// - /// + /// + /// Default Value: false + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with diff --git a/src/libs/LabelStudio/openapi.yaml b/src/libs/LabelStudio/openapi.yaml index 4a0bbfea..94827ac0 100644 --- a/src/libs/LabelStudio/openapi.yaml +++ b/src/libs/LabelStudio/openapi.yaml @@ -13619,7 +13619,7 @@ paths: required: true schema: type: string - - description: Per label + - description: Calculate agreement per label. Not supported for projects using dimension-based agreement (Agreement V2), which returns HTTP 400. in: query name: per_label schema: @@ -14318,6 +14318,8 @@ paths: description: Total agreement '204': description: No data to compute agreement + '400': + description: Agreement V1 API is not supported for Agreement V2 projects security: - Token: [] summary: ✨ Get total agreement for project @@ -14955,10 +14957,11 @@ paths: required: true schema: type: integer - - description: Calculate agreement per label + - description: Calculate agreement per label. Not supported for projects using dimension-based agreement (Agreement V2), which returns HTTP 400. in: query name: per_label schema: + default: false type: boolean - in: path name: user_pk